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
↓ 1 callers
Method
__init__
( self, message: str | None = None, status_code: int | None = None, )
PROJECTS/intermediate/siem-dashboard/backend/app/core/errors.py:36
↓ 1 callers
Method
__init__
( self, log_path: str, queue: asyncio.Queue[str | None], loop: asyncio.Abstrac
PROJECTS/advanced/ai-threat-detection/backend/app/core/ingestion/tailer.py:254
↓ 1 callers
Method
__init__
( self, app: ASGIApp, limiter: RateLimiter, threshold_limit: str = "50/minute"
PROJECTS/advanced/api-rate-limiter/src/fastapi_420/middleware.py:188
↓ 1 callers
Function
_apply_detection
Stamp a detection onto an event
PROJECTS/beginner/linux-ebpf-security-tracer/src/detector.py:30
↓ 1 callers
Method
_atomic_write
Write `envelope_bytes` to self.path atomically and durably Internal helper — not part of the public API. Lives outside save(
PROJECTS/foundations/password-manager/src/password_manager/vault.py:683
↓ 1 callers
Function
_avg_response_size
Mean response body size from size:request_id members.
PROJECTS/advanced/ai-threat-detection/backend/app/core/features/aggregator.py:156
↓ 1 callers
Method
_base64url_encode
Encode data to base64url format Args: data: String data to encode Returns: str: Base64url-encoded s
PROJECTS/intermediate/api-security-scanner/backend/scanners/auth_scanner.py:369
↓ 1 callers
Function
_boot_time_ns
Read system boot time for timestamp conversion
PROJECTS/beginner/linux-ebpf-security-tracer/src/processor.py:121
↓ 1 callers
Function
_build_argument_parser
Construct the argparse parser used by main() Pulled out into its own function so tests can call it without actually running the CLI. Eac
PROJECTS/foundations/hash-identifier/hash_identifier.py:567
↓ 1 callers
Function
_build_argument_parser
Construct the argparse parser used by main()
PROJECTS/foundations/http-headers-scanner/http_headers_scanner.py:575
↓ 1 callers
Function
_build_envelope
Build the JSON envelope dict that will be written to disk
PROJECTS/foundations/password-manager/src/password_manager/vault.py:924
↓ 1 callers
Function
_build_location
Build SARIF location from finding
PROJECTS/intermediate/dlp-scanner/src/dlp_scanner/reporters/sarif.py:134
↓ 1 callers
Function
_build_metadata
Build scan metadata section
PROJECTS/intermediate/dlp-scanner/src/dlp_scanner/reporters/json_report.py:44
↓ 1 callers
Function
_build_report
Build the complete report structure
PROJECTS/intermediate/dlp-scanner/src/dlp_scanner/reporters/json_report.py:30
↓ 1 callers
Function
_build_response
Dispatch on return type to produce the correct Flask response
PROJECTS/intermediate/siem-dashboard/backend/app/core/decorators/response.py:44
↓ 1 callers
Function
_build_result
Build a single SARIF result entry
PROJECTS/intermediate/dlp-scanner/src/dlp_scanner/reporters/sarif.py:98
↓ 1 callers
Function
_build_sarif
Build complete SARIF document
PROJECTS/intermediate/dlp-scanner/src/dlp_scanner/reporters/sarif.py:40
↓ 1 callers
Function
_build_searchable_text
Concatenate relevant fields into a single string for pattern matching
PROJECTS/intermediate/siem-dashboard/backend/app/engine/severity.py:132
↓ 1 callers
Function
_build_summary
Build summary statistics section
PROJECTS/intermediate/dlp-scanner/src/dlp_scanner/reporters/json_report.py:99
↓ 1 callers
Function
_char_offset_to_token_index
Convert a character offset to an approximate token index
PROJECTS/intermediate/dlp-scanner/src/dlp_scanner/detectors/context.py:137
↓ 1 callers
Method
_check_bandwidth_sample
Check if bandwidth sample interval has elapsed and record if so
PROJECTS/beginner/network-traffic-analyzer/python/src/netanal/statistics.py:144
↓ 1 callers
Function
_check_database
Verify database engine is connected and responsive.
PROJECTS/advanced/ai-threat-detection/backend/app/api/health.py:80
↓ 1 callers
Method
_check_label_length
Flag suspiciously long DNS labels
PROJECTS/intermediate/dlp-scanner/src/dlp_scanner/network/exfiltration.py:134
↓ 1 callers
Method
_check_layer1_user
Layer 1: Per-user per-endpoint rate limiting
PROJECTS/advanced/api-rate-limiter/src/fastapi_420/defense/layers.py:131
↓ 1 callers
Method
_check_layer2_endpoint
Layer 2: Per-endpoint global rate limiting
PROJECTS/advanced/api-rate-limiter/src/fastapi_420/defense/layers.py:179
↓ 1 callers
Method
_check_layer3_global
Layer 3: Global circuit breaker
PROJECTS/advanced/api-rate-limiter/src/fastapi_420/defense/layers.py:227
↓ 1 callers
Function
_check_linux_permissions
Check Linux permissions for packet capture by testing raw socket creation
PROJECTS/beginner/network-traffic-analyzer/python/src/netanal/capture.py:320
↓ 1 callers
Function
_check_macos_permissions
Check macOS permissions for packet capture by testing BPF device access
PROJECTS/beginner/network-traffic-analyzer/python/src/netanal/capture.py:341
↓ 1 callers
Function
_check_message_rate
Per-user sliding window of one minute capped by RATE_LIMIT_WS_MESSAGE
PROJECTS/advanced/encrypted-p2p-chat/backend/app/services/websocket_service.py:42
↓ 1 callers
Function
_check_npcap_installed
Check if Npcap DLL exists on Windows
PROJECTS/beginner/network-traffic-analyzer/python/src/netanal/capture.py:373
↓ 1 callers
Method
_check_qname_length
Flag excessively long QNAMEs
PROJECTS/intermediate/dlp-scanner/src/dlp_scanner/network/exfiltration.py:195
↓ 1 callers
Function
_check_redis
Ping Redis and return connectivity status.
PROJECTS/advanced/ai-threat-detection/backend/app/api/health.py:73
↓ 1 callers
Method
_check_rotation
Rotate log file when size limit is reached
PROJECTS/beginner/keylogger/keylogger.py:257
↓ 1 callers
Method
_check_stateful
Check multi-event correlation rules
PROJECTS/beginner/linux-ebpf-security-tracer/src/detector.py:212
↓ 1 callers
Method
_check_stateless
Check single-event detection rules
PROJECTS/beginner/linux-ebpf-security-tracer/src/detector.py:159
↓ 1 callers
Method
_check_subdomain_entropy
Flag high-entropy subdomains suggesting tunneling
PROJECTS/intermediate/dlp-scanner/src/dlp_scanner/network/exfiltration.py:159
↓ 1 callers
Function
_check_windows_admin
Check if running as Administrator on Windows
PROJECTS/beginner/network-traffic-analyzer/python/src/netanal/capture.py:381
↓ 1 callers
Function
_check_windows_permissions
Check Windows permissions for packet capture
PROJECTS/beginner/network-traffic-analyzer/python/src/netanal/capture.py:356
↓ 1 callers
Method
_cleanup_loop
Background loop to clean up expired entries
PROJECTS/advanced/api-rate-limiter/src/fastapi_420/storage/memory.py:90
↓ 1 callers
Method
_cleanup_reserved_path
Remove empty placeholder file created during path reservation. Called when processing fails after _get_unique_output_path() reserved
PROJECTS/beginner/metadata-scrubber-tool/src/services/batch_processor.py:233
↓ 1 callers
Function
_collect_rules
Collect unique rules from findings
PROJECTS/intermediate/dlp-scanner/src/dlp_scanner/reporters/sarif.py:70
↓ 1 callers
Function
_compute_fused_scores
Normalize and fuse per-model raw scores into a single score array
PROJECTS/advanced/ai-threat-detection/backend/ml/validation.py:138
↓ 1 callers
Function
_compute_keyword_boost
Compute score boost based on keyword proximity
PROJECTS/intermediate/dlp-scanner/src/dlp_scanner/detectors/context.py:66
↓ 1 callers
Function
_compute_sha256
Compute SHA-256 hash of a file
PROJECTS/advanced/ai-threat-detection/backend/ml/download_csic.py:46
↓ 1 callers
Method
_create_420_response
Create HTTP 420 response
PROJECTS/advanced/api-rate-limiter/src/fastapi_420/middleware.py:167
↓ 1 callers
Method
_create_session
Create persistent HTTP session with proper headers Returns: requests.Session: Configured session object
PROJECTS/intermediate/api-security-scanner/backend/scanners/base_scanner.py:49
↓ 1 callers
Method
_detect_rate_limiting
Detect rate limiting by analyzing headers and response patterns Based on industry research: checks for standard headers and 429 resp
PROJECTS/intermediate/api-security-scanner/backend/scanners/rate_limit_scanner.py:98
↓ 1 callers
Method
_detection_worker
Stage 3: Score enriched requests using the rule engine, optionally enhanced with ML ensemble
PROJECTS/advanced/ai-threat-detection/backend/app/core/ingestion/pipeline.py:256
↓ 1 callers
Method
_determine_status
Determine the status of a property based on before/after values. Args: key: Property name. before_value: Val
PROJECTS/beginner/metadata-scrubber-tool/src/services/report_generator.py:150
↓ 1 callers
Method
_dispatch_worker
Stage 4: Dispatch scored results via the on_result callback
PROJECTS/advanced/ai-threat-detection/backend/app/core/ingestion/pipeline.py:334
↓ 1 callers
Method
_emit_event
Normalize, persist, and publish a single playbook event
PROJECTS/intermediate/siem-dashboard/backend/app/scenarios/runner.py:136
↓ 1 callers
Function
_encode_country
Deterministic ordinal encoding for 2-letter ISO country codes.
PROJECTS/advanced/ai-threat-detection/backend/app/core/features/encoder.py:30
↓ 1 callers
Method
_enforce_max_keys
Evict oldest entries when max_keys is exceeded
PROJECTS/advanced/api-rate-limiter/src/fastapi_420/storage/memory.py:118
↓ 1 callers
Function
_enforce_roles
Verify the authenticated user holds one of the required roles
PROJECTS/intermediate/siem-dashboard/backend/app/core/decorators/endpoint.py:97
↓ 1 callers
Method
_enter_half_open
Enter half-open state for recovery testing
PROJECTS/advanced/api-rate-limiter/src/fastapi_420/defense/circuit_breaker.py:132
↓ 1 callers
Function
_error_rate
Ratio of 4xx/5xx responses to total responses.
PROJECTS/advanced/ai-threat-detection/backend/app/core/features/aggregator.py:146
↓ 1 callers
Method
_export_models
Export all 3 models to ONNX and save scaler/threshold
PROJECTS/advanced/ai-threat-detection/backend/ml/orchestrator.py:232
↓ 1 callers
Method
_extract_api_key_header
Extract API key from header
PROJECTS/advanced/api-rate-limiter/src/fastapi_420/fingerprinting/auth.py:121
↓ 1 callers
Method
_extract_api_key_query
Extract API key from query parameter
PROJECTS/advanced/api-rate-limiter/src/fastapi_420/fingerprinting/auth.py:127
↓ 1 callers
Function
_extract_common
Pull fields shared across all log formats into a base dict
PROJECTS/intermediate/siem-dashboard/backend/app/engine/normalizer.py:55
↓ 1 callers
Function
_extract_data
Pull raw data from the request based on the declared source
PROJECTS/intermediate/siem-dashboard/backend/app/core/decorators/schema.py:65
↓ 1 callers
Method
_extract_geo_asn
Extract geographic ASN if available Requires geo lookup service to populate header
PROJECTS/advanced/api-rate-limiter/src/fastapi_420/fingerprinting/composite.py:202
↓ 1 callers
Method
_extract_http_text
Extract scannable text from HTTP messages
PROJECTS/intermediate/dlp-scanner/src/dlp_scanner/scanners/network_scanner.py:273
↓ 1 callers
Method
_extract_jwt_subject
Extract subject claim from JWT Bearer token
PROJECTS/advanced/api-rate-limiter/src/fastapi_420/fingerprinting/auth.py:73
↓ 1 callers
Method
_extract_jwt_subject_unsafe
Extract subject from JWT without verification Used when jwt_secret is not configured - only extracts the claim for rate limi
PROJECTS/advanced/api-rate-limiter/src/fastapi_420/fingerprinting/auth.py:97
↓ 1 callers
Method
_extract_request
Extract Request object from function arguments
PROJECTS/advanced/api-rate-limiter/src/fastapi_420/limiter.py:343
↓ 1 callers
Method
_extract_rf_proba
Extract attack probability from skl2onnx RF output format. skl2onnx outputs a list of dicts [{0: p0, 1: p1}, ...] for probab
PROJECTS/advanced/ai-threat-detection/backend/app/core/detection/inference.py:169
↓ 1 callers
Method
_extract_scannable_text
Extract text content from a reassembled stream
PROJECTS/intermediate/dlp-scanner/src/dlp_scanner/scanners/network_scanner.py:254
↓ 1 callers
Method
_extract_session
Extract session ID from cookie
PROJECTS/advanced/api-rate-limiter/src/fastapi_420/fingerprinting/auth.py:133
↓ 1 callers
Method
_extract_tar
Extract from TAR with traversal protection
PROJECTS/intermediate/dlp-scanner/src/dlp_scanner/extractors/archive.py:108
↓ 1 callers
Method
_extract_tls_fingerprint
Extract TLS/JA3 fingerprint if available Requires proxy to pass fingerprint in header
PROJECTS/advanced/api-rate-limiter/src/fastapi_420/fingerprinting/composite.py:191
↓ 1 callers
Method
_extract_zip
Extract from ZIP with bomb and traversal protection
PROJECTS/intermediate/dlp-scanner/src/dlp_scanner/extractors/archive.py:71
↓ 1 callers
Function
_fallback_synthetic
Run training with synthetic data only when no real events exist
PROJECTS/advanced/ai-threat-detection/backend/app/api/models_api.py:236
↓ 1 callers
Method
_feature_worker
Stage 2: Enrich with GeoIP, extract per-request features, aggregate per-IP windowed features, and encode the 35-dim vector
PROJECTS/advanced/ai-threat-detection/backend/app/core/ingestion/pipeline.py:203
↓ 1 callers
Function
_file_lock
Acquire an advisory exclusive lock on a sidecar `.lock` file We use a sidecar file (vault.json.lock) instead of locking the vault file i
PROJECTS/foundations/password-manager/src/password_manager/vault.py:287
↓ 1 callers
Function
_filter_rules
Filter rules by enable/disable glob patterns
PROJECTS/intermediate/dlp-scanner/src/dlp_scanner/detectors/registry.py:90
↓ 1 callers
Method
_format_detail
Build detail string based on event type
PROJECTS/beginner/linux-ebpf-security-tracer/src/renderer.py:132
↓ 1 callers
Function
_format_summary
Format summary statistics as plain text
PROJECTS/intermediate/dlp-scanner/src/dlp_scanner/reporters/console.py:127
↓ 1 callers
Method
_format_value
Format a metadata value for display. Args: value: Value to format. Returns: Formatted string repres
PROJECTS/beginner/metadata-scrubber-tool/src/services/report_generator.py:242
↓ 1 callers
Function
_get_active_models
Query all active model metadata records
PROJECTS/advanced/ai-threat-detection/backend/app/api/models_api.py:279
↓ 1 callers
Method
_get_active_storage
Get active storage, falling back to memory if primary fails
PROJECTS/advanced/api-rate-limiter/src/fastapi_420/limiter.py:318
↓ 1 callers
Method
_get_client_ip
Get client IP address, handling proxy headers if configured
PROJECTS/advanced/api-rate-limiter/src/fastapi_420/fingerprinting/ip.py:61
↓ 1 callers
Method
_get_endpoint
Get endpoint identifier from request
PROJECTS/advanced/api-rate-limiter/src/fastapi_420/limiter.py:363
↓ 1 callers
Function
_get_git_hash
Return the short git commit hash or None
PROJECTS/advanced/ai-threat-detection/backend/ml/experiment.py:101
↓ 1 callers
Function
_get_internal_ip
Determine the primary internal IP address via UDP socket trick
PROJECTS/beginner/c2-beacon/beacon/beacon.py:133
↓ 1 callers
Method
_get_limit_for_path
Get rate limit for specific path
PROJECTS/advanced/api-rate-limiter/src/fastapi_420/middleware.py:154
↓ 1 callers
Method
_get_linux_window
()
PROJECTS/beginner/keylogger/keylogger.py:202
↓ 1 callers
Method
_get_macos_window
()
PROJECTS/beginner/keylogger/keylogger.py:189
↓ 1 callers
Method
_get_mysql_text_cols
Find text-type columns in a MySQL table
PROJECTS/intermediate/dlp-scanner/src/dlp_scanner/scanners/db_scanner.py:245
↓ 1 callers
Method
_get_pg_tables
List user tables in PostgreSQL
PROJECTS/intermediate/dlp-scanner/src/dlp_scanner/scanners/db_scanner.py:152
↓ 1 callers
Method
_get_pg_text_columns
Find text-type columns in a PostgreSQL table
PROJECTS/intermediate/dlp-scanner/src/dlp_scanner/scanners/db_scanner.py:167
↓ 1 callers
Function
_get_protocol_color
Get Rich console color for a protocol
PROJECTS/beginner/network-traffic-analyzer/python/src/netanal/output.py:80
↓ 1 callers
Method
_get_request_count
Get current request count in window
PROJECTS/advanced/api-rate-limiter/src/fastapi_420/defense/circuit_breaker.py:99
↓ 1 callers
Method
_get_rules
Return cached rules, refreshing if the cache TTL has expired
PROJECTS/intermediate/siem-dashboard/backend/app/engine/correlation.py:327
↓ 1 callers
Method
_get_sqlite_text_cols
Find text-type columns in a SQLite table
PROJECTS/intermediate/dlp-scanner/src/dlp_scanner/scanners/db_scanner.py:382
↓ 1 callers
Method
_get_windows_window
()
PROJECTS/beginner/keylogger/keylogger.py:176
↓ 1 callers
Method
_handle_live_message
Process live message update and forward to WebSocket
PROJECTS/advanced/encrypted-p2p-chat/backend/app/core/websocket_manager.py:233
↓ 1 callers
Method
_hash_identifier
Hash identifier for privacy
PROJECTS/advanced/api-rate-limiter/src/fastapi_420/fingerprinting/auth.py:139
↓ 1 callers
Method
_heartbeat_loop
Send periodic heartbeat pings to keep connection alive
PROJECTS/advanced/encrypted-p2p-chat/backend/app/core/websocket_manager.py:185
↓ 1 callers
Method
_init_schema
Define tables used by the application so empty SELECTs do not error
PROJECTS/advanced/encrypted-p2p-chat/backend/app/core/surreal_manager.py:67
← previous
next →
1,801–1,900 of 8,109, ranked by callers