MCPcopy Create free account

hub / github.com/CarterPerez-dev/Cybersecurity-Projects / functions

Functions8,109 in github.com/CarterPerez-dev/Cybersecurity-Projects

Functiontest_score_all_missing_is_zero
Nothing present, nothing earned. Score = 0, grade = F
PROJECTS/foundations/http-headers-scanner/test_http_headers_scanner.py:252
Functiontest_score_all_ok_is_100
Every rule passing should yield a perfect score
PROJECTS/foundations/http-headers-scanner/test_http_headers_scanner.py:241
Functiontest_score_clamped_to_unit_range
Score never exceeds 1.0 even with many triggered rules.
PROJECTS/advanced/ai-threat-detection/backend/tests/test_detection.py:182
Methodtest_score_text_lowercase
Confirms score_text returns a non-negative float for lowercase input
PROJECTS/beginner/caesar-cipher/tests/test_analyzer.py:48
Functiontest_scrub_command_docx_dry_run
Test that --dry-run doesn't create Word document files.
PROJECTS/beginner/metadata-scrubber-tool/tests/e2e/test_scrub_command.py:365
Functiontest_scrub_command_docx_single_file_success
Test the 'scrub' command with a single Word document file.
PROJECTS/beginner/metadata-scrubber-tool/tests/e2e/test_scrub_command.py:332
Functiontest_scrub_command_docx_with_workers
Test the --workers option for concurrent Word document processing.
PROJECTS/beginner/metadata-scrubber-tool/tests/e2e/test_scrub_command.py:385
Functiontest_scrub_command_dry_run
Test that --dry-run doesn't create files.
PROJECTS/beginner/metadata-scrubber-tool/tests/e2e/test_scrub_command.py:76
Functiontest_scrub_command_file_not_found
Test that the app handles missing files gracefully.
PROJECTS/beginner/metadata-scrubber-tool/tests/e2e/test_scrub_command.py:116
Functiontest_scrub_command_pdf_dry_run
Test that --dry-run doesn't create PDF files.
PROJECTS/beginner/metadata-scrubber-tool/tests/e2e/test_scrub_command.py:166
Functiontest_scrub_command_pdf_single_file_success
Test the 'scrub' command with a single PDF file.
PROJECTS/beginner/metadata-scrubber-tool/tests/e2e/test_scrub_command.py:139
Functiontest_scrub_command_pptx_dry_run
Test that --dry-run doesn't create PowerPoint files.
PROJECTS/beginner/metadata-scrubber-tool/tests/e2e/test_scrub_command.py:286
Functiontest_scrub_command_pptx_single_file_success
Test the 'scrub' command with a single PowerPoint file.
PROJECTS/beginner/metadata-scrubber-tool/tests/e2e/test_scrub_command.py:253
Functiontest_scrub_command_pptx_with_workers
Test the --workers option for concurrent PowerPoint processing.
PROJECTS/beginner/metadata-scrubber-tool/tests/e2e/test_scrub_command.py:306
Functiontest_scrub_command_recursive_docx_success
Test the 'scrub' command with recursive directory processing for Word documents.
PROJECTS/beginner/metadata-scrubber-tool/tests/e2e/test_scrub_command.py:344
Functiontest_scrub_command_recursive_jpg_success
Test the 'scrub' command with recursive directory processing for JPG.
PROJECTS/beginner/metadata-scrubber-tool/tests/e2e/test_scrub_command.py:58
Functiontest_scrub_command_recursive_pdf_success
Test the 'scrub' command with recursive directory processing for PDF.
PROJECTS/beginner/metadata-scrubber-tool/tests/e2e/test_scrub_command.py:148
Functiontest_scrub_command_recursive_pptx_success
Test the 'scrub' command with recursive directory processing for PowerPoint.
PROJECTS/beginner/metadata-scrubber-tool/tests/e2e/test_scrub_command.py:265
Functiontest_scrub_command_recursive_xlsx_success
Test the 'scrub' command with recursive directory processing for Excel.
PROJECTS/beginner/metadata-scrubber-tool/tests/e2e/test_scrub_command.py:195
Functiontest_scrub_command_requires_ext_with_recursive
Test that --recursive requires --extension flag.
PROJECTS/beginner/metadata-scrubber-tool/tests/e2e/test_scrub_command.py:124
Functiontest_scrub_command_requires_recursive_with_ext
Test that --extension requires --recursive flag.
PROJECTS/beginner/metadata-scrubber-tool/tests/e2e/test_scrub_command.py:130
Functiontest_scrub_command_single_file_success
Test the 'scrub' command with a single image file.
PROJECTS/beginner/metadata-scrubber-tool/tests/e2e/test_scrub_command.py:49
Functiontest_scrub_command_with_workers
Test the --workers option for concurrent processing.
PROJECTS/beginner/metadata-scrubber-tool/tests/e2e/test_scrub_command.py:93
Functiontest_scrub_command_xlsx_dry_run
Test that --dry-run doesn't create Excel files.
PROJECTS/beginner/metadata-scrubber-tool/tests/e2e/test_scrub_command.py:213
Functiontest_scrub_command_xlsx_single_file_success
Test the 'scrub' command with a single Excel file.
PROJECTS/beginner/metadata-scrubber-tool/tests/e2e/test_scrub_command.py:186
Functiontest_scrub_command_xlsx_with_workers
Test the --workers option for concurrent Excel processing.
PROJECTS/beginner/metadata-scrubber-tool/tests/e2e/test_scrub_command.py:230
Functiontest_search_users_requires_session
POST /auth/users/search returns 401 with no cookie
PROJECTS/advanced/encrypted-p2p-chat/backend/tests/test_session_auth.py:91
Methodtest_serve_help
serve --help exits cleanly and mentions host
PROJECTS/advanced/ai-threat-detection/backend/tests/test_cli.py:88
Functiontest_service_init_missing_db
Initializing with a non-existent .mmdb file sets reader to None.
PROJECTS/advanced/ai-threat-detection/backend/tests/test_geoip.py:137
Functiontest_service_init_valid_db
Initializing with a valid .mmdb path opens the reader.
PROJECTS/advanced/ai-threat-detection/backend/tests/test_geoip.py:145
Methodtest_session_key_matches
(self)
PROJECTS/intermediate/dlp-scanner/tests/test_detectors/test_rules/test_credentials.py:28
Functiontest_settings
Settings override pointing to a temporary database
PROJECTS/beginner/c2-beacon/backend/tests/conftest.py:28
Functiontest_settings
Override settings for test environment.
PROJECTS/advanced/ai-threat-detection/backend/tests/conftest.py:37
Methodtest_settings_property
(self)
PROJECTS/advanced/api-rate-limiter/tests/test_limiter.py:432
Methodtest_setuid_nonzero_ignored
Allows setuid to non-root UIDs
PROJECTS/beginner/linux-ebpf-security-tracer/tests/test_detector.py:45
Methodtest_setuid_zero_by_nonroot
Detects setuid(0) from non-root UID
PROJECTS/beginner/linux-ebpf-security-tracer/tests/test_detector.py:15
Methodtest_setuid_zero_by_root_ignored
Allows setuid(0) when already root
PROJECTS/beginner/linux-ebpf-security-tracer/tests/test_detector.py:31
Methodtest_setuid_zero_serialized
Includes target_uid even when value is zero
PROJECTS/beginner/linux-ebpf-security-tracer/tests/test_renderer.py:83
Methodtest_severity_filter
Filters events below minimum severity
PROJECTS/beginner/linux-ebpf-security-tracer/tests/test_processor.py:98
Methodtest_severity_mapped_to_level
( self, result_with_findings: ScanResult )
PROJECTS/intermediate/dlp-scanner/tests/test_reporters/test_sarif.py:118
Methodtest_severity_passes
Passes events at or above minimum severity
PROJECTS/beginner/linux-ebpf-security-tracer/tests/test_processor.py:106
Functiontest_severity_thresholds
Severity classification follows the architecture thresholds.
PROJECTS/advanced/ai-threat-detection/backend/tests/test_detection.py:198
Functiontest_sha1_length_returns_sha1_first
40 hex chars = SHA-1 (RIPEMD-160 as a backup guess)
PROJECTS/foundations/hash-identifier/test_hash_identifier.py:347
Functiontest_sha256_length_returns_sha256_first
64 hex chars points at SHA-256 first SHA3-256 and BLAKE2s also produce 64 hex chars but are rarer in real systems, so SHA-256 takes the
PROJECTS/foundations/hash-identifier/test_hash_identifier.py:332
Functiontest_sha512_crypt_prefix_is_recognized
`$6$` is the marker for SHA-512 crypt — what /etc/shadow uses on Linux
PROJECTS/foundations/hash-identifier/test_hash_identifier.py:124
Methodtest_shadow_read_nonroot
Detects /etc/shadow access by non-root
PROJECTS/beginner/linux-ebpf-security-tracer/tests/test_detector.py:65
Methodtest_shadow_read_root_ignored
Allows /etc/shadow access by root
PROJECTS/beginner/linux-ebpf-security-tracer/tests/test_detector.py:80
Methodtest_shadow_write_not_read_detection
Write to sensitive file does not trigger read detection
PROJECTS/beginner/linux-ebpf-security-tracer/tests/test_detector.py:108
Methodtest_shell_then_connect
Detects network connect after shell execution
PROJECTS/beginner/linux-ebpf-security-tracer/tests/test_detector.py:405
Methodtest_shell_without_connect
Normal shell execution is not flagged
PROJECTS/beginner/linux-ebpf-security-tracer/tests/test_detector.py:365
Methodtest_short_base64_not_detected
(self)
PROJECTS/intermediate/dlp-scanner/tests/test_network/test_exfiltration.py:146
Methodtest_short_data_below_window
(self)
PROJECTS/intermediate/dlp-scanner/tests/test_detectors/test_entropy.py:58
Methodtest_short_payload_not_http
(self)
PROJECTS/intermediate/dlp-scanner/tests/test_network/test_protocols.py:59
Methodtest_short_string_returns_empty
Checks that strings below the minimum length return no results
PROJECTS/beginner/base64-tool/tests/test_detector.py:152
Methodtest_short_subdomain_no_entropy_check
( self, )
PROJECTS/intermediate/dlp-scanner/tests/test_network/test_exfiltration.py:114
Functiontest_shutdown_drains_and_exits
Calling stop() drains remaining items and all tasks exit cleanly.
PROJECTS/advanced/ai-threat-detection/backend/tests/test_pipeline.py:121
Methodtest_simple_domain
(self)
PROJECTS/intermediate/dlp-scanner/tests/test_network/test_exfiltration.py:16
Methodtest_simple_extension
(self)
PROJECTS/intermediate/dlp-scanner/tests/test_scanners/test_file_scanner.py:191
Methodtest_simple_strings
(self)
PROJECTS/intermediate/dlp-scanner/tests/test_scanners/test_db_scanner.py:214
Methodtest_single_byte_key
XOR works correctly with a single-byte key
PROJECTS/beginner/c2-beacon/backend/tests/test_encoding.py:32
Methodtest_single_label
(self)
PROJECTS/intermediate/dlp-scanner/tests/test_network/test_exfiltration.py:27
Methodtest_single_match_not_boosted
(self)
PROJECTS/intermediate/dlp-scanner/tests/test_detectors/test_context.py:117
Methodtest_single_port
Verify single port filter
PROJECTS/beginner/network-traffic-analyzer/python/tests/test_filters.py:48
Methodtest_single_protocol
Verify single protocol filter
PROJECTS/beginner/network-traffic-analyzer/python/tests/test_filters.py:41
Methodtest_single_sample_forward
Single-sample forward pass completes without error in eval mode.
PROJECTS/advanced/ai-threat-detection/backend/tests/test_autoencoder.py:48
Methodtest_single_string
(self)
PROJECTS/intermediate/dlp-scanner/tests/test_network/test_protocols.py:149
Methodtest_skips_allowlisted_values
(self)
PROJECTS/intermediate/dlp-scanner/tests/test_detectors/test_pattern.py:23
Methodtest_skips_id_field
(self)
PROJECTS/intermediate/dlp-scanner/tests/test_scanners/test_db_scanner.py:237
Methodtest_slack_tokens_match
(self, token: str)
PROJECTS/intermediate/dlp-scanner/tests/test_detectors/test_rules/test_credentials.py:94
Methodtest_sliding_window_algorithm
(self)
PROJECTS/advanced/api-rate-limiter/tests/test_integration.py:599
Methodtest_sliding_window_value
(self)
PROJECTS/advanced/api-rate-limiter/tests/test_types.py:60
Methodtest_sliding_window_weighted_count
(self)
PROJECTS/advanced/api-rate-limiter/tests/test_storage.py:164
Methodtest_slowdown_middleware_allows_requests
(self)
PROJECTS/advanced/api-rate-limiter/tests/test_integration.py:475
Methodtest_small_dataset_works
Small 50-sample dataset succeeds
PROJECTS/advanced/ai-threat-detection/backend/tests/test_splitting.py:127
Methodtest_smote_increases_minority
SMOTE brings minority ratio near strategy
PROJECTS/advanced/ai-threat-detection/backend/tests/test_splitting.py:87
Methodtest_smote_skipped_minority_too_small
Tiny minority skips SMOTE gracefully
PROJECTS/advanced/ai-threat-detection/backend/tests/test_splitting.py:155
Methodtest_smtp_banner
(self)
PROJECTS/intermediate/dlp-scanner/tests/test_network/test_protocols.py:37
Methodtest_source_ip_preserved
(self)
PROJECTS/intermediate/dlp-scanner/tests/test_network/test_exfiltration.py:151
Functiontest_special_char_ratio
Paths with many non-alphanumeric characters have higher ratios.
PROJECTS/advanced/ai-threat-detection/backend/tests/test_features.py:248
Methodtest_special_key_mapping
Each mapped special key produces its label
PROJECTS/beginner/keylogger/test_keylogger.py:509
Methodtest_special_key_type_serializes
Special key type serializes as lowercase
PROJECTS/beginner/keylogger/test_keylogger.py:203
Methodtest_special_keys_constant_coverage
SPECIAL_KEYS covers all expected modifiers
PROJECTS/beginner/keylogger/test_keylogger.py:548
Methodtest_split_proportions
Validates 70/15/15 split proportions
PROJECTS/advanced/ai-threat-detection/backend/tests/test_splitting.py:62
Methodtest_sqli_has_attack_payloads
SQLi entries contain injection patterns in query string
PROJECTS/advanced/ai-threat-detection/backend/tests/test_synthetic.py:95
Functiontest_sqli_in_query_string
SQL injection payload triggers HIGH severity with SQL_INJECTION rule.
PROJECTS/advanced/ai-threat-detection/backend/tests/test_detection.py:90
Methodtest_sqli_returns_correct_count
generate_sqli_requests returns the requested count
PROJECTS/advanced/ai-threat-detection/backend/tests/test_synthetic.py:46
Methodtest_sqlite_scan_empty_table
( self, db_scanner: DatabaseScanner, sqlite_db_empty: str, )
PROJECTS/intermediate/dlp-scanner/tests/test_scanners/test_db_scanner.py:111
Methodtest_sqlite_scan_finds_pii
( self, db_scanner: DatabaseScanner, sqlite_db_with_pii: str, )
PROJECTS/intermediate/dlp-scanner/tests/test_scanners/test_db_scanner.py:91
Methodtest_sqlite_scan_finds_ssn
( self, db_scanner: DatabaseScanner, sqlite_db_with_pii: str, )
PROJECTS/intermediate/dlp-scanner/tests/test_scanners/test_db_scanner.py:100
Methodtest_src_host
Verify source host filter
PROJECTS/beginner/network-traffic-analyzer/python/tests/test_filters.py:76
Methodtest_src_port
Verify source port filter
PROJECTS/beginner/network-traffic-analyzer/python/tests/test_filters.py:55
Methodtest_ssh_agent_key_ignored
Allows ssh-agent to access private keys
PROJECTS/beginner/linux-ebpf-security-tracer/tests/test_detector.py:170
Methodtest_ssh_banner
(self)
PROJECTS/intermediate/dlp-scanner/tests/test_network/test_protocols.py:33
Methodtest_ssh_private_key
Detects SSH private key file access
PROJECTS/beginner/linux-ebpf-security-tracer/tests/test_detector.py:129
Methodtest_sshd_authorized_keys_ignored
Allows sshd to read authorized_keys
PROJECTS/beginner/linux-ebpf-security-tracer/tests/test_detector.py:156
Methodtest_ssn_maps_to_hipaa_and_ccpa
(self)
PROJECTS/intermediate/dlp-scanner/tests/test_compliance.py:39
Methodtest_ssrf_returns_correct_count
generate_ssrf_requests returns the requested count
PROJECTS/advanced/ai-threat-detection/backend/tests/test_synthetic.py:74
Methodtest_standard_base32
Checks that a padded uppercase base32 string is detected with sufficient confidence
PROJECTS/beginner/base64-tool/tests/test_detector.py:71
Methodtest_standard_base64
Checks that a padded base64 string is detected as base64 with high confidence
PROJECTS/beginner/base64-tool/tests/test_detector.py:31
Functiontest_stats_empty_window
GET /stats on an empty database returns zero counts.
PROJECTS/advanced/ai-threat-detection/backend/tests/test_api.py:142
← previousnext →7,701–7,800 of 8,109, ranked by callers