Repository Analysis

bridgecrewio/checkov

Prevent cloud misconfigurations and find vulnerabilities during build-time in infrastructure as code, container images and open source packages with Checkov by Bridgecrew.

10.2 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of bridgecrewio/checkov, a Python project with 8,867 GitHub stars. SynthScan v2.0 examined 625,151 lines of code across 9495 source files, recording 5015 pattern matches distributed across 21 syntactic categories. The overall adjusted score of 10.2 places this repository in the Low AI signal band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

10.2
Adjusted Score
10.2
Raw Score
100%
Time Factor
2026-07-12
Last Push
8.9K
Stars
Python
Language
625.2K
Lines of Code
9.5K
Files
5.0K
Pattern Hits
2026-07-14
Scan Date
0.02
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 0HIGH 148MEDIUM 285LOW 4582

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

The scanner identified 5015 distinct pattern matches across 21 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Hyper-Verbose Identifiers2255 hits · 2321 pts
SeverityFileLineSnippetContext
LOWsetup.py16 def transform_graph_yaml_to_json(self) -> None:CODE
LOWdangerfile.ts44async function failIfLoggingLineContainsSensitiveData() {CODE
LOWperformance_tests/test_checkov_performance.py56def test_terraform_performance(benchmark):CODE
LOWperformance_tests/test_checkov_performance.py81def test_cloudformation_performance(benchmark):CODE
LOWintegration_tests/test_checkov_sarif_report.py23 def validate_report_not_empty(self, report):CODE
LOWintegration_tests/test_checkov_config.py63 def test_no_config_file_argument(self):CODE
LOWintegration_tests/test_checkov_ext_module_cloning.py12 def test_private_github_modules_api_key(self):CODE
LOWintegration_tests/test_checkov_ext_module_cloning.py20 def test_private_tfc_modules_api_key(self):CODE
LOWintegration_tests/test_checkov_junit_report.py9 def test_terragoat_junit_report(self):CODE
LOW…tegration_tests/test_checkov_cli_integration_report.py11 def test_terragoat_report_dir_api_key(self):CODE
LOW…tegration_tests/test_checkov_cli_integration_report.py15 def test_terragoat_report_dir_no_upload_api_key(self):CODE
LOW…tegration_tests/test_checkov_cli_integration_report.py19 def test_terragoat_report_file_api_key(self):CODE
LOW…tegration_tests/test_checkov_cli_integration_report.py31 def test_bitbucket_pipelines_report_api_key(self):CODE
LOWintegration_tests/test_checkov_json_report.py16 def test_kustomizegoat_report(self):CODE
LOWintegration_tests/test_checkov_json_report.py35 def test_checkov_report_terragoat_with_skip(self):CODE
LOWintegration_tests/test_checkov_json_report.py56 def validate_report_not_empty(self, report):CODE
LOWintegration_tests/test_checkov_cyclonedx_report.py18 def validate_report_not_empty(self, report):CODE
LOWtests/test_runner_filter.py56def test_runner_filter_constructor_framework(CODE
LOWtests/test_main.py39def test_run_with_outer_registry_and_framework_flag():CODE
LOWtests/test_main.py86def test_run_with_severity_filter_and_api_key(caplog: LogCaptureFixture):CODE
LOWtests/test_main.py109def test_run_with_severity_filter_without_api_key(caplog: LogCaptureFixture):CODE
LOWtests/test_main.py129def test_run_with_severity_skip_filter_without_api_key(caplog: LogCaptureFixture):CODE
LOWtests/test_main.py165def test_run_without_custom_severity():CODE
LOWtests/test_main.py181def test_optional_download_external_modules():CODE
LOWtests/terraform/test_scanner_registry.py27 def test_non_colliding_check_ids(self):CODE
LOWtests/terraform/test_scanner_registry.py36 def test_non_colliding_graph_check_ids(self):CODE
LOWtests/terraform/util/test_doc_generator.py13def test_get_checks_returned_check_number():CODE
LOWtests/terraform/util/test_doc_generator.py80def test_get_checks_returned_frameworks(input_frameworks: list[str] | None, expected_frameworks: set[str]):CODE
LOWtests/terraform/util/test_doc_generator.py90def test_get_checks_graph_registries():CODE
LOWtests/terraform/checks/test_base_resource_check.py7 def test_contains_unrendered_variable(self):CODE
LOWtests/terraform/checks/module/registry/test_registry.py22 def test_registry_external_check_load(self):CODE
LOW…ks/resource/test_base_resource_negative_value_check.py70 def test_string_mismatch_static(self):CODE
LOW…ks/resource/test_base_resource_negative_value_check.py75 def test_string_contains_var_any(self):CODE
LOW…ks/resource/test_base_resource_negative_value_check.py80 def test_string_contains_var_static(self):CODE
LOW…form/checks/resource/test_base_resource_value_check.py70 def test_string_mismatch_static(self):CODE
LOW…form/checks/resource/test_base_resource_value_check.py75 def test_string_contains_var_any(self):CODE
LOW…form/checks/resource/test_base_resource_value_check.py80 def test_string_contains_var_static(self):CODE
LOW…e/openstack/test_SecurityGroupUnrestrictedIngress22.py43 def test_failure_compute_secgroup_port_range(self):STRING
LOW…e/openstack/test_SecurityGroupUnrestrictedIngress22.py85 def test_pass_compute_secgroup_different_port(self):STRING
LOW…e/openstack/test_SecurityGroupUnrestrictedIngress22.py110 def test_pass_compute_secgroup_no_cidr(self):STRING
LOW…e/openstack/test_SecurityGroupUnrestrictedIngress22.py128 def test_pass_compute_secgroup_null_cidr(self):STRING
LOW…e/openstack/test_SecurityGroupUnrestrictedIngress22.py146 def test_pass_compute_secgroup_cidr(self):STRING
LOW…e/openstack/test_SecurityGroupUnrestrictedIngress22.py164 def test_pass_compute_secgroup_icmp(self):STRING
LOW…e/openstack/test_SecurityGroupUnrestrictedIngress22.py184 def test_failure_networking_secgroup(self):STRING
LOW…e/openstack/test_SecurityGroupUnrestrictedIngress22.py209 def test_failure_networking_secgroup_port_range(self):STRING
LOW…e/openstack/test_SecurityGroupUnrestrictedIngress22.py225 def test_pass_networking_secgroup(self):STRING
LOW…e/openstack/test_SecurityGroupUnrestrictedIngress22.py242 def test_pass_networking_secgroup_icmp(self):STRING
LOW…e/openstack/test_SecurityGroupUnrestrictedIngress22.py258 def test_unknown_networking_secgroup_egress(self):STRING
LOW…e/openstack/test_SecurityGroupUnrestrictedIngress22.py274 def test_pass_networking_secgroup_source_sg(self):STRING
LOW…e/openstack/test_SecurityGroupUnrestrictedIngress22.py290 def test_pass_networking_secgroup_different_port(self):STRING
LOW…openstack/test_SecurityGroupUnrestrictedIngress3389.py43 def test_failure_compute_secgroup_port_range(self):STRING
LOW…openstack/test_SecurityGroupUnrestrictedIngress3389.py85 def test_pass_compute_secgroup_different_port(self):STRING
LOW…openstack/test_SecurityGroupUnrestrictedIngress3389.py110 def test_pass_compute_secgroup_no_cidr(self):STRING
LOW…openstack/test_SecurityGroupUnrestrictedIngress3389.py128 def test_pass_compute_secgroup_null_cidr(self):STRING
LOW…openstack/test_SecurityGroupUnrestrictedIngress3389.py146 def test_pass_compute_secgroup_cidr(self):STRING
LOW…openstack/test_SecurityGroupUnrestrictedIngress3389.py164 def test_pass_compute_secgroup_icmp(self):STRING
LOW…openstack/test_SecurityGroupUnrestrictedIngress3389.py184 def test_failure_networking_secgroup(self):STRING
LOW…openstack/test_SecurityGroupUnrestrictedIngress3389.py209 def test_failure_networking_secgroup_port_range(self):STRING
LOW…openstack/test_SecurityGroupUnrestrictedIngress3389.py225 def test_pass_networking_secgroup(self):STRING
LOW…openstack/test_SecurityGroupUnrestrictedIngress3389.py242 def test_pass_networking_secgroup_icmp(self):STRING
2195 more matches not shown…
Unused Imports1128 hits · 1111 pts
SeverityFileLineSnippetContext
LOWtests/test_contributor_metrics.py1CODE
LOWtests/test_main.py1CODE
LOWtests/terraform/test_scanner_registry.py5CODE
LOWtests/terraform/util/test_doc_generator.py1CODE
LOW…e/test_AzureBatchAccountEndpointAccessDefaultAction.py1CODE
LOW…ks/resource/azure/test_GithubActionsOIDCTrustPolicy.py1CODE
LOW…m/checks/resource/aws/test_S3AbortIncompleteUploads.py1CODE
LOW…aform/checks/resource/aws/test_DocDBBackupRetention.py7CODE
LOW…form/runner/extra_tf_plan_checks/secret_not_deleted.py1CODE
LOW…tf_plan_checks/security_group_rule_protocol_changed.py1CODE
LOW…sts/terraform/runner/py_check_tf_plan/check_tf_plan.py1CODE
LOWtests/terraform/runner/py_graph_check/py_graph_check.py1CODE
LOWtests/terraform/graph/graph_builder/test_local_graph.py10CODE
LOWtests/terraform/graph/graph_builder/test_local_graph.py10CODE
LOWtests/terraform/graph/graph_builder/test_local_graph.py10CODE
LOWtests/terraform/graph/graph_builder/test_oci_policy.py4CODE
LOW…ts/terraform/graph/graph_builder/test_graph_builder.py9CODE
LOWtests/terraform/graph/checks/test_yaml_policies.py1CODE
LOW…ts/terraform/graph/checks/test_custom_yaml_policies.py1CODE
LOWtests/terraform/graph/runner/test_graph_builder.py1CODE
LOWtests/terraform/parser/test_new_parser_modules.py5CODE
LOWtests/terraform/parser/test_plan_parser.py5CODE
LOWtests/terraform/context_parsers/test_base_parser.py9CODE
LOWtests/terraform/context_parsers/test_base_parser.py10CODE
LOWtests/terraform/context_parsers/test_base_parser.py11CODE
LOWtests/terraform/image_referencer/provider/test_gcp.py1CODE
LOWtests/terraform/module_loading/test_tf_module_finder.py6CODE
LOWtests/terraform/module_loading/test_runner.py1CODE
LOWtests/unit/test_github_failed_only.py11CODE
LOWtests/unit/test_github_failed_only.py13CODE
LOWtests/sca_image/conftest.py1CODE
LOWtests/sca_image/test_validate_image_id.py1CODE
LOWtests/sca_image/test_validate_image_id.py5CODE
LOWtests/sca_image/test_output_reports.py2CODE
LOWtests/sca_image/test_output_reports.py7CODE
LOWtests/sca_image/test_runner.py1CODE
LOWtests/sca_image/test_runner.py4CODE
LOWtests/sca_image/mocks.py1CODE
LOWtests/sca_image/mocks.py3CODE
LOWtests/dockerfile/graph_builder/test_local_graph.py8CODE
LOW…/dockerfile/graph_builder/checks/test_yaml_policies.py1CODE
LOWtests/serverless/graph_builder/test_local_graph.py4CODE
LOWtests/serverless/runner/test_runner.py9CODE
LOWtests/secrets/test_secrets_verification.py1CODE
LOWtests/secrets/test_secret_git_history.py1CODE
LOWtests/secrets/git_history/test_utils.py1CODE
LOWtests/policies_3d/conftest.py1CODE
LOWtests/policies_3d/conftest.py7CODE
LOWtests/policies_3d/test_output.py1CODE
LOWtests/policies_3d/test_runner.py1CODE
LOWtests/azure_pipelines/conftest.py1CODE
LOWtests/openapi/checks/test_python_policies.py1CODE
LOWtests/ansible/checks/test_python_policies.py1CODE
LOWtests/common/conftest.py1CODE
LOWtests/common/check_assertion_utils.py1CODE
LOW…tegration_features/test_vulnerabilities_integration.py1CODE
LOW…/common/integration_features/test_fixes_integration.py1CODE
LOWtests/common/graph/checks/test_yaml_policies_base.py1CODE
LOWtests/common/output/conftest.py1CODE
LOWtests/common/output/test_common.py1CODE
1068 more matches not shown…
Deep Nesting617 hits · 598 pts
SeverityFileLineSnippetContext
LOW…tegration_tests/test_checkov_platform_only_policies.py14CODE
LOW…y/example_external_dir/extra_checks/S3PCIPrivateACL.py15CODE
LOWtests/terraform/runner/test_runner.py345CODE
LOWtests/terraform/runner/test_runner.py360CODE
LOWtests/terraform/runner/test_runner.py1293CODE
LOWtests/terraform/graph/graph_builder/test_local_graph.py143CODE
LOWtests/terraform/graph/graph_builder/test_local_graph.py214CODE
LOW…ts/terraform/graph/graph_builder/test_graph_builder.py200CODE
LOW…ts/terraform/graph/checks/test_yaml_connected_nodes.py99CODE
LOWtests/terraform/graph/checks_infra/test_base.py39CODE
LOW…aform/graph/variable_rendering/test_render_scenario.py280CODE
LOW…aform/graph/variable_rendering/test_render_scenario.py326CODE
LOW…aform/graph/variable_rendering/test_render_scenario.py200CODE
LOW…aform/graph/variable_rendering/test_render_scenario.py230CODE
LOW…aform/graph/variable_rendering/test_render_scenario.py243CODE
LOWtests/dockerfile/test_runner.py292CODE
LOWtests/serverless/runner/test_runner.py147CODE
LOWtests/common/graph/checks/test_yaml_policies_base.py113CODE
LOWtests/common/output/test_sarif_report.py436CODE
LOWtests/arm/runner/test_runner.py136CODE
LOWtests/kubernetes/runner/test_runner.py151CODE
LOWtests/cloudformation/runner/test_runner.py219CODE
LOW…cloudformation/graph/graph_builder/test_local_graph.py219CODE
LOW…rmation/graph/checks/test_yaml_policies_with_runner.py7CODE
LOWtests/helm/test_runner.py181CODE
LOWcdk_integration_tests/utils.py10CODE
LOWcheckov/docs_generator.py87CODE
LOWcheckov/docs_generator.py98CODE
LOWcheckov/main.py170CODE
LOWcheckov/main.py255CODE
LOWcheckov/terraform/runner.py62CODE
LOWcheckov/terraform/runner.py257CODE
LOWcheckov/terraform/runner.py325CODE
LOWcheckov/terraform/runner.py462CODE
LOWcheckov/terraform/base_runner.py166CODE
LOWcheckov/terraform/tf_parser.py205CODE
LOWcheckov/terraform/tf_parser.py374CODE
LOWcheckov/terraform/tf_parser.py472CODE
LOWcheckov/terraform/tf_parser.py552CODE
LOWcheckov/terraform/parser_utils.py20CODE
LOWcheckov/terraform/plan_runner.py215CODE
LOWcheckov/terraform/plan_utils.py16CODE
LOWcheckov/terraform/plan_utils.py63CODE
LOWcheckov/terraform/parser_functions.py197CODE
LOWcheckov/terraform/plan_parser.py106CODE
LOWcheckov/terraform/plan_parser.py227CODE
LOWcheckov/terraform/plan_parser.py245CODE
LOWcheckov/terraform/plan_parser.py324CODE
LOWcheckov/terraform/plan_parser.py409CODE
LOWcheckov/terraform/plan_parser.py460CODE
LOWcheckov/terraform/plan_parser.py486CODE
LOWcheckov/terraform/plan_parser.py506CODE
LOWcheckov/terraform/plan_parser.py569CODE
LOWcheckov/terraform/graph_builder/local_graph.py150CODE
LOWcheckov/terraform/graph_builder/local_graph.py210CODE
LOWcheckov/terraform/graph_builder/local_graph.py312CODE
LOWcheckov/terraform/graph_builder/local_graph.py423CODE
LOWcheckov/terraform/graph_builder/local_graph.py459CODE
LOWcheckov/terraform/graph_builder/local_graph.py506CODE
LOWcheckov/terraform/graph_builder/local_graph.py757CODE
557 more matches not shown…
Cross-File Repetition96 hits · 480 pts
SeverityFileLineSnippetContext
HIGH…odule_version_check/extra_checks/ModuleVersionCheck.py0some test for module source :param conf: module call :return: <checkresult>STRING
HIGH…le_version_check/extra_checks/ModuleSourceHashCheck.py0some test for module source :param conf: module call :return: <checkresult>STRING
HIGH…istry/example_external_dir/extra_checks/ModuleCheck.py0some test for module source :param conf: module call :return: <checkresult>STRING
HIGH…ce/azure/test_PostgreSQLServerSSLEnforcementEnabled.py0resource "azurerm_mysql_server" "example" { name = "example-psqlserver" location = azurerm_resource_group.example.locatiSTRING
HIGH…cks/resource/azure/test_PostgresSQLGeoBackupEnabled.py0resource "azurerm_mysql_server" "example" { name = "example-psqlserver" location = azurerm_resource_group.example.locatiSTRING
HIGH…rce/azure/test_PostgreSQLServerPublicAccessDisabled.py0resource "azurerm_mysql_server" "example" { name = "example-psqlserver" location = azurerm_resource_group.example.locatiSTRING
HIGH…cks/resource/azure/test_PostgreSQLEncryptionEnabled.py0resource "azurerm_mysql_server" "example" { name = "example-psqlserver" location = azurerm_resource_group.example.locatiSTRING
HIGH…m/checks/resource/azure/test_MySQLEncryptionEnabled.py0resource "azurerm_mysql_server" "example" { name = "example-psqlserver" location = azurerm_resource_group.example.locatiSTRING
HIGH…rce/azure/test_KeyVaultEnablesFirewallRulesSettings.py0resource "azurerm_key_vault" "example" { name = "examplekeyvault" location = azurerm_resource_group.example.location resSTRING
HIGH…/resource/azure/test_KeyVaultEnablesPurgeProtection.py0resource "azurerm_key_vault" "example" { name = "examplekeyvault" location = azurerm_resource_group.example.location resSTRING
HIGH…hecks/resource/azure/test_KeyVaultEnablesSoftDelete.py0resource "azurerm_key_vault" "example" { name = "examplekeyvault" location = azurerm_resource_group.example.location resSTRING
HIGH…ks/resource/azure/test_MariaDBSSLEnforcementEnabled.py0resource "azurerm_mariadb_server" "example" { name = var.server_name location = var.resource_group.location resource_groSTRING
HIGH…cks/resource/azure/test_MariaDBPublicAccessDisabled.py0resource "azurerm_mariadb_server" "example" { name = var.server_name location = var.resource_group.location resource_groSTRING
HIGH…/checks/resource/azure/test_MariaDBGeoBackupEnabled.py0resource "azurerm_mariadb_server" "example" { name = var.server_name location = var.resource_group.location resource_groSTRING
HIGH…ce/azure/test_PostgreSQLServerLogConnectionsEnabled.py0resource "azurerm_postgresql_configuration" "example" { name = "connection_throttling" resource_group_name = data.azurerSTRING
HIGH…rce/azure/test_PostgreSQLServerLogCheckpointEnabled.py0resource "azurerm_postgresql_configuration" "example" { name = "connection_throttling" resource_group_name = data.azurerSTRING
HIGH…re/test_PostgreSQLServerConnectionThrottlingEnabled.py0resource "azurerm_postgresql_configuration" "example" { name = "connection_throttling" resource_group_name = data.azurerSTRING
HIGH…ce/azure/test_PostgreSQLServerLogConnectionsEnabled.py0resource "azurerm_postgresql_configuration" "example" { name = "backslash_quote" resource_group_name = azurerm_resource_STRING
HIGH…rce/azure/test_PostgreSQLServerLogCheckpointEnabled.py0resource "azurerm_postgresql_configuration" "example" { name = "backslash_quote" resource_group_name = azurerm_resource_STRING
HIGH…re/test_PostgreSQLServerConnectionThrottlingEnabled.py0resource "azurerm_postgresql_configuration" "example" { name = "backslash_quote" resource_group_name = azurerm_resource_STRING
HIGH…cks/resource/azure/test_SecurityCenterContactEmails.py0resource "azurerm_security_center_contact" "example" { email = "contact@example.com" phone = "+1-555-555-5555" alert_notSTRING
HIGH…checks/resource/azure/test_SecurityCenterEmailAlert.py0resource "azurerm_security_center_contact" "example" { email = "contact@example.com" phone = "+1-555-555-5555" alert_notSTRING
HIGH…/resource/azure/test_SecurityCenterEmailAlertAdmins.py0resource "azurerm_security_center_contact" "example" { email = "contact@example.com" phone = "+1-555-555-5555" alert_notSTRING
HIGH…cks/resource/azure/test_SQLServerEmailAlertsEnabled.py0resource "azurerm_mssql_server_security_alert_policy" "example" { resource_group_name = azurerm_resource_group.example.nSTRING
HIGH…s/resource/azure/test_SQLServerThreatDetectionTypes.py0resource "azurerm_mssql_server_security_alert_policy" "example" { resource_group_name = azurerm_resource_group.example.nSTRING
HIGH…urce/azure/test_SQLServerEmailAlertsToAdminsEnabled.py0resource "azurerm_mssql_server_security_alert_policy" "example" { resource_group_name = azurerm_resource_group.example.nSTRING
HIGH…cks/resource/azure/test_SQLServerEmailAlertsEnabled.py0resource "azurerm_mssql_server_security_alert_policy" "example" { resource_group_name = azurerm_resource_group.example.nSTRING
HIGH…s/resource/azure/test_SQLServerThreatDetectionTypes.py0resource "azurerm_mssql_server_security_alert_policy" "example" { resource_group_name = azurerm_resource_group.example.nSTRING
HIGH…urce/azure/test_SQLServerEmailAlertsToAdminsEnabled.py0resource "azurerm_mssql_server_security_alert_policy" "example" { resource_group_name = azurerm_resource_group.example.nSTRING
HIGH…esource/azure/test_PostgresSQLTreatDetectionEnabled.py0resource "azurerm_mysql_server" "examplea" { name = "example-mysqlserver" location = azurerm_resource_group.example.locaSTRING
HIGH…ecks/resource/azure/test_MySQLTreatDetectionEnabled.py0resource "azurerm_mysql_server" "examplea" { name = "example-mysqlserver" location = azurerm_resource_group.example.locaSTRING
HIGH…checks/resource/azure/test_MySQLServerMinTLSVersion.py0resource "azurerm_mysql_server" "examplea" { name = "example-mysqlserver" location = azurerm_resource_group.example.locaSTRING
HIGH…esource/azure/test_MySQLServerSSLEnforcementEnabled.py0resource "azurerm_mysql_server" "examplea" { name = "example-mysqlserver" location = azurerm_resource_group.example.locaSTRING
HIGH…hecks/resource/azure/test_AKSEnablesPrivateClusters.py0resource "azurerm_kubernetes_cluster" "example" { name = "example-aks1" location = azurerm_resource_group.example.locatiSTRING
HIGH…hecks/resource/azure/test_AKSUsesAzurePoliciesAddon.py0resource "azurerm_kubernetes_cluster" "example" { name = "example-aks1" location = azurerm_resource_group.example.locatiSTRING
HIGH…checks/resource/azure/test_AKSUsesDiskEncryptionSet.py0resource "azurerm_kubernetes_cluster" "example" { name = "example-aks1" location = azurerm_resource_group.example.locatiSTRING
HIGH…m/checks/resource/gcp/test_GoogleComputeSerialPorts.py0resource "google_compute_instance_from_template" "default" { name = "test" source_instance_template = google_compute_insSTRING
HIGH…ecks/resource/gcp/test_GoogleComputeInstanceOSLogin.py0resource "google_compute_instance_from_template" "default" { name = "test" source_instance_template = google_compute_insSTRING
HIGH…ecks/resource/gcp/test_GoogleComputeBlockProjectSSH.py0resource "google_compute_instance_from_template" "default" { name = "test" source_instance_template = google_compute_insSTRING
HIGH…m/checks/resource/gcp/test_GoogleComputeSerialPorts.py0resource "google_compute_instance_from_template" "default" { name = "test" source_instance_template = google_compute_insSTRING
HIGH…ecks/resource/gcp/test_GoogleComputeInstanceOSLogin.py0resource "google_compute_instance_from_template" "default" { name = "test" source_instance_template = google_compute_insSTRING
HIGH…orm/checks/resource/gcp/test_GoogleComputeIPForward.py0resource "google_compute_instance_from_template" "default" { name = "test" source_instance_template = google_compute_insSTRING
HIGH…ecks/resource/gcp/test_GoogleComputeBlockProjectSSH.py0resource "google_compute_instance_from_template" "default" { name = "test" source_instance_template = google_compute_insSTRING
HIGH…rm/checks/resource/gcp/test_GoogleComputeShieldedVM.py0resource "google_compute_instance_from_template" "default" { name = "test" source_instance_template = google_compute_insSTRING
HIGH…m/checks/resource/gcp/test_GoogleComputeSerialPorts.py0resource "google_compute_instance" "default" { name = "test" machine_type = "n1-standard-1" zone = "us-central1-a" boot_STRING
HIGH…rm/checks/resource/gcp/test_GoogleComputeShieldedVM.py0resource "google_compute_instance" "default" { name = "test" machine_type = "n1-standard-1" zone = "us-central1-a" boot_STRING
HIGH…ecks/resource/gcp/test_GoogleComputeInstanceOSLogin.py0resource "google_compute_instance" "default" { name = "test" machine_type = "n1-standard-1" zone = "us-central1-a" boot_STRING
HIGH…orm/checks/resource/gcp/test_GoogleComputeIPForward.py0resource "google_compute_instance" "default" { name = "test" machine_type = "n1-standard-1" zone = "us-central1-a" boot_STRING
HIGH…form/checks/resource/aws/test_RedshiftClusterKMSKey.py0resource "aws_redshift_cluster" "default" { cluster_identifier = "tf-redshift-cluster" database_name = "mydb" master_useSTRING
HIGH…orm/checks/resource/aws/test_RedshiftClusterLogging.py0resource "aws_redshift_cluster" "default" { cluster_identifier = "tf-redshift-cluster" database_name = "mydb" master_useSTRING
HIGH…esource/aws/test_RedshiftClusterAllowVersionUpgrade.py0resource "aws_redshift_cluster" "default" { cluster_identifier = "tf-redshift-cluster" database_name = "mydb" master_useSTRING
HIGH…raform/checks/resource/aws/test_LambdaDLQConfigured.py0resource "aws_lambda_function" "test_lambda" { filename = "lambda_function_payload.zip" function_name = "lambda_functionSTRING
HIGHtests/terraform/checks/resource/aws/test_LambdaInVPC.py0resource "aws_lambda_function" "test_lambda" { filename = "lambda_function_payload.zip" function_name = "lambda_functionSTRING
HIGH…ws/test_LambdaFunctionLevelConcurrentExecutionLimit.py0resource "aws_lambda_function" "test_lambda" { filename = "lambda_function_payload.zip" function_name = "lambda_functionSTRING
HIGH…/checks/resource/base_resource_negative_value_check.py0:return: jsonpath syntax path of the checked attributeSTRING
HIGH…terraform/checks/resource/base_resource_value_check.py0:return: jsonpath syntax path of the checked attributeSTRING
HIGHcheckov/ansible/checks/base_ansible_task_value_check.py0:return: jsonpath syntax path of the checked attributeSTRING
HIGHcheckov/arm/base_resource_negative_value_check.py0:return: jsonpath syntax path of the checked attributeSTRING
HIGHcheckov/arm/base_resource_value_check.py0:return: jsonpath syntax path of the checked attributeSTRING
HIGH…kov/bicep/checks/resource/base_resource_value_check.py0:return: jsonpath syntax path of the checked attributeSTRING
36 more matches not shown…
Decorative Section Separators116 hits · 436 pts
SeverityFileLineSnippetContext
MEDIUM…/AppsyncWebACLConfiguredWIthLog4jVulnerability/main.tf125# ==================================COMMENT
MEDIUMtests/common/utils/test_update_checker.py33# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/common/utils/test_update_checker.py35# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/common/utils/test_update_checker.py142# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/common/utils/test_update_checker.py144# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/common/utils/test_update_checker.py154# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/common/utils/test_update_checker.py156# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/common/utils/test_update_checker.py220# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/common/utils/test_update_checker.py222# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/common/utils/test_update_checker.py392# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/common/utils/test_update_checker.py394# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/common/external_checks/verification/conftest.py16# ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/common/external_checks/verification/conftest.py63# ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM…on/external_checks/verification/test_signer_interop.py30# --------------------------------------------------------------------------COMMENT
MEDIUM…on/external_checks/verification/test_signer_interop.py32# --------------------------------------------------------------------------COMMENT
MEDIUM…on/external_checks/verification/test_signer_interop.py53# --------------------------------------------------------------------------COMMENT
MEDIUM…on/external_checks/verification/test_signer_interop.py55# --------------------------------------------------------------------------COMMENT
MEDIUM…on/external_checks/verification/test_signer_interop.py189# --------------------------------------------------------------------------COMMENT
MEDIUM…on/external_checks/verification/test_signer_interop.py194# --------------------------------------------------------------------------COMMENT
MEDIUM…on/external_checks/verification/test_signer_interop.py248# --------------------------------------------------------------------------COMMENT
MEDIUM…on/external_checks/verification/test_signer_interop.py250# --------------------------------------------------------------------------COMMENT
MEDIUM…on/external_checks/verification/test_signer_interop.py280# --------------------------------------------------------------------------COMMENT
MEDIUM…on/external_checks/verification/test_signer_interop.py282# --------------------------------------------------------------------------COMMENT
MEDIUM…on/external_checks/verification/test_signer_interop.py304# --------------------------------------------------------------------------COMMENT
MEDIUM…on/external_checks/verification/test_signer_interop.py306# --------------------------------------------------------------------------COMMENT
MEDIUM…on/external_checks/verification/test_signer_interop.py332# --------------------------------------------------------------------------COMMENT
MEDIUM…on/external_checks/verification/test_signer_interop.py334# --------------------------------------------------------------------------COMMENT
MEDIUM…on/external_checks/verification/test_signer_interop.py380# --------------------------------------------------------------------------COMMENT
MEDIUM…on/external_checks/verification/test_signer_interop.py389# --------------------------------------------------------------------------COMMENT
MEDIUM…on/external_checks/verification/test_signer_interop.py416# --------------------------------------------------------------------------COMMENT
MEDIUM…on/external_checks/verification/test_signer_interop.py425# --------------------------------------------------------------------------COMMENT
MEDIUM…on/external_checks/verification/test_signer_interop.py506# --------------------------------------------------------------------------COMMENT
MEDIUM…on/external_checks/verification/test_signer_interop.py508# --------------------------------------------------------------------------COMMENT
MEDIUM…on/external_checks/verification/test_signer_interop.py98# --------------------------------------------------------------------------COMMENT
MEDIUM…on/external_checks/verification/test_signer_interop.py105# --------------------------------------------------------------------------COMMENT
MEDIUM…on/external_checks/verification/test_signer_interop.py460# --------------------------------------------------------------------------COMMENT
MEDIUM…on/external_checks/verification/test_signer_interop.py467# --------------------------------------------------------------------------COMMENT
MEDIUM…on/external_checks/verification/test_chokepoint_git.py76# --------------------------------------------------------------------------COMMENT
MEDIUM…on/external_checks/verification/test_chokepoint_git.py78# --------------------------------------------------------------------------COMMENT
MEDIUM…on/external_checks/verification/test_chokepoint_git.py109# --------------------------------------------------------------------------COMMENT
MEDIUM…on/external_checks/verification/test_chokepoint_git.py111# --------------------------------------------------------------------------COMMENT
MEDIUM…on/external_checks/verification/test_chokepoint_git.py184# --------------------------------------------------------------------------COMMENT
MEDIUM…on/external_checks/verification/test_chokepoint_git.py186# --------------------------------------------------------------------------COMMENT
MEDIUM…on/external_checks/verification/test_chokepoint_git.py231# --------------------------------------------------------------------------COMMENT
MEDIUM…on/external_checks/verification/test_chokepoint_git.py233# --------------------------------------------------------------------------COMMENT
MEDIUM…on/external_checks/verification/test_chokepoint_git.py266# --------------------------------------------------------------------------COMMENT
MEDIUM…on/external_checks/verification/test_chokepoint_git.py268# --------------------------------------------------------------------------COMMENT
MEDIUM…on/external_checks/verification/test_chokepoint_git.py315# --------------------------------------------------------------------------COMMENT
MEDIUM…on/external_checks/verification/test_chokepoint_git.py317# --------------------------------------------------------------------------COMMENT
MEDIUM…common/external_checks/verification/test_regression.py150# --------------------------------------------------------------------------COMMENT
MEDIUM…common/external_checks/verification/test_regression.py152# --------------------------------------------------------------------------COMMENT
MEDIUM…common/external_checks/verification/test_regression.py217# --------------------------------------------------------------------------COMMENT
MEDIUM…common/external_checks/verification/test_regression.py221# --------------------------------------------------------------------------COMMENT
MEDIUM…common/external_checks/verification/test_regression.py300# --------------------------------------------------------------------------COMMENT
MEDIUM…common/external_checks/verification/test_regression.py303# --------------------------------------------------------------------------COMMENT
MEDIUM…common/external_checks/verification/test_regression.py389# --------------------------------------------------------------------------COMMENT
MEDIUM…common/external_checks/verification/test_regression.py393# --------------------------------------------------------------------------COMMENT
MEDIUM…common/external_checks/verification/test_regression.py439# --------------------------------------------------------------------------COMMENT
MEDIUM…common/external_checks/verification/test_regression.py442# --------------------------------------------------------------------------COMMENT
MEDIUM…common/external_checks/verification/test_regression.py507# --------------------------------------------------------------------------COMMENT
56 more matches not shown…
Self-Referential Comments144 hits · 428 pts
SeverityFileLineSnippetContext
MEDIUM…raph/resources/nested_modules_double_call/four/main.tf152 # Create a truncated ID if neededCOMMENT
MEDIUM…raph/resources/nested_modules_double_call/four/main.tf164 # Create the short ID by adding a hash to the end of the truncated IDCOMMENT
MEDIUMtests/common/utils/test_update_checker.py384 # Create the legacy file so the code path tries to remove itCOMMENT
MEDIUMtests/common/utils/test_update_checker.py327 # Create a valid cache file, then make it unreadableCOMMENT
MEDIUMtests/github_actions/test_runner_auxiliary.py10# This class is used only for testing by filling up the abstract implementations.COMMENT
MEDIUM…/resource/aws/unused/ec2_instance_with_ebs_volume.yaml30 # Create a separate volumeCOMMENT
MEDIUM…ribution/CloudfrontDistributionEncryption-UNKNOWN.yaml14 # Create the bucket to contain the website HTMLCOMMENT
MEDIUM…ibution/CloudfrontDistributionEncryption-FAILED-2.yaml9 # Create the bucket to contain the website HTMLCOMMENT
MEDIUM…tribution/CloudfrontDistributionEncryption-PASSED.yaml9 # Create the bucket to contain the website HTMLCOMMENT
MEDIUM…tribution/CloudfrontDistributionEncryption-FAILED.yaml9 # Create the bucket to contain the website HTMLCOMMENT
MEDIUMtests/helm/test_runner.py95 # Create a test report with some checksCOMMENT
MEDIUMtests/helm/test_runner.py182 # Create a temp directory for the testCOMMENT
MEDIUMtests/helm/test_runner.py187 # Create a temporary chart directoryCOMMENT
MEDIUMtests/helm/test_runner.py200 # Create an empty template mapping dictionaryCOMMENT
MEDIUM.github/workflows/pr-test.yml521 # Define an array of exceptions (files to skip)COMMENT
MEDIUM…tion_tests/src/python/CloudWatchLogGroupKMSKey/pass.py9 # Create a CloudWatch Logs log group with KMS key IDCOMMENT
MEDIUM…tests/src/python/CloudWatchLogGroupKMSKey/fail__1__.py9 # Create a CloudWatch Logs log group without specifying KMS keyCOMMENT
MEDIUM…sts/src/python/ElasticsearchDomainEnforceHTTPS/pass.py9 # Create an Amazon Elasticsearch domainCOMMENT
MEDIUM…sts/src/python/ElasticsearchDomainEnforceHTTPS/pass.py30# Create the CDK app and stackCOMMENT
MEDIUM…rc/python/ElasticsearchDomainEnforceHTTPS/fail__1__.py9 # Create an Amazon Elasticsearch domainCOMMENT
MEDIUM…rc/python/ElasticsearchDomainEnforceHTTPS/fail__1__.py23# Create the CDK app and stackCOMMENT
MEDIUMcdk_integration_tests/src/python/WAFEnabled/pass.py10 # Create a WebACLCOMMENT
MEDIUMcdk_integration_tests/src/python/WAFEnabled/pass.py20 # Create a CloudFront distributionCOMMENT
MEDIUM…k_integration_tests/src/python/WAFEnabled/fail__1__.py8 # Create a CloudFront distributionCOMMENT
MEDIUM…_tests/src/python/WorkspaceUserVolumeEncrypted/pass.py8 # Create a WorkSpaces directoryCOMMENT
MEDIUM…_tests/src/python/WorkspaceUserVolumeEncrypted/pass.py16 # Create a WorkSpaces workspace with root volume encryption enabledCOMMENT
MEDIUM…s/src/python/WorkspaceUserVolumeEncrypted/fail__1__.py8 # Create a WorkSpaces directoryCOMMENT
MEDIUM…s/src/python/WorkspaceUserVolumeEncrypted/fail__1__.py16 # Create a WorkSpaces workspace with root volume encryption enabledCOMMENT
MEDIUM…egration_tests/src/python/EFSEncryptionEnabled/pass.py9 # Create an EFS file system with the Encrypted property set to TrueCOMMENT
MEDIUM…on_tests/src/python/AmazonMQBrokerPublicAccess/pass.py9 # Create an Amazon MQ broker with PubliclyAccessible set to falseCOMMENT
MEDIUM…sts/src/python/AmazonMQBrokerPublicAccess/fail__1__.py9 # Create an Amazon MQ broker with PubliclyAccessible set to falseCOMMENT
MEDIUM…sts/src/python/IAMPolicyAttachedToGroupOrRoles/pass.py9 # Create an IAM policyCOMMENT
MEDIUM…rc/python/IAMPolicyAttachedToGroupOrRoles/fail__1__.py9 # Create an IAM policyCOMMENT
MEDIUM…k_integration_tests/src/python/DocDBEncryption/pass.py9 # Create an Amazon DocumentDB cluster with storage encryption enabledCOMMENT
MEDIUM…egration_tests/src/python/DocDBEncryption/fail__1__.py9 # Create an Amazon DocumentDB cluster with storage encryption disabledCOMMENT
MEDIUMcdk_integration_tests/src/python/DocDBAuditLogs/pass.py9 # Define the DocDB Cluster Parameter GroupCOMMENT
MEDIUM…tegration_tests/src/python/DocDBAuditLogs/fail__1__.py9 # Define the DocDB Cluster Parameter GroupCOMMENT
MEDIUM…_integration_tests/src/python/ECRImmutableTags/pass.py9 # Create an ECR repository with immutable image tagsCOMMENT
MEDIUM…gration_tests/src/python/ECRImmutableTags/fail__1__.py9 # Create an ECR repository with immutable image tagsCOMMENT
MEDIUM…egration_tests/src/python/BackupVaultEncrypted/pass.py12 # Create a Backup Vault with the specified encryption key ARNCOMMENT
MEDIUM…ion_tests/src/python/BackupVaultEncrypted/fail__1__.py9 # Create a Backup Vault with the specified encryption key ARNCOMMENT
MEDIUM…_integration_tests/src/python/DynamodbRecovery/pass.py9 # Create a DynamoDB table with PointInTimeRecoveryEnabled set to TrueCOMMENT
MEDIUM…gration_tests/src/python/DynamodbRecovery/fail__1__.py9 # Create a DynamoDB table with PointInTimeRecoveryEnabled set to TrueCOMMENT
MEDIUM…ts/src/python/GlueSecurityConfigurationEnabled/pass.py36 # Create an AWS Glue Security Configuration (You need to create one separately)COMMENT
MEDIUM…ts/src/python/GlueSecurityConfigurationEnabled/pass.py39 # Create an AWS Glue DevEndpointCOMMENT
MEDIUM…ts/src/python/GlueSecurityConfigurationEnabled/pass.py58 # Create an AWS Glue Security Configuration (You need to create one separately)COMMENT
MEDIUM…ts/src/python/GlueSecurityConfigurationEnabled/pass.py61 # Create an AWS Glue JobCOMMENT
MEDIUM…c/python/GlueSecurityConfigurationEnabled/fail__3__.py34 # Create an AWS Glue DevEndpointCOMMENT
MEDIUM…c/python/GlueSecurityConfigurationEnabled/fail__3__.py52 # Create an AWS Glue JobCOMMENT
MEDIUM…mbdaFunctionLevelConcurrentExecutionLimit/fail__2__.py15 code=Code.from_asset("path/to/your/code"), # Define the code locationCODE
MEDIUM…on/LambdaFunctionLevelConcurrentExecutionLimit/pass.py15 code=Code.from_asset("path/to/your/code"), # Define the code locationCODE
MEDIUM…ion_tests/src/python/RDSEnhancedMonitorEnabled/pass.py9 # Create an RDS DB instance with a custom MonitoringIntervalCOMMENT
MEDIUM…ests/src/python/RDSEnhancedMonitorEnabled/fail__1__.py9 # Create an RDS DB instance with a custom MonitoringIntervalCOMMENT
MEDIUM…ation_tests/src/python/APIGatewayAuthorization/pass.py8 # Create the API Gateway Method based on the conditionsCOMMENT
MEDIUM…_tests/src/python/APIGatewayAuthorization/fail__1__.py8 # Create the API Gateway Method based on the conditionsCOMMENT
MEDIUM…_tests/src/python/WorkspaceRootVolumeEncrypted/pass.py8 # Create a WorkSpaces directoryCOMMENT
MEDIUM…_tests/src/python/WorkspaceRootVolumeEncrypted/pass.py16 # Create a WorkSpaces workspace with root volume encryption enabledCOMMENT
MEDIUM…s/src/python/WorkspaceRootVolumeEncrypted/fail__1__.py8 # Create a WorkSpaces directoryCOMMENT
MEDIUM…s/src/python/WorkspaceRootVolumeEncrypted/fail__1__.py16 # Create a WorkSpaces workspace with root volume encryption enabledCOMMENT
MEDIUM…_integration_tests/src/python/ECRImageScanning/pass.py9 # Create an ECR repository with image scanning on push enabledCOMMENT
84 more matches not shown…
Cross-Language Confusion49 hits · 322 pts
SeverityFileLineSnippetContext
HIGH…orm/graph/variable_rendering/test_string_evaluation.py321 ("jsonencode(['a', 42, true, null])", ["a", 42, True, None]),CODE
HIGH…orm/graph/variable_rendering/test_string_evaluation.py327 ("jsonencode({'a' = null})", {"a": None}),CODE
HIGHtests/secrets/test_secret_git_history.py115 add, move, add, remove one = 2 secret one with removed_commit_hash && added_commit_hashSTRING
HIGHtests/secrets/git_history/test_utils.py181 'folder1/folder2/Dockerfile': 'diff --git a/folder1/folder2/Dockerfile b/folder1/folder2/Dockerfile\nindCODE
HIGHtests/secrets/git_history/test_utils.py189 'folder1/folder2/Dockerfile': 'diff --git a/folder1/folder2/Dockerfile b/folder1/folder2/Dockerfile\nindCODE
HIGHtests/secrets/git_history/test_utils.py197 'Dockerfile': 'diff --git a/Dockerfile b/Dockerfile\nindex 0000..0000 0000\n--- a/Dockerfile\n+++ b/DockCODE
HIGHtests/secrets/git_history/test_utils.py648 'folder1/folder2/Dockerfile': 'diff --git a/folder1/folder2/Dockerfile b/folder1/folder2/Dockerfile\nindex 0CODE
HIGHtests/secrets/git_history/test_utils.py656 'folder1/folder2/Dockerfile': 'diff --git a/folder1/folder2/Dockerfile b/folder1/folder2/Dockerfile\nindex 0CODE
HIGHtests/secrets/git_history/test_utils.py664 'Dockerfile': 'diff --git a/Dockerfile b/Dockerfile\nindex 0000..0000 0000\n--- a/Dockerfile\n+++ b/DockerfiCODE
HIGHtests/secrets/git_history/test_utils.py113 'folder1/folder2/Dockerfile': 'diff --git a/folder1/folder2/Dockerfile b/folder1/folder2/Dockerfile\nindCODE
HIGHtests/secrets/git_history/test_utils.py137 'folder1/folder2/Dockerfile': 'diff --git a/folder1/folder2/Dockerfile b/folder1/folder2/Dockerfile\nindCODE
HIGHtests/secrets/git_history/test_utils.py219 'Dockerfile': 'diff --git a/Dockerfile b/Dockerfile\nindex 0000..0000 0000\n--- a/Dockerfile\n+++ b/DockCODE
HIGHtests/secrets/git_history/test_utils.py571 'folder1/folder2/Dockerfile': 'diff --git a/folder1/folder2/Dockerfile b/folder1/folder2/Dockerfile\nindex 0CODE
HIGHtests/secrets/git_history/test_utils.py595 'folder1/folder2/Dockerfile': 'diff --git a/folder1/folder2/Dockerfile b/folder1/folder2/Dockerfile\nindex 0CODE
HIGHtests/secrets/git_history/test_utils.py695 'Dockerfile': 'diff --git a/Dockerfile b/Dockerfile\nindex 0000..0000 0000\n--- a/Dockerfile\n+++ b/DockerfiCODE
HIGHtests/ansible/test_runner.py294 key = '[].tasks[?"amazon.aws.ec2_instance" != null][].[].tasks[?"amazon.aws.ec2_instance" != null][].CKV_AWS_135[6:1CODE
HIGHtests/ansible/test_runner.py351 key = '[].tasks[?"amazon.aws.ec2_instance" != null][].[].tasks[?"amazon.aws.ec2_instance" != null][].CKV_AWS_135[6:1CODE
HIGHtests/common/utils/conftest.py122 (37, ' "expiration_date": null,\n'),CODE
HIGHtests/common/utils/conftest.py126 (41, ' "not_before_date": null,\n'),CODE
HIGHtests/common/utils/conftest.py131 (46, ' "timeouts": null,\n'),CODE
HIGHtests/common/utils/conftest.py141 (37, ' "expiration_date": null,\n'),CODE
HIGHtests/common/utils/conftest.py145 (41, ' "not_before_date": null,\n'),CODE
HIGHtests/common/utils/conftest.py150 (46, ' "timeouts": null,\n'),CODE
HIGHtests/common/utils/conftest.py160 (37, ' "expiration_date": null,\n'),CODE
HIGHtests/common/utils/conftest.py164 (41, ' "not_before_date": null,\n'),CODE
HIGHtests/common/utils/conftest.py169 (46, ' "timeouts": null,\n'),CODE
HIGHtests/common/utils/test_secrets_utils.py50 (94, ' "content_type": null,\n'),CODE
HIGHtests/common/utils/test_secrets_utils.py51 (95, ' "expiration_date": null,\n'),CODE
HIGHtests/common/utils/test_secrets_utils.py54 (98, ' "not_before_date": null,\n'),CODE
HIGHtests/common/utils/test_secrets_utils.py55 (99, ' "tags": null,\n'),CODE
HIGHtests/common/utils/test_secrets_utils.py56 (100, ' "timeouts": null,\n'),CODE
HIGHtests/common/utils/test_secrets_utils.py74 (94, ' "content_type": null,\n'),CODE
HIGHtests/common/utils/test_secrets_utils.py75 (95, ' "expiration_date": null,\n'),CODE
HIGHtests/common/utils/test_secrets_utils.py78 (98, ' "not_before_date": null,\n'),CODE
HIGHtests/common/utils/test_secrets_utils.py79 (99, ' "tags": null,\n'),CODE
HIGHtests/common/utils/test_secrets_utils.py80 (100, ' "timeouts": null,\n'),CODE
HIGHtests/github_actions/conftest.py42 "run": "(ls /.dockerenv && echo Found dockerenv) || (echo No dockerenv)\ncurl -X POST -s --data CODE
HIGHtests/github_actions/conftest.py55 "run": "(ls /.dockerenv && echo Found dockerenv) || (echo No dockerenv)\ncurl -X POST -s --data CODE
HIGHtests/github_actions/conftest.py67 "run": "(ls /.dockerenv && echo Found dockerenv) || (echo No dockerenv)\ncurl -X POST -s --data CODE
HIGH…graph_builder/variable_rendering/evaluate_terraform.py257 :param input_str: string like "a && b" (supported operators: ==, != , <, <=, >, >=, && , ||)STRING
HIGHcheckov/ansible/checks/base_ansible_task_check.py32 f'[].tasks[?"{module}" != null][]',CODE
HIGHcheckov/ansible/checks/base_ansible_task_check.py33 f'[?"{module}" != null][]',CODE
HIGHcheckov/ansible/checks/base_ansible_task_check.py34 f'[].tasks[].block[?"{module}" != null][]',CODE
HIGHcheckov/ansible/checks/base_ansible_task_check.py35 f'[].block[?"{module}" != null][]',CODE
HIGHcheckov/ansible/checks/base_ansible_task_check.py36 f'[].tasks[].block[].block[?"{module}" != null][]',CODE
HIGHcheckov/ansible/checks/base_ansible_task_check.py37 f'[].block[].block[?"{module}" != null][]',CODE
HIGHcheckov/ansible/checks/base_ansible_task_check.py40 f'[].tasks[].block[].block[].block[?"{module}" != null][]',CODE
HIGHcheckov/ansible/checks/base_ansible_task_check.py41 f'[].block[].block[].block[?"{module}" != null][]',CODE
HIGH…ca/reachability/sast_contract/data_fetcher_sast_lib.py30 logging.error('reachability_run_config is null, unable to proceed', exc_info=True)CODE
Excessive Try-Catch Wrapping191 hits · 211 pts
SeverityFileLineSnippetContext
LOW…mon/integration_features/test_licensing_integration.py342 except Exception as e:CODE
LOW…mon/integration_features/test_licensing_integration.py425 except Exception as e:CODE
LOWtests/common/checks/test_base_check.py129 except Exception:STRING
LOWtests/common/utils/test_file_utils.py75 except Exception:CODE
LOWtests/common/external_checks/verification/conftest.py59 except Exception:CODE
LOWtests/kubernetes/runner/test_runner.py148 except Exception:CODE
LOWtests/kubernetes/runner/test_runner.py178 except Exception:CODE
LOWtests/kustomize/utils.py9 except Exception:CODE
MEDIUMtests/kustomize/utils.py6def kustomize_exists() -> bool:CODE
LOWtests/helm/utils.py9 except Exception:CODE
MEDIUMtests/helm/utils.py6def helm_exists() -> bool:CODE
LOWcheckov/runner_filter.py305 except Exception as exc:CODE
MEDIUMcheckov/main.py458 print('An error occurred getting data from the platform, including policy metadata. Because --includCODE
MEDIUMcheckov/main.py761def commit_repository(self) -> str | None:CODE
LOWcheckov/main.py424 except Exception:CODE
LOWcheckov/main.py454 except Exception:CODE
LOWcheckov/main.py591 except Exception as e:CODE
LOWcheckov/main.py637 except Exception:CODE
LOWcheckov/main.py646 except Exception as e:CODE
LOWcheckov/main.py702 except Exception as e:CODE
LOWcheckov/main.py764 except Exception:CODE
LOWcheckov/main.py848 except Exception:CODE
LOWcheckov/terraform/tf_parser.py305 except Exception as e:CODE
LOWcheckov/terraform/tf_parser.py467 except Exception as e:CODE
LOWcheckov/terraform/tf_parser.py489 except Exception as e:CODE
LOWcheckov/terraform/parser_utils.py46 except Exception as e:CODE
LOWcheckov/terraform/plan_runner.py279 except Exception as e:CODE
LOWcheckov/terraform/plan_utils.py44 except Exception as e:CODE
LOWcheckov/terraform/plan_utils.py82 except Exception as e:CODE
LOWcheckov/terraform/parser_functions.py208 except Exception:CODE
LOWcheckov/terraform/graph_builder/local_graph.py92 except Exception as e:CODE
LOWcheckov/terraform/graph_builder/local_graph.py122 except Exception as e:CODE
LOWcheckov/terraform/graph_builder/local_graph.py407 except Exception:CODE
LOWcheckov/terraform/graph_builder/local_graph.py446 except Exception as e:CODE
LOW…raform/graph_builder/foreach/foreach_entity_handler.py52 except Exception as e:CODE
LOW…terraform/graph_builder/variable_rendering/renderer.py216 except Exception:CODE
LOW…terraform/graph_builder/variable_rendering/renderer.py332 except Exception:CODE
LOW…graph_builder/variable_rendering/evaluate_terraform.py94 except Exception:CODE
LOW…graph_builder/variable_rendering/evaluate_terraform.py97 except Exception:CODE
LOW…graph_builder/variable_rendering/evaluate_terraform.py105 except Exception:CODE
LOW…graph_builder/variable_rendering/evaluate_terraform.py110 except Exception:CODE
LOW…graph_builder/variable_rendering/evaluate_terraform.py175 except Exception:CODE
LOW…graph_builder/variable_rendering/evaluate_terraform.py442 except Exception:CODE
LOW…raph_builder/variable_rendering/safe_eval_functions.py274 except Exception as e:CODE
LOW…raform/checks/utils/base_cloudsplaining_iam_scanner.py31 except Exception:CODE
LOW…cks/resource/base_cloudsplaining_resource_iam_check.py65 except Exception as e:CODE
LOW…source/alicloud/AbsSecurityGroupUnrestrictedIngress.py50 except Exception:CODE
MEDIUM…source/alicloud/AbsSecurityGroupUnrestrictedIngress.py46def contains_violation(self, conf):CODE
LOW…/checks/resource/azure/GithubActionsOIDCTrustPolicy.py72 except Exception:CODE
LOW…rm/checks/resource/gcp/GithubActionsOIDCTrustPolicy.py81 except Exception as e:CODE
LOW…rce/gcp/AbsGoogleComputeFirewallUnrestrictedIngress.py44 except Exception:CODE
LOW…cks/resource/aws/GithubActionsOIDCTrustPolicyOnRole.py43 except Exception: # nosecCODE
LOW…raform/checks/resource/aws/GlacierVaultAnyPrincipal.py33 except Exception:CODE
LOW…orm/checks/resource/aws/IAMStarActionPolicyDocument.py48 except Exception: # nosecCODE
LOW…m/checks/resource/aws/IAMRoleAllowAssumeFromAccount.py37 except Exception: # nosecCODE
LOW…erraform/checks/resource/aws/IAMAdminPolicyDocument.py42 except Exception: # nosecCODE
LOW…m/checks/resource/aws/S3ProtectAgainstPolicyLockout.py48 except Exception: # nosecCODE
LOW…rraform/checks/resource/aws/KMSKeyWildcardPrincipal.py39 except Exception: # nosecCODE
LOW…aform/checks/resource/aws/IAMRoleAllowsPublicAssume.py30 except Exception: # nosecCODE
LOW…form/checks/data/base_cloudsplaining_data_iam_check.py52 except Exception as e:CODE
131 more matches not shown…
Modern Structural Boilerplate158 hits · 166 pts
SeverityFileLineSnippetContext
LOWsetup.py41logger = logging.getLogger(__name__)CODE
LOW…raform/checks/data/external/external_check/__init__.py4__all__ = [f.stem for f in modules if f.is_file() and not f.stem == "__init__"]CODE
LOWcheckov/runner_filter.py397 def set_suppressed_policies(self, policy_level_suppressions: List[List[str]]) -> None:CODE
LOWcheckov/contributor_metrics.py13logger = logging.getLogger(__name__)CODE
LOWcheckov/main.py100logger = logging.getLogger(__name__)CODE
LOWcheckov/cdk/runner.py13logger = logging.getLogger(__name__)CODE
LOWcheckov/terraform/tf_parser.py405 def _update_resolved_modules(self) -> None:CODE
LOWcheckov/terraform/plan_parser.py273def _update_after_unknown_in_complex_types(inner_key: str, value: dict[str, Any]) -> None:CODE
LOWcheckov/terraform/graph_builder/local_graph.py757 def _update_vertices_breadcrumbs_and_module_connections(self) -> None:CODE
LOWcheckov/terraform/graph_builder/local_graph.py116 def update_vertices_fields(self) -> None:CODE
LOWcheckov/terraform/graph_builder/local_graph.py711 def update_vertices_configs(self) -> None:CODE
LOWcheckov/terraform/graph_builder/local_graph.py718 def update_vertex_config(vertex: TerraformBlock, changed_attributes: Union[List[str], Dict[str, Any]], dynamic_blockCODE
LOWcheckov/terraform/graph_builder/local_graph.py815 def _update_nested_modules_address(self) -> None:CODE
LOW…kov/terraform/graph_builder/graph_components/blocks.py215 def update_list_attribute(self, attribute_key: str, attribute_value: Any) -> None:CODE
LOW…graph_builder/variable_rendering/evaluate_terraform.py599 def _update_stack_if_needed(char: str, i: int) -> None:CODE
LOWcheckov/terraform/checks/module/generic/__init__.py4__all__ = [f.stem for f in modules if f.is_file() and not f.stem == "__init__"]CODE
LOWcheckov/terraform/checks/provider/openstack/__init__.py5__all__ = [basename(f)[:-3] for f in modules if isfile(f) and not f.endswith("__init__.py")]CODE
LOWcheckov/terraform/checks/provider/ncp/__init__.py5__all__ = [basename(f)[:-3] for f in modules if isfile(f) and not f.endswith("__init__.py")]CODE
LOWcheckov/terraform/checks/provider/linode/__init__.py4__all__ = [f.stem for f in modules if f.is_file() and not f.stem == "__init__"]CODE
LOWcheckov/terraform/checks/provider/oci/__init__.py5__all__ = [basename(f)[:-3] for f in modules if isfile(f) and not f.endswith("__init__.py")]CODE
LOW…eckov/terraform/checks/provider/bridgecrew/__init__.py5__all__ = [basename(f)[:-3] for f in modules if isfile(f) and not f.endswith("__init__.py")]CODE
LOWcheckov/terraform/checks/provider/panos/__init__.py4__all__ = [f.stem for f in modules if f.is_file() and not f.stem == "__init__"]CODE
LOWcheckov/terraform/checks/provider/aws/__init__.py5__all__ = [basename(f)[:-3] for f in modules if isfile(f) and not f.endswith("__init__.py")]CODE
LOWcheckov/terraform/checks/resource/alicloud/__init__.py5__all__ = [basename(f)[:-3] for f in modules if isfile(f) and not f.endswith("__init__.py")]CODE
LOWcheckov/terraform/checks/resource/openstack/__init__.py5__all__ = [basename(f)[:-3] for f in modules if isfile(f) and not f.endswith("__init__.py")]CODE
LOWcheckov/terraform/checks/resource/gitlab/__init__.py4__all__ = [f.stem for f in modules if f.is_file() and not f.stem == "__init__"]CODE
LOWcheckov/terraform/checks/resource/ncp/__init__.py4__all__ = [f.stem for f in modules if f.is_file() and not f.stem == "__init__"]CODE
LOWcheckov/terraform/checks/resource/azure/__init__.py5__all__ = [basename(f)[:-3] for f in modules if isfile(f) and not f.endswith("__init__.py")]CODE
LOWcheckov/terraform/checks/resource/linode/__init__.py4__all__ = [f.stem for f in modules if f.is_file() and not f.stem == "__init__"]CODE
LOW…kov/terraform/checks/resource/digitalocean/__init__.py5__all__ = [basename(f)[:-3] for f in modules if isfile(f) and not f.endswith("__init__.py")]CODE
LOWcheckov/terraform/checks/resource/oci/__init__.py4__all__ = [f.stem for f in modules if f.is_file() and not f.stem == "__init__"]CODE
LOWcheckov/terraform/checks/resource/gcp/__init__.py5__all__ = [basename(f)[:-3] for f in modules if isfile(f) and not f.endswith("__init__.py")]CODE
LOWcheckov/terraform/checks/resource/github/__init__.py4__all__ = [f.stem for f in modules if f.is_file() and not f.stem == "__init__"]CODE
LOWcheckov/terraform/checks/resource/panos/__init__.py5__all__ = [basename(f)[:-3] for f in modules if isfile(f) and not f.endswith("__init__.py")]CODE
LOWcheckov/terraform/checks/resource/okta/__init__.py5__all__ = [basename(f)[:-3] for f in modules if isfile(f) and not f.endswith("__init__.py")]CODE
LOW…ckov/terraform/checks/resource/yandexcloud/__init__.py4__all__ = [f.stem for f in modules if f.is_file() and not f.stem == "__init__"]CODE
LOWcheckov/terraform/checks/resource/aws/__init__.py5__all__ = [basename(f)[:-3] for f in modules if isfile(f) and not f.endswith("__init__.py")]CODE
LOW…kov/terraform/checks/resource/tencentcloud/__init__.py5__all__ = [basename(f)[:-3] for f in modules if isfile(f) and not f.endswith("__init__.py")]CODE
LOW…eckov/terraform/checks/resource/kubernetes/__init__.py4__all__ = [f.stem for f in modules if f.is_file() and not f.stem == "__init__"]CODE
LOWcheckov/terraform/checks/data/gcp/__init__.py4__all__ = [f.stem for f in modules if f.is_file() and not f.stem == "__init__"]CODE
LOWcheckov/terraform/checks/data/aws/__init__.py4__all__ = [f.stem for f in modules if f.is_file() and not f.stem == "__init__"]CODE
LOWcheckov/terraform/checks/data/external/__init__.py4__all__ = [f.stem for f in modules if f.is_file() and not f.stem == "__init__"]CODE
LOWcheckov/terraform/context_parsers/parsers/__init__.py4__all__ = [f.stem for f in modules if f.is_file() and not f.stem == "__init__"]CODE
LOWcheckov/terraform/module_loading/loaders/__init__.py5__all__ = [basename(f)[:-3] for f in modules if isfile(f) and not f.endswith("__init__.py")]CODE
LOWcheckov/gitlab/checks/__init__.py4__all__ = [f.stem for f in modules if f.is_file() and not f.stem == "__init__"]CODE
LOWcheckov/dockerfile/graph_builder/local_graph.py102 def update_vertices_configs(self) -> None:CODE
LOWcheckov/dockerfile/checks/__init__.py5__all__ = [basename(f)[:-3] for f in modules if isfile(f) and not f.endswith("__init__.py")]CODE
LOWcheckov/serverless/runner.py362 def set_definitions_raw(self, definitions_raw: dict[str, list[tuple[int, str]]]) -> None:CODE
LOWcheckov/serverless/parsers/parser.py22logger = logging.getLogger(__name__)CODE
LOWcheckov/serverless/graph_builder/local_graph.py121 def update_vertices_configs(self) -> None:CODE
LOWcheckov/serverless/checks/function/aws/__init__.py5__all__ = [basename(f)[:-3] for f in modules if isfile(f) and not f.endswith("__init__.py")]CODE
LOWcheckov/secrets/runner.py245 def set_history_secret_store(self, value: Dict[str, List[EnrichedPotentialSecret]]) -> None:CODE
LOWcheckov/secrets/git_history_store.py34 def set_secret_map(self, file_results: List[PotentialSecret], file_name: str, commit: Commit) -> None:CODE
LOWcheckov/secrets/git_history_store.py77 def _update_removed_secret(self, secret_key: str, secret: PotentialSecret, file_name: str, commit: Commit) -> None:CODE
LOWcheckov/azure_pipelines/checks/job/__init__.py4__all__ = [f.stem for f in modules if f.is_file() and not f.stem == "__init__"]CODE
LOWcheckov/openapi/runner.py20logger = logging.getLogger(__name__)CODE
LOWcheckov/openapi/checks/resource/v2/__init__.py5__all__ = [basename(f)[:-3] for f in modules if isfile(f) and not f.endswith("__init__.py")]CODE
LOWcheckov/openapi/checks/resource/v3/__init__.py5__all__ = [basename(f)[:-3] for f in modules if isfile(f) and not f.endswith("__init__.py")]CODE
LOWcheckov/openapi/checks/resource/generic/__init__.py5__all__ = [basename(f)[:-3] for f in modules if isfile(f) and not f.endswith("__init__.py")]CODE
LOWcheckov/ansible/runner.py135 def set_definitions_raw(self, definitions_raw: dict[str, list[tuple[int, str]]]) -> None:CODE
98 more matches not shown…
Over-Commented Block124 hits · 114 pts
SeverityFileLineSnippetContext
LOW…source/aws/example_ACMCertSetLoggingPreference/main.tf41 # lifecycle {COMMENT
LOW…resource/aws/example_SecretManagerSecret90days/main.tf101COMMENT
LOW…resource/aws/example_SecretManagerSecret90days/main.tf121# time_sleep.wait_for_lambda_permissions_for_secrets_manager,COMMENT
LOW…ws/example_ImagebuilderImageRecipeEBSEncrypted/main.tf1# no blocksCOMMENT
LOW…source/kubernetes/example_MinimiseCapabilities/main.tf41 # }COMMENT
LOW…source/kubernetes/example_MinimiseCapabilities/main.tf121 # resources = {COMMENT
LOW…source/kubernetes/example_MinimiseCapabilities/main.tf141 # period_seconds = 3COMMENT
LOW…source/kubernetes/example_MinimiseCapabilities/main.tf221 port {COMMENT
LOW…source/kubernetes/example_MinimiseCapabilities/main.tf241 # value = "Awesome"COMMENT
LOW…source/kubernetes/example_MinimiseCapabilities/main.tf341 # liveness_probe {COMMENT
LOW…source/kubernetes/example_MinimiseCapabilities/main.tf421 # requests = {COMMENT
LOW…source/kubernetes/example_MinimiseCapabilities/main.tf441 # }COMMENT
LOW…source/kubernetes/example_MinimiseCapabilities/main.tf501 container_port = 8080COMMENT
LOW…source/kubernetes/example_MinimiseCapabilities/main.tf521 # }COMMENT
LOW…source/kubernetes/example_MinimiseCapabilities/main.tf601 value = "test"COMMENT
LOW…source/kubernetes/example_MinimiseCapabilities/main.tf621COMMENT
LOW…source/kubernetes/example_MinimiseCapabilities/main.tf721 # }COMMENT
LOW…source/kubernetes/example_MinimiseCapabilities/main.tf801 }COMMENT
LOW…source/kubernetes/example_MinimiseCapabilities/main.tf821COMMENT
LOW…source/kubernetes/example_MinimiseCapabilities/main.tf881 value = "test"COMMENT
LOW…source/kubernetes/example_MinimiseCapabilities/main.tf901COMMENT
LOW…source/kubernetes/example_MinimiseCapabilities/main.tf1001 # }COMMENT
LOW…source/kubernetes/example_MinimiseCapabilities/main.tf1101 # resources = {COMMENT
LOW…source/kubernetes/example_MinimiseCapabilities/main.tf1121 # period_seconds = 3COMMENT
LOWtests/terraform/runner/test_plan_runner.py401 # In rare circumstances a data resource with partial values in the plan could cause false negativesCOMMENT
LOW…raform/runner/resources/plan_with_iam_policies/main.tf81 name = "example"COMMENT
LOW…raform/runner/resources/plan_with_iam_policies/main.tf101# permission_set_arn = aws_ssoadmin_permission_set.example.arnCOMMENT
LOW…urces/AdministratorUserNotAssociatedWithAPIKey/main.tf1# Test Case TLDR:COMMENT
LOW…/terraform/graph/resources/modules-and-vars/context.tf1#COMMENT
LOW…erraform/graph/resources/modules-and-vars/variables.tf201 # owner = stringCOMMENT
LOW…esources/modules-and-vars/examples/complete/context.tf1#COMMENT
LOW…raph/resources/nested_modules_double_call/four/main.tf21 # Unlike other inputs, the first setting of `labels_as_tags` cannot be later overridden. However,COMMENT
LOW…r/resources/parser_scenarios/tostring_function/main.tf1locals {COMMENT
LOW…rm/parser/resources/parser_scenarios/ternaries/main.tf21// compare_string_false = "a" != "a" ? "wrong" : "correct"COMMENT
LOWtests/secrets/test_secret_git_history.py141 commit_type=COMMIT_ADDED_STR,COMMENT
LOWtests/secrets/test_secret_git_history.py161# ]COMMENT
LOWtests/secrets/git_history/test_utils.py781 files={COMMENT
LOWtests/common/utils/test_secrets_utils.py201 runner_filter.resource_attr_to_omit) == tfplan_resource_lines_without_secretsCOMMENT
LOWtests/common/utils/test_secrets_utils.py241 assert omit_secret_value_from_checks(COMMENT
LOWtests/common/utils/test_secrets_utils.py261# runner_filter = RunnerFilter(resource_attr_to_omit=ckv.config.mask)COMMENT
LOWtests/common/external_checks/verification/conftest.py21# fixture segfaults the worker inside ``posixpath.realpath`` for someCOMMENT
LOW…common/external_checks/verification/test_regression.py781# --------------------------------------------------------------------------COMMENT
LOW…common/external_checks/verification/test_regression.py881COMMENT
LOW…ecks/example_Secrets/pod-secretEnvironment-FAILED.yaml61# kubectl exec -it secret-test-pod -- env | grep USERNAMECOMMENT
LOW…urityContexts/pod-container-FAILED_malformed_spec.yaml21 securityContext:COMMENT
LOW…xample_SecurityContexts/pod-container-both-PASSED.yaml21 securityContext:COMMENT
LOW…rivilegeEscalation/pod-runas1000-malformed-PASSED.yaml21 securityContext:COMMENT
LOW…ple_AllowPrivilegeEscalation/pod-runas1000-PASSED.yaml21 securityContext:COMMENT
LOW…bernetesDashboard/kubernetes-dashboard-deployment.yaml1# Copyright 2017 The Kubernetes Authors.COMMENT
LOW…on/checks/resource/aws/unused/ElasticsearchDomain.yaml81 # GroupDescription: !Ref GroupDescriptionCOMMENT
LOW…icsearchEncryption/ElasticsearchEncryption-PASSED.yaml81 # GroupDescription: !Ref GroupDescriptionCOMMENT
LOW…icsearchEncryption/ElasticsearchEncryption-FAILED.yaml81 # GroupDescription: !Ref GroupDescriptionCOMMENT
LOW…/example_ALBListener/ALBListenerHTTPS-FAILED-HTTP.yaml21 # GroupDescription: 'checkov-alb-test'COMMENT
LOW…mple_ALBListener/ALBListenerHTTPS-PASSED-redirect.yaml21 # GroupDescription: 'checkov-alb-test'COMMENT
LOW…example_ALBListener/ALBListenerHTTPS-PASSED-HTTPS.yaml21 # GroupDescription: 'checkov-alb-test'COMMENT
LOW…unt/example_IAMRoleAllowAssumeFromAccount-PASSED-2.yml481 # ComparisonOperator: LessThanOrEqualToThresholdCOMMENT
LOW…unt/example_IAMRoleAllowAssumeFromAccount-PASSED-2.yml501 # EvaluationPeriods: 3COMMENT
LOW…cryption/ElasticsearchNodeToNodeEncryption-PASSED.yaml81 # GroupDescription: !Ref GroupDescriptionCOMMENT
LOW…cryption/ElasticsearchNodeToNodeEncryption-FAILED.yaml81 # GroupDescription: !Ref GroupDescriptionCOMMENT
LOW…ibution/CloudfrontDistributionEncryption-FAILED-2.yaml1AWSTemplateFormatVersion: '2010-09-09'COMMENT
64 more matches not shown…
Redundant / Tautological Comments47 hits · 67 pts
SeverityFileLineSnippetContext
LOWtests/github_action_resources/test_entrypoint.py13 # Set GITHUB_ACTIONS to true so the script doesn't exit earlyCOMMENT
LOW.github/workflows/pr-test.yml534 # Check if the file is in the list of exceptionsCOMMENT
LOW…on_tests/src/python/AmazonMQBrokerPublicAccess/pass.py16 publicly_accessible=False, # Set PubliclyAccessible to falseCODE
LOW…sts/src/python/AmazonMQBrokerPublicAccess/fail__1__.py16 publicly_accessible=True, # Set PubliclyAccessible to falseCODE
LOW…ython/DMSReplicationInstancePubliclyAccessible/pass.py14 publicly_accessible=False # Set PubliclyAccessible to FalseCODE
LOW…/DMSReplicationInstancePubliclyAccessible/fail__1__.py14 publicly_accessible=True # Set PubliclyAccessible to FalseCODE
LOW…_integration_tests/src/python/DynamodbRecovery/pass.py15 point_in_time_recovery=True, # Set PointInTimeRecoveryEnabled to TrueCODE
LOW…gration_tests/src/python/DynamodbRecovery/fail__1__.py15 point_in_time_recovery=False, # Set PointInTimeRecoveryEnabled to TrueCODE
LOW…ion_tests/src/python/RDSEnhancedMonitorEnabled/pass.py17 monitoring_interval=60, # Set MonitoringInterval to 60 secondsCODE
LOW…ation_tests/src/python/APIGatewayAuthorization/pass.py15 api_key_required=True # Set ApiKeyRequired to falseCODE
LOW…_tests/src/python/APIGatewayAuthorization/fail__1__.py15 api_key_required=False # Set ApiKeyRequired to falseCODE
LOW…s/src/python/RedshiftClusterPubliclyAccessible/pass.py15 publicly_accessible=False, # Set PubliclyAccessible to FalseCODE
LOW…/python/RedshiftClusterPubliclyAccessible/fail__1__.py15 publicly_accessible=True, # Set PubliclyAccessible to trueCODE
LOW…gration_tests/src/python/RDSPubliclyAccessible/pass.py17 publicly_accessible=False, # Set PubliclyAccessible to falseCODE
LOW…on_tests/src/python/RDSPubliclyAccessible/fail__1__.py17 publicly_accessible=True, # Set PubliclyAccessible to TrueCODE
LOWcheckov/main.py278 # Check if --output value is None. If so, replace with ['cli'] for default cli output.COMMENT
LOW…terraform/graph_builder/variable_rendering/renderer.py87 # Check if the vertex at this index is an OCI terraform resource.COMMENT
LOW…hecks/graph_checks/azure/AzureSubnetConfigWithNSG.yaml9 # Check if subnet & NSG are connected and present in theCOMMENT
LOW…rm/checks/resource/gcp/GithubActionsOIDCTrustPolicy.py65 # Check if the first claim or value are wildcards - if yes, the assertion is checking nothingCOMMENT
LOW…rm/checks/resource/gcp/GithubActionsOIDCTrustPolicy.py69 # Check if the first claim is an abusable claim - if yes, the whole assertion can be abusedCOMMENT
LOW…rm/checks/resource/gcp/GithubActionsOIDCTrustPolicy.py75 # Check if the repo claim is in the form of org/repoCOMMENT
LOW…erraform/checks/resource/panos/PolicyNoSrcAnyDstAny.py30 # Check if source_addresses is defined in the resourceCOMMENT
LOW…erraform/checks/resource/panos/PolicyLoggingEnabled.py30 # Check if logging at session end is defined in the resourceCOMMENT
LOW…v/terraform/checks/resource/panos/PolicyDescription.py30 # Check if a description is defined in the ruleCOMMENT
LOWcheckov/terraform/checks/resource/panos/PolicyNoDSRI.py30 # Check if DSRI is defined in the resourceCOMMENT
LOW…raform/checks/resource/panos/PolicyNoApplicationAny.py30 # Check if applications is defined in the resourceCOMMENT
LOW…terraform/checks/resource/panos/PolicyLogForwarding.py30 # Check if a log_setting is defined in the ruleCOMMENT
LOW…erraform/checks/resource/panos/ZoneUserIDIncludeACL.py25 # Check if User-ID is enabled in the zoneCOMMENT
LOW…/terraform/checks/resource/panos/PolicyNoServiceAny.py30 # Check if services is defined in the resourceCOMMENT
LOW…/terraform/checks/resource/aws/S3AllowsAnyPrincipal.py12 # Check if 'Condition' key existsCOMMENT
LOWcheckov/terraform/checks/data/aws/WhoAMI.py23 # Check if owners is specified and not emptyCOMMENT
LOW…ov/terraform/module_loading/loaders/registry_loader.py191 # Check if the source has '//' in it. If it does, it indicates a reference for an inner module.COMMENT
LOWcheckov/dockerfile/checks/RunUsingAPT.py29 # Check if 'apt' is used and it's not part of a 'rm' commandCOMMENT
LOW…/openapi/checks/resource/generic/SecurityOperations.py21 # Check if security field is present and not empty at the root levelCOMMENT
LOWcheckov/ansible/utils.py145 if tasks: # Check if tasks is not emptyCODE
LOWcheckov/ansible/graph_builder/local_graph.py35 if tasks: # Check if tasks is not None and not emptyCODE
LOWcheckov/common/util/prompt.py246 # Write fileCOMMENT
LOW…ttribute_solvers/cidr_range_subset_attribute_solver.py24 # Check if all vertex ranges are subsets of at least one of the allowed rangesCOMMENT
LOWcheckov/common/bridgecrew/platform_integration.py1450 # Check if the URL already contains GET parameters.COMMENT
LOW…kov/example_runner/checks/job/ExampleCheckTrueFalse.py67# Set this to your check nameCOMMENT
LOWcheckov/arm/graph_builder/local_graph.py157 # Check if the processed dependency exists in the mapCOMMENT
LOWcheckov/kubernetes/checks/resource/base_registry.py66 # Check if namespace in allowed namespacesCOMMENT
LOWcheckov/kubernetes/checks/resource/base_rbac_check.py53 # Check if a rule has an apigroup, verb, and resource specified in @operationCOMMENT
LOWcheckov/kubernetes/checks/resource/base_rbac_check.py79 # Check if rule has a key with a wildcard or a value from @value_listCOMMENT
LOWcheckov/kubernetes/checks/resource/base_rbac_check.py87 # Check if value is a K8s RBAC wildcardCOMMENT
LOWcheckov/cloudformation/cfn_utils.py253 # Check if Globals exist in the templateCOMMENT
LOWcheckov/helm/base_registry.py71 # Check if namespace in allowed namespacesCOMMENT
Example Usage Blocks41 hits · 62 pts
SeverityFileLineSnippetContext
LOW…_tests/src/typescript/CloudWatchLogGroupKMSKey/fail.ts18// Example usageCOMMENT
LOW…_tests/src/typescript/CloudWatchLogGroupKMSKey/pass.ts20// Example usageCOMMENT
LOW…tion_tests/src/typescript/CloudtrailEncryption/fail.ts22// Example usageCOMMENT
LOW…tion_tests/src/typescript/CloudtrailEncryption/pass.ts23// Example usageCOMMENT
LOW…tion_tests/src/typescript/CloudtrailEncryption/pass.ts43// Example usageCOMMENT
LOW…tegration_tests/src/typescript/DocDBEncryption/pass.ts26// Example usageCOMMENT
LOW…tion_tests/src/typescript/DocDBEncryption/fail__2__.ts26// Example usageCOMMENT
LOW…tion_tests/src/typescript/DocDBEncryption/fail__2__.ts52// Example usageCOMMENT
LOW…rc/typescript/CloudfrontDistributionEncryption/pass.ts32// Example usageCOMMENT
LOW…rc/typescript/CloudfrontDistributionEncryption/pass.ts53// Example usageCOMMENT
LOW…pescript/CloudfrontDistributionEncryption/fail__2__.ts32// Example usageCOMMENT
LOW…pescript/CloudfrontDistributionEncryption/fail__2__.ts54// Example usageCOMMENT
LOW…ntegration_tests/src/typescript/DocDBAuditLogs/pass.ts19// Example usageCOMMENT
LOW…ation_tests/src/typescript/DocDBAuditLogs/fail__2__.ts19// Example usageCOMMENT
LOW…ation_tests/src/typescript/DocDBAuditLogs/fail__2__.ts37// Example usageCOMMENT
LOW…cript/DMSReplicationInstancePubliclyAccessible/fail.ts31// Example usageCOMMENT
LOW…cript/DMSReplicationInstancePubliclyAccessible/pass.ts31// Example usageCOMMENT
LOW…egration_tests/src/typescript/DynamodcRecovery/pass.ts24// Example usageCOMMENT
LOW…egration_tests/src/typescript/DynamodcRecovery/pass.ts47// Example usageCOMMENT
LOW…ion_tests/src/typescript/DynamodcRecovery/fail__2__.ts24// Example usageCOMMENT
LOW…ion_tests/src/typescript/DynamodcRecovery/fail__2__.ts47// Example usageCOMMENT
LOW…s/src/typescript/CloudfrontDistributionLogging/pass.ts32// Example usageCOMMENT
LOW…s/src/typescript/CloudfrontDistributionLogging/pass.ts72// Example usageCOMMENT
LOW…/typescript/CloudfrontDistributionLogging/fail__2__.ts32// Example usageCOMMENT
LOW…/typescript/CloudfrontDistributionLogging/fail__2__.ts69// Example usageCOMMENT
LOWcdk_integration_tests/src/typescript/DocDBTLS/fail.ts19// Example usageCOMMENT
LOWcdk_integration_tests/src/typescript/DocDBTLS/pass.ts19// Example usageCOMMENT
LOW…integration_tests/src/typescript/DAXEncryption/pass.ts22// Example usageCOMMENT
LOW…ration_tests/src/typescript/DAXEncryption/fail__2__.ts22// Example usageCOMMENT
LOW…ration_tests/src/typescript/DAXEncryption/fail__2__.ts42// Example usageCOMMENT
LOW…sts/src/typescript/DynamodbGlobalTableRecovery/fail.ts33// Example usageCOMMENT
LOW…sts/src/typescript/DynamodbGlobalTableRecovery/pass.ts33// Example usageCOMMENT
LOW…ests/src/typescript/CodeBuildProjectEncryption/fail.ts39// Example usageCOMMENT
LOW…ests/src/typescript/CodeBuildProjectEncryption/pass.ts44// Example usageCOMMENT
LOW…ests/src/typescript/CodeBuildProjectEncryption/pass.ts84// Example usageCOMMENT
LOW…integration_tests/src/typescript/EBSEncryption/pass.ts30// Example usageCOMMENT
LOW…integration_tests/src/typescript/EBSEncryption/pass.ts64// Example usageCOMMENT
LOW…ration_tests/src/typescript/EBSEncryption/fail__2__.ts30// Example usageCOMMENT
LOW…ration_tests/src/typescript/EBSEncryption/fail__2__.ts63// Example usageCOMMENT
LOW…sts/src/typescript/CloudWatchLogGroupRetention/fail.ts19// Example usageCOMMENT
LOW…sts/src/typescript/CloudWatchLogGroupRetention/pass.ts20// Example usageCOMMENT
AI Slop Vocabulary11 hits · 23 pts
SeverityFileLineSnippetContext
LOWtests/test_main.py97 "--show-config", # just set to terminate the run early enoughCODE
MEDIUM…ks/resource/panos/example_PolicyLoggingEnabled/main.tf3# Using "log_end" enables logging at session end which is in Palo Alto Networks best practicesCOMMENT
MEDIUMtests/sca_package_2/conftest.py471 {'branch': '', 'cicdDetails': {'runId': 1, 'pr': '', 'commit': '', 'scaCliScanId': '1670509263116'}, 'filePaCODE
MEDIUMtests/sca_package_2/conftest.py471 {'branch': '', 'cicdDetails': {'runId': 1, 'pr': '', 'commit': '', 'scaCliScanId': '1670509263116'}, 'filePaCODE
MEDIUMtests/sca_package_2/conftest.py471 {'branch': '', 'cicdDetails': {'runId': 1, 'pr': '', 'commit': '', 'scaCliScanId': '1670509263116'}, 'filePaCODE
LOW…raform/checks/resource/gcp/GoogleCloudDNSSECEnabled.py24 # default visibility is public; just use base class implementationCOMMENT
LOWcheckov/common/util/secrets.py113 # set a default if no category is provided; or, if categories were provided and they include 'all', then just set itCOMMENT
LOWcheckov/common/util/secrets.py241 # set a default if no category is provided; or, if categories were provided and they include 'all', then just set itCOMMENT
LOWcheckov/common/output/report.py596 # ignore the index and the for_each value and just use the module name as it's not possible toCOMMENT
MEDIUMcheckov/arm/base_resource_check.py32 # leverage ARM checks to use with bicep runnerCOMMENT
LOWcheckov/sca_package_2/runner.py61 return {}, dict() # should just return an empty resultCODE
Magic Placeholder Names3 hits · 15 pts
SeverityFileLineSnippetContext
HIGHREADME.md463 BC_API_KEY: your-api-keyCODE
HIGHdocs/7.Scan Examples/Git History.md23checkov -d <git dir> --scan-secrets-history --bc-api-key <your_api_key> --repo-id <repo/name>CODE
HIGHdocs/7.Scan Examples/Git History.md28checkov -d <git dir> --scan-secrets-history --secrets-history-timeout 1h --bc-api-key <your_api_key> --repo-id <repo/namCODE
AI Structural Patterns13 hits · 12 pts
SeverityFileLineSnippetContext
LOWtests/github_action_resources/test_entrypoint.py38CODE
LOWcheckov/runner_filter.py32CODE
LOWcheckov/terraform/tf_parser.py80CODE
LOWcheckov/terraform/graph_manager.py25CODE
LOW…graph_builder/variable_rendering/evaluate_terraform.py136CODE
LOWcheckov/common/output/cyclonedx.py430CODE
LOWcheckov/common/output/record.py37CODE
LOWcheckov/common/output/secrets_record.py31CODE
LOWcheckov/github/dal.py86CODE
LOWcheckov/github/dal.py144CODE
LOWcheckov/github/dal.py149CODE
LOWcheckov/github/dal.py154CODE
LOWcheckov/github/dal.py162CODE
Dead Code6 hits · 12 pts
SeverityFileLineSnippetContext
MEDIUMtests/secrets/sanity/non_iac_fp/a.py11CODE
MEDIUMtests/secrets/sanity/non_iac_fp/a.py15CODE
MEDIUMtests/secrets/sanity/non_iac_fp/a.py17CODE
MEDIUMtests/secrets/sanity/non_iac_fp/a.py25CODE
MEDIUMtests/secrets/sanity/non_iac_fp/a.py27CODE
MEDIUMtests/sca_package_2/test_output_reports.py207CODE
Fake / Example Data8 hits · 8 pts
SeverityFileLineSnippetContext
LOW…rce/gcp/example_GoogleBigQueryDatasetPublicACL/main.tf23 user_by_email = "foo@bar.com"CODE
LOW…GCPDocumentAIWarehouseLocationEncryptedWithCMK/main.tf6 kms_key = "dummy_key"CODE
LOW…sources/SynapseSQLPoolHasSecurityAlertPolicy/pass.json25 "admin@example.com"CODE
LOW…ph/checks/resources/LambdaOpenCorsPolicy/template.yaml33 ServiceToken: "arn:aws:lambda:us-west-2:123456789012:function:dummy-token" # checkov:skip=CKV_SECRET_6 test secretCODE
LOW…ph/checks/resources/LambdaOpenCorsPolicy/template.yaml50 ServiceToken: "arn:aws:lambda:us-west-2:123456789012:function:dummy-token" # checkov:skip=CKV_SECRET_6 test secretCODE
LOW…ph/checks/resources/LambdaOpenCorsPolicy/template.yaml73 ServiceToken: "arn:aws:lambda:us-west-2:123456789012:function:dummy-token" # checkov:skip=CKV_SECRET_6 test secretCODE
LOW…ph/checks/resources/LambdaOpenCorsPolicy/template.yaml95 ServiceToken: "arn:aws:lambda:us-west-2:123456789012:function:dummy-token" # checkov:skip=CKV_SECRET_6 test secretCODE
LOW…ph/checks/resources/LambdaOpenCorsPolicy/template.yaml117 ServiceToken: "arn:aws:lambda:us-west-2:123456789012:function:dummy-token" # checkov:skip=CKV_SECRET_6 test secretCODE
Modern AI Meta-Vocabulary2 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUM…hecks/resource/gcp/example_GKEDontUseNodePools/main.tf49# temporary scaffold required by the provider — not a long-lived pool.COMMENT
MEDIUMtests/common/external_checks/verification/conftest.py340# --- Shared test scaffolding -----------------------------------------------COMMENT
Verbosity Indicators3 hits · 2 pts
SeverityFileLineSnippetContext
LOWcheckov/common/sca/commons.py84 The purpose of this function is making sure there are no conflicts between those resources, and return a valid rageSTRING
LOW…fra/solvers/attribute_solvers/base_attribute_solver.py85 # we need to check if tags is variable dependent even though this is a not value_attribute checkCOMMENT
LOWcheckov/kustomize/runner.py271 The purpose of this function is to remove any unintentional additions like this one.STRING
Overly Generic Function Names2 hits · 2 pts
SeverityFileLineSnippetContext
LOWtests/serverless/checks/test_check_types.py21 def helper(self, check):CODE
LOW…ttributes_plugin/tests/test_files/typing_class_skip.py12 def do_something(self) -> str:CODE
Slop Phrases1 hit · 2 pts
SeverityFileLineSnippetContext
LOWdogfood_tests/test_checkov_dogfood.py67 }, "Don't forget to add a test case for the new runner here"CODE