python-cdk-document-db-cluster-backup-retention-period
- Enhanced to reduce false positives by:
- Fixing false positives where DocumentDB clusters with properly configured BackupProps were incorrectly flagged when using aliased imports
python-cdk-elb-logging-enabled
- Enhanced to reduce false positives by:
- Fixing false positives for ELB and ELBv2 load balancers when access logging was properly configured via AccessLoggingPolicy or LoggingAttributes constructors
python-cdk-enabled-access-logging-for-cloudfront-distribution
- Enhanced to reduce false positives by:
- Fixing false positives on CloudFront distributions that explicitly set enable_logging=True parameter — rule was incorrectly flagging compliant configurations as missing access logging
- Adding detection for distributions configured with log_bucket parameter, which enables access logging through S3 bucket specification but was previously unrecognized
- Resolving incorrect flagging of distributions using module-prefixed constructors like aws_cloudfront.Distribution() when proper logging configuration was present
python-cdk-rds-deletion-protection-enabled
- Enhanced to improve detection accuracy by:
- Fixing CWE classification from CWE-311 (Missing Encryption) to CWE-693 (Protection Mechanism Failure) for deletion protection detection
python-hardcoded-credentials-for-library-ide
- Enhanced to reduce false positives by:
- Removing false positives on hashlib.sha256() calls by restricting detection to credential-named variables and excluding environment variable sources
- Removing false positives for Google Cloud service account methods that were flagging legitimate file path parameters
- Removing false positives in requests library authentication for tuples used as form data rather than authentication headers
python-hardcoded-credentials-ide
- Enhanced to reduce false positives by:
- Fixing false positives on common placeholder values by excluding literal strings like "password", "token", "secret", and "test" that are frequently used as non-credential identifiers
- Resolving false positives on Windows batch file references by excluding strings ending with ".bat" extension
- Adding exclusions for Git SHA values in JSON objects to prevent flagging commit hashes as hardcoded credentials
python-incorrect-authorization
- Enhanced to improve detection coverage by:
- Adding detection for authorization checks using request.headers.get() and request.args.get() — previously only caught cookie-based role determination, missing common attack vectors through URL parameters and HTTP headers
- Enhancing coverage for indirect authorization patterns where role extraction is wrapped in helper functions — now detects when client-controlled input flows through intermediate functions before being used in access control decisions
- Improving pattern matching to catch authorization logic with different conditional ordering — fixes missed detections when admin role checks appeared in various positions within if-statements
python-llm-sensitive-information-disclosure
- Enhanced to improve detection coverage by:
- Adding detection for sensitive information flowing into OpenAI chat completions via chat.completions.create() and messages.create() message content parameters — previously missed credential leaks through conversational AI APIs
- Extending coverage to capture sensitive data passed to embeddings.create() input parameter and completions.create() prompt parameter — closed detection gaps for text processing and completion APIs
- Enhancing pattern matching to detect sensitive information in both direct variable assignments and f-string interpolations within LLM API calls — previously only caught direct assignments, missing templated sensitive data
python-llm-vector-embedding-weaknesses
- Enhanced to improve performance by:
- Fixing timeout failures on large files by optimizing pattern matching for AutoTokenizer and AutoModel detection
python-log-injection-hb
- Enhanced to improve performance by:
- Optimizing performance by consolidating framework request sources and validation recognized safe usages into unified pattern structures
python-log-injection-ide
- Enhanced to improve performance by:
- Optimizing log injection detection by consolidating duplicate function parameter patterns and grouping framework request sources to improve scan performance on large files
python-os-command-injection-ide
- Enhanced to improve performance by:
- Consolidating redundant function parameter patterns from 4 separate cases into a single generic pattern to improve scan performance on large files
python-path-traversal-hb
- Enhanced to reduce false positives and improve detection coverage by:
- Fixing false positives on allowlist validation patterns using if in constructs
- Fixing false positives when os.path.normpath() is followed by startswith() validation
- Adding recognition for common secure path validation patterns that prevent directory traversal
- Adding coverage for 14 Path Traversal APIs from shutil and os family
python-prompt-injection-vulnerability
- Enhanced to reduce false positives by:
- Removing overly broad dictionary access sources that matched every dictionary operation in Python code
- Removing redundant LLM vulnerable output points patterns while preserving coverage for prompt injection into OpenAI, Cohere, Gemini, and Bedrock APIs
python-sql-injection-ide
- Enhanced to improve performance and reduce false positives by:
- Fixing false positives caused by overly broad pattern matching that flagged safe database operations — now specifically targets only SQL execution methods like execute(), executemany(), and query() instead of all database cursor methods
- Enhancing detection coverage for additional database methods including fetchone(), fetchall(), group_by(), and order_by() that were previously missed when processing user input in f-strings and string concatenation
- Resolving performance issues on large codebases by consolidating 234 redundant patterns into 28 optimized regex-based patterns while preserving SQL injection detection coverage
python_cdk_kinesis_data_firehose_sse
- Enhanced to improve detection accuracy by:
- Fixing detection of unencrypted Kinesis Data Firehose delivery streams regardless of how CfnDeliveryStream is referenced or imported
- Adding detection for dictionary-style parameter passing using **kwargs syntax when delivery_stream_encryption_configuration_input is omitted or set to None
- Fixing parameter name typo from delivery_stream_encryption_configuration_inputt to delivery_stream_encryption_configuration_input
python-cdk-auto-scaling-group-health-check
- Enhanced to reduce false positives by:
- Removing detection of
HealthCheck.elb() method calls in AWS CDK AutoScalingGroup configurations - Eliminating false positives by no longer flagging deprecated API usage that does not represent a security misconfiguration
python-cross-site-scripting-hb
- Enhanced to improve performance by:
- Improving scan reliability on large Python files for CWE-79 cross-site scripting detection with no change to detected vulnerability patterns
python-do-not-hardcode-security-sensitive-credentials
- Enhanced to improve detection accuracy by:
- Ground truth correction only — corrected 7 benchmark test case annotations from defects=0 to defects=1 where actual hardcoded credentials were present but incorrectly marked as safe. No rule logic change
python-file-extension-validation
- Enhanced to reduce false positives by:
- Fixing false positives when file extensions are validated using Python's in or not in operators within if-statements — these membership checks are now recognized as valid extension validation
- Fixing false positives when open() is called with a hardcoded file path containing a safe extension (e.g., /var/www/html/img/img.jpg) rather than user-supplied input
python-cdk-auto-scaling-group-scaling-notifications
- Enhanced to reduce false positives by:
- Fixing false positives where AutoScalingGroup resources that configure notifications post-creation via notify_on_instance_launch(), notify_on_instance_terminate(), notify_on_instance_launch_errors(), notify_on_instance_terminate_errors(), or add_notification() methods were incorrectly flagged as missing notifications
- Extending pattern matching to use metavariable-regex for the ASG constructor, supporting both direct AutoScalingGroup(...) and aliased autoscaling.AutoScalingGroup(...) import styles
- Fixing incorrect manifest mapping, updated ruleManifestId from missing-encryption-of-sensitive-data-cdk to missing-scaling-notifications-cdk
python-avoid-string-formatting-in-sql-queries
- Enhanced to reduce false positives by:
- Fixing false positives where string literal concatenation (e.g., "SELECT..." + "Name" + ";") was incorrectly flagged as SQL injection — now only flags the + operator when at least one operand is non-constant (user-controlled) data
- Splitting the combined string formatting regex into separate detection paths for str.format()/% operator and + concatenation, adding a negation condition that suppresses findings when both operands of + resolve to constants
ts-hardcoded-credentials-ide
- Enhanced to reduce false positives by:
- Fixing false positives caused by detecting 4-6 digit numeric strings as hardcoded credentials — now excludes TOTP/OTP verification codes which are temporary tokens
- Resolving false positives on secret manager configuration variables by excluding identifier patterns like secretId, vaultPath, and secretArn
- Adding detection for credentials assigned from environment variables with empty string fallbacks (process.env.SECRET || "")
typescript-cdk-asg-without-patching
- Enhanced to reduce false positives by:
- Fixing false positives caused by overly broad pattern matching that flagged AutoScalingGroups even when they were properly managed through patching mechanisms like SubFleet integration or ManagerSpecification.ManagerResource configuration
- Resolving detection failures for AutoScalingGroups created with module prefixes by replacing generic = ... assignment patterns with specific new () constructor patterns
- Improving accuracy by ensuring the rule only triggers AutoScalingGroups that lack both SubFleet integration and proper ManagerSpecification.ManagerResource configuration for OS patching
typescript-cdk-sns-topic-ssl-publish-only
- Enhanced to reduce false positives by:
- Fixing false positives caused by overly restrictive pattern matching that required exact constructor parameter positioning for SNS Topic and KMS Key detection in AWS CDK constructs
typescript-code-injection-hb
- Enhanced to reduce false positives by:
- Fixing false positives when user input is validated with regex .test() method in if-guards — both positive and negative validation patterns are now properly recognized as recognized safe usages
- Adding recognized safe usages detection for .match() method when used for input validation
- Resolving false positives in Nunjucks template rendering when using hardcoded template strings — nunjucks.renderString() calls with string literals are now excluded
typescript-cross-site-scripting-ide
- Enhanced to improve detection coverage and reduce false positives by:
- Removing false positives from overly broad request object detection by adding validation for legitimate variables that don't represent XSS sources
- Removing false positives from safe DOM methods like getElementById, querySelector, and textContent that don't introduce XSS vulnerabilities
- Adding detection for user input flowing into template rendering engines including Handlebars, Pug, EJS, and Mustache render methods
typescript-csrf-missing-protection-ide
- Enhanced to reduce false positives by:
- Fixing false positives on endpoints with route-level CSRF protection middleware like csrfProtection and csrfMiddleware
- Fixing false positives on custom CSRF middleware that validates x-csrf-token headers
- Improving detection accuracy by restricting to HTTP-specific handler parameter patterns
typescript-os-command-injection-hb
- Enhanced to reduce false positives by:
- Fixing false positives where RegExp.exec() was incorrectly flagged as child_process.exec()
- Adding recognized safe usages recognition for negative allowlist guards to reduce false positives on validated input flows
typescript-server-side-request-forgery-ide
- Enhanced to reduce false positives and improve detection coverage by:
- Fixing false positives when user input is properly sanitized with encodeURIComponent() before URL construction
- Resolving false positives caused by missing recognition of domain allowlist validation patterns including !allowlist.includes() guards and domain.some() validation with early returns
- Adding detection coverage for class-validator's validate() function and custom validation functions that check URL protocol and hostname against allowlists
typescript-cdk-open-search-dedicated-master-node
- Enhanced to improve detection accuracy by:
- Updating CWE classification from "CWE-693: Protection Mechanism Failure" to "CWE-400: Uncontrolled Resource Consumption" for better alignment with the resource consumption nature of the vulnerability
- Improving categorization accuracy for OpenSearch Service domains missing dedicated master node configuration in AWS CDK TypeScript code
typescript-cdk-vpc-flow-logs-enabled
- Enhanced to reduce false positives by:
- Fixing CWE mapping for the VPC flow logs rule to ensure proper vulnerability classification
- Reducing false positives by improving detection of VPC configurations that have flow logs enabled through the
flowLogs parameter or separate FlowLog constructs - Enhancing coverage to properly identify when VPCs are protected by flow logs configured via
FlowLogResourceType.fromVpc() method calls
typescript-csrf-before-method-override
- Enhanced to reduce false positives by:
- Fixing false positives in function-scoped Express middleware registration where express.methodOverride() is correctly placed before express.csrf()
- Adding detection for methodOverride on the same receiver object via callee→receiver→data-dependents traversal, suppressing findings when middleware ordering is correct within standalone functions, arrow functions, and outer-scoped contexts
typescript-path-traversal-hb
- Enhanced to reduce false positives and improve detection coverage by:
- Removing false positives caused by regex .test() validation, allowlist positive checks, path.normalize combined with startsWith containment, and custom isPathSafe function calls being incorrectly flagged as path traversal vulnerabilities
- Adding pattern-not-inside exclusions on path.join sink for normalize+startsWith and isPathSafe pre-checks
- Adding API coverage from fs families
typescript-jwt-secret-hardcoded
- Enhanced to reduce false positives by:
- Fixing false positives where JWT secrets loaded from safe sources - fs.readFileSync(), configuration objects like config.jwt.secret, and class instance method calls getSecret() - were incorrectly flagged as hardcoded credentials
- Adding negation logic to exclude method invocations and class instance creations from the string-type data filter, so only actual string literals are flagged