Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/CarterPerez-dev/Cybersecurity-Projects
/ functions
Functions
8,109 in github.com/CarterPerez-dev/Cybersecurity-Projects
⨍
Functions
8,109
◇
Types & classes
1,979
↳
Endpoints
173
Method
test_reset
Verify reset clears all expressions
PROJECTS/beginner/network-traffic-analyzer/python/tests/test_filters.py:126
Method
test_result_has_all_metrics
ValidationResult contains precision, recall, f1, pr_auc, roc_auc
PROJECTS/advanced/ai-threat-detection/backend/tests/test_validation.py:101
Function
test_result_has_component_scores
RuleResult includes individual scores per triggered rule.
PROJECTS/advanced/ai-threat-detection/backend/tests/test_detection.py:221
Method
test_result_has_per_model_metrics
TrainingResult includes metrics for each model
PROJECTS/advanced/ai-threat-detection/backend/tests/test_orchestrator.py:100
Method
test_result_roundtrip
RESULT message survives pack -> unpack
PROJECTS/beginner/c2-beacon/backend/tests/test_protocol.py:65
Method
test_result_with_records
DNSResult correctly stores records and query timing when provided
PROJECTS/beginner/dns-lookup/tests/test_resolver.py:113
Method
test_results_match_findings
( self, result_with_findings: ScanResult )
PROJECTS/intermediate/dlp-scanner/tests/test_reporters/test_sarif.py:108
Function
test_retrain_returns_202
POST /models/retrain returns 202 Accepted with a job ID.
PROJECTS/advanced/ai-threat-detection/backend/tests/test_api.py:175
Method
test_returns_12_char_hex
Version string is a 12-character hex digest
PROJECTS/advanced/ai-threat-detection/backend/tests/test_metadata.py:87
Method
test_returns_correct_shape
generate_mixed_dataset returns X with 35 columns
PROJECTS/advanced/ai-threat-detection/backend/tests/test_synthetic.py:169
Method
test_returns_correct_shape
load_csic_dataset returns X with 35 columns and matching y
PROJECTS/advanced/ai-threat-detection/backend/tests/test_data_loader.py:313
Method
test_returns_highest_confidence
Checks that detect_best returns the same result as the first item from detect_encoding
PROJECTS/beginner/base64-tool/tests/test_detector.py:161
Method
test_returns_metrics_with_n_samples
Metrics include n_samples matching the training set size.
PROJECTS/advanced/ai-threat-detection/backend/tests/test_training.py:180
Method
test_returns_model
Training returns a model key in the result dict.
PROJECTS/advanced/ai-threat-detection/backend/tests/test_training.py:166
Method
test_returns_model_and_metrics
Training returns model and metrics dict.
PROJECTS/advanced/ai-threat-detection/backend/tests/test_training.py:105
Method
test_returns_model_and_threshold
Training returns model, threshold, scaler, and history keys.
PROJECTS/advanced/ai-threat-detection/backend/tests/test_training.py:43
Method
test_returns_none_or_string
get_active_window returns None or a string
PROJECTS/beginner/keylogger/test_keylogger.py:331
Method
test_returns_none_when_no_models
Engine reports is_loaded=False when the model directory does not exist.
PROJECTS/advanced/ai-threat-detection/backend/tests/test_inference.py:81
Method
test_returns_sorted_by_confidence
Checks that multiple detection results come back sorted highest confidence first
PROJECTS/beginner/base64-tool/tests/test_detector.py:136
Method
test_returns_training_result
Returns a TrainingResult dataclass
PROJECTS/advanced/ai-threat-detection/backend/tests/test_orchestrator.py:65
Method
test_returns_training_split
Returns a TrainingSplit dataclass
PROJECTS/advanced/ai-threat-detection/backend/tests/test_splitting.py:54
Method
test_returns_validation_result
validate_ensemble returns a ValidationResult instance
PROJECTS/advanced/ai-threat-detection/backend/tests/test_validation.py:88
Method
test_reverse_lookup_google_dns
Reverse lookup for 8.8.8.8 returns a result with nonzero query time
PROJECTS/beginner/dns-lookup/tests/test_resolver.py:198
Function
test_rooms_create_requires_session
POST /rooms returns 401 with no cookie
PROJECTS/advanced/encrypted-p2p-chat/backend/tests/test_session_auth.py:74
Function
test_rooms_list_requires_session
GET /rooms returns 401 with no cookie
PROJECTS/advanced/encrypted-p2p-chat/backend/tests/test_session_auth.py:63
Method
test_root_returns_app_info
Root endpoint returns application name and version
PROJECTS/beginner/c2-beacon/backend/tests/test_app.py:67
Method
test_rotation_creates_new_file
Writing past max size triggers rotation
PROJECTS/beginner/keylogger/test_keylogger.py:245
Method
test_roundtrip
XOR applied twice with the same key returns original data
PROJECTS/beginner/c2-beacon/backend/tests/test_encoding.py:24
Method
test_roundtrip
Encodes then decodes an ASCII sentence and checks it matches the original
PROJECTS/beginner/base64-tool/tests/test_encoders.py:60
Method
test_roundtrip
Encodes then decodes a URL string and checks it matches the original
PROJECTS/beginner/base64-tool/tests/test_encoders.py:126
Method
test_roundtrip
Encodes then decodes a short sentence and checks it matches the original
PROJECTS/beginner/base64-tool/tests/test_encoders.py:147
Method
test_roundtrip
Encodes then decodes a known string and checks no data is lost
PROJECTS/beginner/base64-tool/tests/test_encoders.py:204
Method
test_roundtrip
Encodes then decodes a URL with a query string and checks it matches the original
PROJECTS/beginner/base64-tool/tests/test_encoders.py:227
Method
test_roundtrip
Checks that arbitrary binary data survives a base64 encode-decode cycle unchanged
PROJECTS/beginner/base64-tool/tests/test_properties.py:47
Method
test_roundtrip
Checks that arbitrary binary data survives a base64url encode-decode cycle unchanged
PROJECTS/beginner/base64-tool/tests/test_properties.py:73
Method
test_roundtrip
Checks that arbitrary binary data survives a base32 encode-decode cycle unchanged
PROJECTS/beginner/base64-tool/tests/test_properties.py:91
Method
test_roundtrip
Checks that arbitrary binary data survives a hex encode-decode cycle unchanged
PROJECTS/beginner/base64-tool/tests/test_properties.py:117
Method
test_roundtrip
Checks that arbitrary UTF-8 text survives a URL encode-decode cycle unchanged
PROJECTS/beginner/base64-tool/tests/test_properties.py:142
Method
test_roundtrip_ascii
ASCII payload survives encode -> decode
PROJECTS/beginner/c2-beacon/backend/tests/test_encoding.py:53
Method
test_roundtrip_unicode
Unicode payload survives encode -> decode
PROJECTS/beginner/c2-beacon/backend/tests/test_encoding.py:61
Function
test_rule
Simulate a rule against historical log events and return matches
PROJECTS/intermediate/siem-dashboard/backend/app/controllers/rule_ctrl.py:90
Function
test_rule
Test a rule against historical log events
PROJECTS/intermediate/siem-dashboard/backend/app/routes/rules.py:88
Function
test_rule
Create a default test rule
PROJECTS/advanced/api-rate-limiter/tests/conftest.py:857
Method
test_rule_result_preserved_in_hybrid_mode
( self, trained_model_dir: Path)
PROJECTS/advanced/ai-threat-detection/backend/tests/test_ml_integration.py:185
Method
test_rules_collected
( self, result_with_findings: ScanResult )
PROJECTS/intermediate/dlp-scanner/tests/test_reporters/test_sarif.py:95
Method
test_rules_only_uses_rule_score
(self, )
PROJECTS/advanced/ai-threat-detection/backend/tests/test_ml_integration.py:158
Method
test_run_id_is_none_before_enter
run_id is None until the context manager is entered.
PROJECTS/advanced/ai-threat-detection/backend/tests/test_experiment.py:45
Method
test_same_file_same_version
Same file produces the same version string
PROJECTS/advanced/ai-threat-detection/backend/tests/test_metadata.py:96
Method
test_same_rule_not_boosted
(self)
PROJECTS/intermediate/dlp-scanner/tests/test_detectors/test_context.py:84
Function
test_save_cleans_up_temp_file_on_replace_failure
Verify save() removes the .tmp file when os.replace fails partway through Simulated failure mode: we monkey-patch `os.replace` to raise
PROJECTS/foundations/password-manager/tests/test_vault.py:929
Function
test_save_creates_temp_file_with_secure_mode_only
Verify the .tmp file is created with mode 0600 from the very first syscall Plain `Path.write_bytes` would create the file with the proce
PROJECTS/foundations/password-manager/tests/test_vault.py:880
Function
test_save_does_not_leave_temp_file
Verify the .tmp file used during save is gone after save() returns The save flow writes vault.json.tmp first, then renames it onto vault
PROJECTS/foundations/password-manager/tests/test_vault.py:862
Method
test_save_json_creates_file
save_json writes a non-empty file to the given path.
PROJECTS/advanced/ai-threat-detection/backend/tests/test_scaler.py:90
Method
test_save_json_is_valid_json
Saved JSON contains center, scale, and n_features keys.
PROJECTS/advanced/ai-threat-detection/backend/tests/test_scaler.py:102
Function
test_save_processed_docx_metadata
Test saving processed Word document to output path.
PROJECTS/beginner/metadata-scrubber-tool/tests/unit/test_worddoc_handler.py:64
Function
test_save_processed_docx_metadata_via_factory
Test saving processed Word document metadata through MetadataFactory.
PROJECTS/beginner/metadata-scrubber-tool/tests/integration/test_metadata_factory.py:275
Function
test_save_processed_excel_metadata
Test saving processed Excel to output path.
PROJECTS/beginner/metadata-scrubber-tool/tests/unit/test_excel_handler.py:66
Function
test_save_processed_excel_metadata_via_factory
Test saving processed Excel metadata through MetadataFactory.
PROJECTS/beginner/metadata-scrubber-tool/tests/integration/test_metadata_factory.py:162
Function
test_save_processed_image_metadata
Test saving processed image metadata through factory.
PROJECTS/beginner/metadata-scrubber-tool/tests/integration/test_metadata_factory.py:65
Function
test_save_processed_image_metadata
test for saving image processed metadata to a copy of the file
PROJECTS/beginner/metadata-scrubber-tool/tests/unit/test_image_handler.py:58
Function
test_save_processed_pdf_metadata
Test saving processed PDF to output path.
PROJECTS/beginner/metadata-scrubber-tool/tests/unit/test_pdf_handler.py:67
Function
test_save_processed_pdf_metadata_via_factory
Test saving processed PDF metadata through MetadataFactory.
PROJECTS/beginner/metadata-scrubber-tool/tests/integration/test_metadata_factory.py:115
Function
test_save_processed_pptx_metadata
Test saving processed PowerPoint to output path.
PROJECTS/beginner/metadata-scrubber-tool/tests/unit/test_powerpoint_handler.py:64
Function
test_save_processed_pptx_metadata_via_factory
Test saving processed PowerPoint metadata through MetadataFactory.
PROJECTS/beginner/metadata-scrubber-tool/tests/integration/test_metadata_factory.py:216
Function
test_save_uses_fresh_nonce_each_time
Verify two consecutive saves produce different ciphertext (because the nonce is fresh) The save path internally regenerates a nonce on every
PROJECTS/foundations/password-manager/tests/test_vault.py:841
Function
test_save_with_none_raises_error
Test that save() raises ValueError when output_path is None.
PROJECTS/beginner/metadata-scrubber-tool/tests/unit/test_powerpoint_handler.py:170
Function
test_save_with_none_raises_error
Test that save() raises ValueError when output_path is None.
PROJECTS/beginner/metadata-scrubber-tool/tests/unit/test_worddoc_handler.py:170
Function
test_save_with_none_raises_error
Test that save() raises ValueError when output_path is None.
PROJECTS/beginner/metadata-scrubber-tool/tests/unit/test_excel_handler.py:169
Function
test_save_without_output_path_raises_error
Test that save() raises ValueError when output_path is empty.
PROJECTS/beginner/metadata-scrubber-tool/tests/integration/test_metadata_factory.py:315
Function
test_save_without_output_path_raises_error
Test that save() raises ValueError when output_path is None.
PROJECTS/beginner/metadata-scrubber-tool/tests/unit/test_pdf_handler.py:144
Function
test_save_without_output_path_raises_error
Test that save() raises ValueError when output_path is empty.
PROJECTS/beginner/metadata-scrubber-tool/tests/unit/test_powerpoint_handler.py:159
Function
test_save_without_output_path_raises_error
Test that save() raises ValueError when output_path is None
PROJECTS/beginner/metadata-scrubber-tool/tests/unit/test_image_handler.py:101
Function
test_save_without_output_path_raises_error
Test that save() raises ValueError when output_path is empty.
PROJECTS/beginner/metadata-scrubber-tool/tests/unit/test_worddoc_handler.py:159
Function
test_save_without_output_path_raises_error
Test that save() raises ValueError when output_path is None or empty.
PROJECTS/beginner/metadata-scrubber-tool/tests/unit/test_excel_handler.py:158
Method
test_scaler_json_has_required_keys
scaler.json contains center, scale, and n_features
PROJECTS/advanced/ai-threat-detection/backend/tests/test_orchestrator.py:75
Method
test_scan_clean_file_no_findings
( self, file_scanner: FileScanner, temp_dir_with_pii: Path, )
PROJECTS/intermediate/dlp-scanner/tests/test_scanners/test_file_scanner.py:50
Method
test_scan_completed_at_is_set
( self, file_scanner: FileScanner, temp_dir: Path, )
PROJECTS/intermediate/dlp-scanner/tests/test_scanners/test_file_scanner.py:106
Method
test_scan_console_output
(self, pii_dir: Path)
PROJECTS/intermediate/dlp-scanner/tests/test_cli.py:139
Method
test_scan_database_sqlite
(self, engine: ScanEngine)
PROJECTS/intermediate/dlp-scanner/tests/test_engine.py:114
Method
test_scan_directory_finds_pii
( self, file_scanner: FileScanner, temp_dir_with_pii: Path, )
PROJECTS/intermediate/dlp-scanner/tests/test_scanners/test_file_scanner.py:31
Method
test_scan_empty_directory
( self, file_scanner: FileScanner, temp_dir: Path, )
PROJECTS/intermediate/dlp-scanner/tests/test_scanners/test_file_scanner.py:67
Method
test_scan_files_clean_dir
( self, engine: ScanEngine, clean_dir: Path )
PROJECTS/intermediate/dlp-scanner/tests/test_engine.py:94
Method
test_scan_files_finds_pii
( self, engine: ScanEngine, pii_dir: Path )
PROJECTS/intermediate/dlp-scanner/tests/test_engine.py:86
Method
test_scan_files_nonexistent
(self, engine: ScanEngine)
PROJECTS/intermediate/dlp-scanner/tests/test_engine.py:102
Method
test_scan_files_sets_completed_at
( self, engine: ScanEngine, pii_dir: Path )
PROJECTS/intermediate/dlp-scanner/tests/test_engine.py:106
Function
test_scan_flags_missing_and_weak_headers
A response missing CSP and with a weak X-Content-Type-Options should produce findings of mixed status
PROJECTS/foundations/http-headers-scanner/test_http_headers_scanner.py:346
Method
test_scan_json_finds_api_key
( self, file_scanner: FileScanner, temp_dir_with_pii: Path, )
PROJECTS/intermediate/dlp-scanner/tests/test_scanners/test_file_scanner.py:150
Method
test_scan_json_output
(self, pii_dir: Path)
PROJECTS/intermediate/dlp-scanner/tests/test_cli.py:143
Function
test_scan_mocks_a_clean_response_and_grades_it_correctly
A response with every recommended header set should score 100
PROJECTS/foundations/http-headers-scanner/test_http_headers_scanner.py:314
Method
test_scan_nonexistent_target
(self)
PROJECTS/intermediate/dlp-scanner/tests/test_cli.py:176
Method
test_scan_nonexistent_target
( self, file_scanner: FileScanner, )
PROJECTS/intermediate/dlp-scanner/tests/test_scanners/test_file_scanner.py:60
Function
test_scan_records_final_url_after_redirect
When http://x.example.com/ → https://x.example.com/, the report must remember the final URL — that is what the user actually landed on
PROJECTS/foundations/http-headers-scanner/test_http_headers_scanner.py:380
Method
test_scan_respects_exclude_patterns
( self, temp_dir: Path, )
PROJECTS/intermediate/dlp-scanner/tests/test_scanners/test_file_scanner.py:76
Method
test_scan_respects_max_file_size
( self, temp_dir: Path, )
PROJECTS/intermediate/dlp-scanner/tests/test_scanners/test_file_scanner.py:91
Method
test_scan_single_file
( self, file_scanner: FileScanner, temp_dir_with_pii: Path, )
PROJECTS/intermediate/dlp-scanner/tests/test_scanners/test_file_scanner.py:40
Method
test_scan_to_file
(self, pii_dir: Path)
PROJECTS/intermediate/dlp-scanner/tests/test_cli.py:155
Method
test_scanner_returns_correct_count
generate_scanner_requests returns the requested count
PROJECTS/advanced/ai-threat-detection/backend/tests/test_synthetic.py:81
Function
test_scanner_ua_contributes
Known scanner UA fires the SCANNER_UA rule.
PROJECTS/advanced/ai-threat-detection/backend/tests/test_detection.py:143
Method
test_scoped_limiter_applies_default_rules
(self)
PROJECTS/advanced/api-rate-limiter/tests/test_integration.py:404
Method
test_scoped_limiter_endpoint_specific_rules
(self)
PROJECTS/advanced/api-rate-limiter/tests/test_integration.py:432
← previous
next →
7,601–7,700 of 8,109, ranked by callers