AI Slop Code RIsk Monitor

cartography-cncf/cartography

Cartography is a Python tool that pulls infrastructure assets and their relationships into a Neo4j graph database.

22.7 Elevated pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for cartography-cncf/cartography, a Python project with 4,130 GitHub stars. SynthScan examined 651,106 lines of code across 4286 source files, recording 8766 pattern matches distributed across 22 syntactic categories. The legacy adjusted pattern signal is 22.7 (Elevated pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

22.7
Adjusted Signal
22.7
Raw Pattern Score
100%
Time Factor
2026-10-11
Last Push
4.1K
Stars
Python
Language
651.1K
Lines of Code
4.3K
Files
8.8K
Pattern Hits
2026-10-12
Scan Date
0.18
HC Hit Rate

Risk Review · v3

Use each vector to guide manual verification of the underlying findings.

Cognitive Ownership Risk 37.8/100 · MEDIUM

Can maintainers explain intent, assumptions, and trade-offs? 5910 finding(s).

Hallucinated Dependency & Supply Chain Risk 28.4/100 · MEDIUM

Are imports declared and package/API names verified? 521 finding(s).

Agent Over-Engineering Ratio 51.6/100 · HIGH

Are wrappers, guards, and repeated structures necessary? 7684 finding(s).

PR Review Velocity Impact 71.8/100 · HIGH

Which changes need focused human review? 8766 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 338HIGH 431MEDIUM 1263LOW 6734

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 8766 distinct pattern matches across 22 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. 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 configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Hyper-Verbose Identifiers5343 hits · 5210 pts
SeverityFileLineSnippetContext
LOWAGENTS.md167def cleanup_custom_relationships(CODE
LOWdemo/seeds/keycloak.py219 def _seed_authentication_flows(CODE
LOWdemo/seeds/keycloak.py232 def _seed_authentication_executions(CODE
LOWdemo/seeds/tailscale.py90 def _seed_posture_integrations(self, mock_api: Mock) -> None:CODE
LOWdemo/seeds/duo.py71 def _seed_web_authn_credentials(self, mock_client: Mock) -> None:CODE
LOWtests/unit/driftdetect/test_detector.py48def test_state_picks_up_drift():CODE
LOWtests/unit/driftdetect/test_detector.py93def test_state_order_does_not_matter():CODE
LOWtests/unit/driftdetect/test_detector.py136def test_state_multiple_expectations():CODE
LOWtests/unit/driftdetect/test_detector.py176def test_drift_from_multiple_properties():CODE
LOWtests/unit/driftdetect/test_detect_drift.py8def test_basic_drift_detection():CODE
LOWtests/unit/driftdetect/test_detect_drift.py21def test_drift_detection_errors():CODE
LOWtests/unit/driftdetect/test_shortcuts.py38def test_use_shortcuts_for_shortcuts():CODE
LOWtests/unit/driftdetect/test_shortcuts.py82def test_shortcut_fails_when_shortcut_exists():CODE
LOWtests/unit/driftdetect/test_shortcuts.py108def test_nonexistent_shortcuts():CODE
LOWtests/unit/rules/test_identity_fields.py28def test_identity_fields_non_empty(rule_id, fact_id, rule, fact):CODE
LOWtests/unit/rules/test_identity_fields.py37def test_identity_fields_exist_on_output_model(rule_id, fact_id, rule, fact):CODE
LOWtests/unit/rules/test_identity_fields.py49def test_identity_fields_returned_by_query(rule_id, fact_id, rule, fact):CODE
LOWtests/unit/rules/test_identity_fields.py59def test_identity_fields_surfaced_in_serialized_output():CODE
LOW⚡tests/unit/rules/test_model.py215def test_fact_accepts_a_coherent_declaration():CODE
LOW⚡tests/unit/rules/test_model.py220def test_fact_rejects_reserved_finding_field_aliases():CODE
LOW⚡tests/unit/rules/test_model.py228def test_fact_allows_reserved_name_as_intermediate_with_alias():CODE
LOW⚡tests/unit/rules/test_model.py238def test_fact_rejects_asset_label_not_bound_by_query():CODE
LOW⚡tests/unit/rules/test_model.py244def test_fact_rejects_asset_id_field_only_bound_in_intermediate_with():CODE
LOW⚡tests/unit/rules/test_model.py251def test_fact_rejects_identity_field_not_returned_by_query():CODE
LOW⚡tests/unit/rules/test_model.py257def test_fact_rejects_asset_id_field_from_a_different_node():CODE
LOW⚡tests/unit/rules/test_model.py264def test_fact_rejects_asset_id_field_that_also_reads_a_different_node():CODE
LOW⚡tests/unit/rules/test_model.py273def test_validate_anchor_accepts_id_projected_off_the_labeled_variable():CODE
LOW⚡tests/unit/rules/test_model.py278def test_validate_anchor_rejects_empty_label():CODE
LOW⚡tests/unit/rules/test_model.py284def test_validate_anchor_rejects_empty_id_field():CODE
LOW⚡tests/unit/rules/test_model.py290def test_validate_anchor_rejects_id_not_returned():CODE
LOW⚡tests/unit/rules/test_model.py297def test_validate_anchor_rejects_unbound_label():CODE
LOW⚡tests/unit/rules/test_model.py305def test_validate_anchor_rejects_id_read_off_a_different_node():CODE
LOW⚡tests/unit/rules/test_model.py314def test_validate_anchor_rejects_id_that_also_reads_a_different_node():CODE
LOW⚡tests/unit/rules/test_model.py326def test_validate_anchor_ignores_dotted_string_literals_in_id_expression():CODE
LOW⚡tests/unit/rules/test_model.py331def test_fact_ignores_return_inside_a_call_subquery():CODE
LOW⚡tests/unit/rules/test_model.py340def test_returned_aliases_reads_only_the_final_projection():CODE
LOW⚡tests/unit/rules/test_model.py411def test_fanout_risks_measures_multiplicity_against_the_identity_not_the_anchor():CODE
LOW⚡tests/unit/rules/test_model.py424def test_fanout_risks_flags_a_variable_that_only_duplicates_rows():CODE
LOWtests/unit/rules/test_model.py16def test_framework_normalizes_to_lowercase():CODE
LOWtests/unit/rules/test_model.py34def test_framework_control_title_preserves_display_casing_and_is_not_filter_key():CODE
LOWtests/unit/rules/test_model.py51def test_framework_optional_fields():CODE
LOWtests/unit/rules/test_model.py85def test_framework_matches_case_insensitive():CODE
LOWtests/unit/rules/test_model.py102def test_framework_matches_partial_filter():CODE
LOWtests/unit/rules/test_model.py123def test_framework_matches_with_optional_fields():CODE
LOWtests/unit/rules/test_model.py148def test_all_module_keys_in_mapping_except_cross_cloud():CODE
LOWtests/unit/rules/test_model.py174def test_cross_cloud_not_in_mapping():CODE
LOWtests/unit/rules/test_model.py183def test_mapping_values_exists():CODE
LOWtests/unit/rules/test_model.py464def test_fanout_risks_accepts_an_aggregated_fan_out():CODE
LOW⚡tests/unit/rules/test_model.py397def test_fanout_risks_flags_a_projected_column_the_identity_omits():STRING
LOW⚡tests/unit/rules/test_model.py406def test_fanout_risks_accepts_the_identity_that_includes_the_fan_out_column():STRING
LOW⚡tests/unit/rules/test_model.py434def test_fanout_risks_accepts_return_distinct_for_identical_rows():STRING
LOW⚡tests/unit/rules/test_model.py444def test_fanout_risks_accepts_an_aggregate_in_the_final_projection():STRING
LOWtests/unit/rules/test_model.py458def test_fanout_risks_does_not_let_return_distinct_excuse_a_projected_column():STRING
LOWtests/unit/rules/test_model.py475def test_fanout_risks_ignores_a_variable_bound_only_in_a_subquery():STRING
LOWtests/unit/rules/test_model.py485def test_fanout_risks_accepts_an_optional_match_anti_join():STRING
LOWtests/unit/rules/test_model.py497def test_fanout_risks_survives_a_comment_marker_inside_a_string_literal():STRING
LOWtests/unit/rules/test_model.py508def test_fanout_risks_resolves_an_identity_field_through_an_intermediate_with():STRING
LOWtests/unit/rules/test_okta_stig.py45def test_rules_registered_and_metadata():CODE
LOWtests/unit/rules/test_okta_stig.py58def test_rule_names_are_security_names():CODE
LOWtests/unit/rules/test_okta_stig.py65def test_facts_have_expected_structure():CODE
5283 more matches not shown…
Hallucination Indicators338 hits · 3962 pts
SeverityFileLineSnippetContext
CRITICAL⚡demo/seeds/scaleway.py38 data = cartography.intel.scaleway.iam.users.transform_users(CODE
CRITICAL⚡demo/seeds/scaleway.py41 cartography.intel.scaleway.iam.users.load_users(CODE
CRITICAL⚡demo/seeds/scaleway.py46 data = cartography.intel.scaleway.iam.applications.transform_applications(CODE
CRITICAL⚡demo/seeds/scaleway.py49 cartography.intel.scaleway.iam.applications.load_applications(CODE
CRITICAL⚡demo/seeds/scaleway.py54 data = cartography.intel.scaleway.iam.groups.transform_groups(CODE
CRITICAL⚡demo/seeds/scaleway.py57 cartography.intel.scaleway.iam.groups.load_groups(CODE
CRITICAL⚡demo/seeds/scaleway.py62 data = cartography.intel.scaleway.iam.apikeys.transform_apikeys(CODE
CRITICAL⚡demo/seeds/scaleway.py65 cartography.intel.scaleway.iam.apikeys.load_apikeys(CODE
CRITICAL⚡demo/seeds/scaleway.py70 data = cartography.intel.scaleway.storage.volumes.transform_volumes(CODE
CRITICAL⚡demo/seeds/scaleway.py73 cartography.intel.scaleway.storage.volumes.load_volumes(CODE
CRITICAL⚡demo/seeds/scaleway.py78 data = cartography.intel.scaleway.storage.snapshots.transform_snapshots(CODE
CRITICAL⚡demo/seeds/scaleway.py81 cartography.intel.scaleway.storage.snapshots.load_snapshots(CODE
CRITICAL⚡demo/seeds/scaleway.py86 data = cartography.intel.scaleway.instances.instances.transform_instances(CODE
CRITICAL⚡demo/seeds/scaleway.py89 cartography.intel.scaleway.instances.instances.load_instances(CODE
CRITICALdemo/seeds/snipeit.py11 for tenant_name, tenant in tests.data.snipeit.tenants.TENANTS.items():CODE
CRITICALdemo/seeds/kandji.py12 for tenant, tenant_data in tests.data.kandji.tenant.TENANT.items():CODE
CRITICALtests/unit/cartography/intel/azure/test_data_factory.py5from azure.core.exceptions import HttpResponseErrorCODE
CRITICALtests/unit/cartography/intel/azure/test_event_grid.py4from azure.core.exceptions import HttpResponseErrorCODE
CRITICAL…sts/unit/cartography/intel/common/test_access_token.py5from azure.core.exceptions import ClientAuthenticationErrorCODE
CRITICALtests/unit/cartography/intel/trivy/test_scanner.py102 mock_boto3_session.return_value.client.return_value.get_paginator.assert_called_once_with(CODE
CRITICALtests/unit/cartography/intel/trivy/test_scanner.py105 mock_boto3_session.return_value.client.return_value.get_paginator.return_value.paginate.assert_called_once_with(CODE
CRITICALtests/unit/cartography/intel/trivy/test_scanner.py140 mock_boto3_session.return_value.client.return_value.get_paginator.assert_called_once_with(CODE
CRITICALtests/unit/cartography/intel/trivy/test_scanner.py143 mock_boto3_session.return_value.client.return_value.get_paginator.return_value.paginate.assert_called_once_with(CODE
CRITICALtests/unit/cartography/intel/trivy/test_scanner.py197 mock_boto3_session.return_value.client.return_value.get_paginator.assert_called_once_with(CODE
CRITICALtests/unit/cartography/intel/trivy/test_scanner.py200 mock_boto3_session.return_value.client.return_value.get_paginator.return_value.paginate.assert_called_once_with(CODE
CRITICALtests/unit/cartography/intel/trivy/test_scanner.py331 mock_boto3_session.return_value.client.return_value.get_object.assert_called_once_with(CODE
CRITICALtests/unit/cartography/intel/trivy/test_scanner.py377 mock_boto3_session.return_value.client.return_value.get_object.assert_called_once_with(CODE
CRITICAL⚡…rtography/intel/azure/test_permission_relationships.py363 await cartography.intel.microsoft.entra.users.sync_entra_users(CODE
CRITICAL⚡…rtography/intel/azure/test_permission_relationships.py372 await cartography.intel.microsoft.entra.groups.sync_entra_groups(CODE
CRITICAL⚡…rtography/intel/azure/test_permission_relationships.py381 await cartography.intel.microsoft.entra.service_principals.sync_service_principals(CODE
CRITICALtests/integration/cartography/intel/azure/test_rbac.py17from azure.core.exceptions import HttpResponseErrorCODE
CRITICAL⚡tests/integration/cartography/intel/azure/test_rbac.py190 await cartography.intel.microsoft.entra.users.sync_entra_users(CODE
CRITICAL⚡tests/integration/cartography/intel/azure/test_rbac.py200 await cartography.intel.microsoft.entra.groups.sync_entra_groups(CODE
CRITICAL⚡tests/integration/cartography/intel/azure/test_rbac.py210 await cartography.intel.microsoft.entra.service_principals.sync_service_principals(CODE
CRITICAL…tion/cartography/intel/azure/test_workload_identity.py88 await cartography.intel.microsoft.entra.service_principals.sync_service_principals(CODE
CRITICAL…tegration/cartography/intel/azure/test_subscription.py5from azure.core.exceptions import HttpResponseErrorCODE
CRITICAL…cartography/intel/microsoft/entra/test_applications.py183 async for assignment in cartography.intel.microsoft.entra.app_role_assignments.get_app_role_assignments_for_CODE
CRITICAL…tion/cartography/intel/digitalocean/test_management.py14 tests.data.digitalocean.platform.ACCOUNT_RESPONSE.get("account", {})CODE
CRITICAL…ration/cartography/intel/digitalocean/test_platform.py24 account_res = tests.data.digitalocean.platform.ACCOUNT_RESPONSE.get("account", {})CODE
CRITICAL⚡…gration/cartography/intel/digitalocean/test_compute.py14 tests.data.digitalocean.management.PROJECTS_RESPONSE.get("projects", [])CODE
CRITICAL⚡…gration/cartography/intel/digitalocean/test_compute.py22 droplet_res = tests.data.digitalocean.compute.DROPLETS_RESPONSE.get("droplets", [])CODE
CRITICAL…/integration/cartography/intel/railway/test_volumes.py28 cartography.intel.railway.storage.volumes.sync(CODE
CRITICAL…/integration/cartography/intel/railway/test_volumes.py138 _, instances = cartography.intel.railway.storage.volumes.transform(CODE
CRITICAL…/integration/cartography/intel/railway/test_domains.py69 cartography.intel.railway.network.domains.sync(CODE
CRITICAL…/integration/cartography/intel/railway/test_domains.py103 cartography.intel.railway.network.domains.sync(CODE
CRITICAL…/integration/cartography/intel/railway/test_domains.py156 cartography.intel.railway.network.tcpproxies.sync(CODE
CRITICAL…/integration/cartography/intel/railway/test_domains.py226 result = cartography.intel.railway.network.tcpproxies.get(CODE
CRITICAL…/integration/cartography/intel/railway/test_domains.py251 result = cartography.intel.railway.network.tcpproxies.get(CODE
CRITICAL…ts/integration/cartography/intel/railway/test_users.py26 cartography.intel.railway.iam.users.sync(CODE
CRITICAL…ts/integration/cartography/intel/railway/test_users.py115 cartography.intel.railway.iam.users.transform_users(CODE
CRITICAL…ts/integration/cartography/intel/railway/test_users.py153 cartography.intel.railway.iam.users.transform_users(CODE
CRITICAL…ts/integration/cartography/intel/railway/test_users.py188 cartography.intel.railway.iam.users.sync(CODE
CRITICAL…ts/integration/cartography/intel/railway/test_users.py276 cartography.intel.railway.iam.users.sync(CODE
CRITICAL…ts/integration/cartography/intel/railway/test_users.py341 cartography.intel.railway.iam.users.sync(CODE
CRITICAL…s/integration/cartography/intel/railway/test_tokens.py33 cartography.intel.railway.iam.users.sync(CODE
CRITICAL…s/integration/cartography/intel/railway/test_tokens.py68 cartography.intel.railway.iam.tokens.sync(CODE
CRITICAL…s/integration/cartography/intel/railway/test_tokens.py145 tokens, readable = cartography.intel.railway.iam.tokens.get_api_tokens(CODE
CRITICAL…s/integration/cartography/intel/railway/test_tokens.py167 tokens, readable = cartography.intel.railway.iam.tokens.get_api_tokens(CODE
CRITICAL…s/integration/cartography/intel/railway/test_tokens.py195 cartography.intel.railway.iam.tokens.sync(CODE
CRITICAL…s/integration/cartography/intel/railway/test_tokens.py213 cartography.intel.railway.iam.tokens.sync(CODE
278 more matches not shown…
Decorative Section Separators1186 hits · 1828 pts
SeverityFileLineSnippetContext
MEDIUM⚡tests/unit/cartography/intel/test_dockerfile_parser.py15# =============================================================================COMMENT
MEDIUM⚡tests/unit/cartography/intel/test_dockerfile_parser.py17# =============================================================================COMMENT
MEDIUM⚡tests/unit/cartography/intel/test_dockerfile_parser.py71# =============================================================================COMMENT
MEDIUM⚡tests/unit/cartography/intel/test_dockerfile_parser.py73# =============================================================================COMMENT
MEDIUM⚡tests/unit/cartography/intel/test_dockerfile_parser.py236# =============================================================================STRING
MEDIUM⚡tests/unit/cartography/intel/test_dockerfile_parser.py238# =============================================================================STRING
MEDIUM⚡tests/unit/cartography/intel/test_dockerfile_parser.py275# =============================================================================STRING
MEDIUM⚡tests/unit/cartography/intel/test_dockerfile_parser.py277# =============================================================================STRING
MEDIUMtests/unit/cartography/intel/test_dockerfile_parser.py205# =============================================================================STRING
MEDIUMtests/unit/cartography/intel/test_dockerfile_parser.py207# =============================================================================STRING
MEDIUMtests/unit/cartography/intel/test_dockerfile_parser.py307# =============================================================================STRING
MEDIUMtests/unit/cartography/intel/test_dockerfile_parser.py309# =============================================================================STRING
MEDIUM⚡…t/cartography/intel/tenable/test_findings_transform.py40# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…t/cartography/intel/tenable/test_findings_transform.py42# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…t/cartography/intel/tenable/test_findings_transform.py153# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…t/cartography/intel/tenable/test_findings_transform.py155# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…t/cartography/intel/tenable/test_findings_transform.py244# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…t/cartography/intel/tenable/test_findings_transform.py246# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…nit/cartography/intel/tenable/test_assets_transform.py18# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…nit/cartography/intel/tenable/test_assets_transform.py20# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…nit/cartography/intel/tenable/test_assets_transform.py135# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…nit/cartography/intel/tenable/test_assets_transform.py137# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…nit/cartography/intel/tenable/test_assets_transform.py187# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…nit/cartography/intel/tenable/test_assets_transform.py189# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…nit/cartography/intel/tenable/test_assets_transform.py261# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…nit/cartography/intel/tenable/test_assets_transform.py263# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…nit/cartography/intel/tenable/test_assets_transform.py394# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…nit/cartography/intel/tenable/test_assets_transform.py396# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…nit/cartography/intel/tenable/test_assets_transform.py449# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…nit/cartography/intel/tenable/test_assets_transform.py451# ---------------------------------------------------------------------------COMMENT
MEDIUM…nit/cartography/intel/tenable/test_assets_transform.py323# ---------------------------------------------------------------------------COMMENT
MEDIUM…nit/cartography/intel/tenable/test_assets_transform.py325# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/unit/cartography/intel/gcp/test_util.py623 # ------------------------------------------------------------------COMMENT
MEDIUM⚡tests/unit/cartography/intel/gcp/test_util.py625 # ------------------------------------------------------------------COMMENT
MEDIUM⚡tests/unit/cartography/intel/gcp/test_util.py674 # ------------------------------------------------------------------COMMENT
MEDIUM⚡tests/unit/cartography/intel/gcp/test_util.py676 # ------------------------------------------------------------------COMMENT
MEDIUM⚡tests/unit/cartography/intel/gcp/test_util.py698 # ------------------------------------------------------------------COMMENT
MEDIUM⚡tests/unit/cartography/intel/gcp/test_util.py700 # ------------------------------------------------------------------COMMENT
MEDIUM⚡tests/unit/cartography/intel/gcp/test_util.py709 # ------------------------------------------------------------------COMMENT
MEDIUM⚡tests/unit/cartography/intel/gcp/test_util.py711 # ------------------------------------------------------------------COMMENT
MEDIUM⚡tests/unit/cartography/intel/gcp/test_util.py743 # ------------------------------------------------------------------COMMENT
MEDIUM⚡tests/unit/cartography/intel/gcp/test_util.py745 # ------------------------------------------------------------------COMMENT
MEDIUM⚡tests/unit/cartography/intel/gcp/test_util.py791 # ------------------------------------------------------------------COMMENT
MEDIUM⚡tests/unit/cartography/intel/gcp/test_util.py793 # ------------------------------------------------------------------COMMENT
MEDIUM⚡tests/unit/cartography/intel/gcp/test_util.py802 # ------------------------------------------------------------------COMMENT
MEDIUM⚡tests/unit/cartography/intel/gcp/test_util.py804 # ------------------------------------------------------------------COMMENT
MEDIUMtests/unit/cartography/intel/gcp/test_util.py655 # ------------------------------------------------------------------COMMENT
MEDIUMtests/unit/cartography/intel/gcp/test_util.py657 # ------------------------------------------------------------------COMMENT
MEDIUM⚡…raphy/intel/gcp/test_artifact_registry_supply_chain.py58# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…raphy/intel/gcp/test_artifact_registry_supply_chain.py60# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…raphy/intel/gcp/test_artifact_registry_supply_chain.py83# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…raphy/intel/gcp/test_artifact_registry_supply_chain.py85# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…raphy/intel/gcp/test_artifact_registry_supply_chain.py416# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…raphy/intel/gcp/test_artifact_registry_supply_chain.py418# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…raphy/intel/gcp/test_artifact_registry_supply_chain.py874# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…raphy/intel/gcp/test_artifact_registry_supply_chain.py876# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…raphy/intel/gcp/test_artifact_registry_supply_chain.py1522# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡…raphy/intel/gcp/test_artifact_registry_supply_chain.py1524# ---------------------------------------------------------------------------COMMENT
MEDIUM…raphy/intel/gcp/test_artifact_registry_supply_chain.py502# ---------------------------------------------------------------------------COMMENT
MEDIUM…raphy/intel/gcp/test_artifact_registry_supply_chain.py504# ---------------------------------------------------------------------------COMMENT
1126 more matches not shown…
Cross-File Repetition305 hits · 1525 pts
SeverityFileLineSnippetContext
HIGHdemo/seeds/azure.py0merge (as:azuresubscription{id: $subscription_id}) on create set as.firstseen = timestamp() set as.lastupdated = $updateSTRING
HIGH…s/integration/cartography/intel/azure/test_cosmosdb.py0merge (as:azuresubscription{id: $subscription_id}) on create set as.firstseen = timestamp() set as.lastupdated = $updateSTRING
HIGHtests/integration/cartography/intel/azure/test_sql.py0merge (as:azuresubscription{id: $subscription_id}) on create set as.firstseen = timestamp() set as.lastupdated = $updateSTRING
HIGH…ts/integration/cartography/intel/azure/test_storage.py0merge (as:azuresubscription{id: $subscription_id}) on create set as.firstseen = timestamp() set as.lastupdated = $updateSTRING
HIGH…ts/integration/cartography/intel/azure/test_compute.py0merge (as:azuresubscription{id: $subscription_id}) on create set as.firstseen = timestamp() set as.lastupdated = $updateSTRING
HIGH…egration/cartography/intel/gitlab/test_dependencies.py0merge (p:gitlabproject{id: $project_id}) on create set p.firstseen = timestamp() set p.lastupdated = $update_tag, p.nameSTRING
HIGH…/integration/cartography/intel/gitlab/test_branches.py0merge (p:gitlabproject{id: $project_id}) on create set p.firstseen = timestamp() set p.lastupdated = $update_tag, p.nameSTRING
HIGH…sts/integration/cartography/intel/gitlab/test_users.py0merge (p:gitlabproject{id: $project_id}) on create set p.firstseen = timestamp() set p.lastupdated = $update_tag, p.nameSTRING
HIGH…tion/cartography/intel/gitlab/test_dependency_files.py0merge (p:gitlabproject{id: $project_id}) on create set p.firstseen = timestamp() set p.lastupdated = $update_tag, p.nameSTRING
HIGH…egration/cartography/intel/gitlab/test_dependencies.py0test that resource relationships to project are created.STRING
HIGH…/integration/cartography/intel/gitlab/test_branches.py0test that resource relationships to project are created.STRING
HIGH…tion/cartography/intel/gitlab/test_dependency_files.py0test that resource relationships to project are created.STRING
HIGH…/integration/cartography/intel/gitlab/test_projects.py0merge (org:gitlaborganization{id: $org_id}) on create set org.firstseen = timestamp() set org.lastupdated = $update_tag,STRING
HIGH…sts/integration/cartography/intel/gitlab/test_users.py0merge (org:gitlaborganization{id: $org_id}) on create set org.firstseen = timestamp() set org.lastupdated = $update_tag,STRING
HIGH…ts/integration/cartography/intel/gitlab/test_groups.py0merge (org:gitlaborganization{id: $org_id}) on create set org.firstseen = timestamp() set org.lastupdated = $update_tag,STRING
HIGH…ration/cartography/intel/azure/test_security_center.py0merge (s:azuresubscription{id: $sub_id}) set s.lastupdated = $update_tagSTRING
HIGH…ts/integration/cartography/intel/azure/test_monitor.py0merge (s:azuresubscription{id: $sub_id}) set s.lastupdated = $update_tagSTRING
HIGH…integration/cartography/intel/azure/test_key_vaults.py0merge (s:azuresubscription{id: $sub_id}) set s.lastupdated = $update_tagSTRING
HIGH…ntegration/cartography/intel/azure/test_app_service.py0merge (s:azuresubscription{id: $sub_id}) set s.lastupdated = $update_tagSTRING
HIGH…/integration/cartography/intel/azure/test_data_lake.py0merge (s:azuresubscription{id: $sub_id}) set s.lastupdated = $update_tagSTRING
HIGH…egration/cartography/intel/azure/test_load_balancer.py0merge (s:azuresubscription{id: $sub_id}) set s.lastupdated = $update_tagSTRING
HIGH…integration/cartography/intel/azure/test_logic_apps.py0merge (s:azuresubscription{id: $sub_id}) set s.lastupdated = $update_tagSTRING
HIGH…ation/cartography/intel/azure/test_group_containers.py0merge (s:azuresubscription{id: $sub_id}) set s.lastupdated = $update_tagSTRING
HIGH…/integration/cartography/intel/azure/test_functions.py0merge (s:azuresubscription{id: $sub_id}) set s.lastupdated = $update_tagSTRING
HIGH…/integration/cartography/intel/azure/test_event_hub.py0merge (s:azuresubscription{id: $sub_id}) set s.lastupdated = $update_tagSTRING
HIGHtests/integration/cartography/intel/azure/test_aks.py0merge (s:azuresubscription{id: $sub_id}) set s.lastupdated = $update_tagSTRING
HIGH…on/cartography/intel/azure/test_application_gateway.py0merge (s:azuresubscription{id: $sub_id}) set s.lastupdated = $update_tagSTRING
HIGH…ration/cartography/intel/azure/test_resource_groups.py0merge (s:azuresubscription{id: $sub_id}) set s.lastupdated = $update_tagSTRING
HIGH…integration/cartography/intel/azure/test_event_grid.py0merge (s:azuresubscription{id: $sub_id}) set s.lastupdated = $update_tagSTRING
HIGH…/integration/cartography/intel/azure/test_functions.py0merge (i:image:awsecrimage {id: $digest}) set i.digest = $digest, i.lastupdated = $tagSTRING
HIGH…ion/cartography/intel/ontology/test_resolved_images.py0merge (i:image:awsecrimage {id: $digest}) set i.digest = $digest, i.lastupdated = $tagSTRING
HIGHtests/integration/cartography/intel/aws/test_lambda.py0merge (i:image:awsecrimage {id: $digest}) set i.digest = $digest, i.lastupdated = $tagSTRING
HIGH…tegration/cartography/intel/gcp/test_selective_sync.py0merge (project:gcpproject{id: $project_id}) on create set project.firstseen = timestamp() set project.lastupdated = $updSTRING
HIGH…cartography/intel/gcp/test_permission_relationships.py0merge (project:gcpproject{id: $project_id}) on create set project.firstseen = timestamp() set project.lastupdated = $updSTRING
HIGHtests/integration/cartography/intel/gcp/test_apikeys.py0merge (project:gcpproject{id: $project_id}) on create set project.firstseen = timestamp() set project.lastupdated = $updSTRING
HIGHtests/integration/cartography/intel/gcp/test_storage.py0merge (project:gcpproject{id: $project_id}) on create set project.firstseen = timestamp() set project.lastupdated = $updSTRING
HIGH…tegration/cartography/intel/gcp/test_secretsmanager.py0merge (project:gcpproject{id: $project_id}) on create set project.firstseen = timestamp() set project.lastupdated = $updSTRING
HIGHtests/integration/cartography/intel/gcp/test_vertex.py0merge (project:gcpproject{id: $project_id}) on create set project.firstseen = timestamp() set project.lastupdated = $updSTRING
HIGH…egration/cartography/intel/gcp/test_policy_bindings.py0merge (project:gcpproject{id: $project_id}) on create set project.firstseen = timestamp() set project.lastupdated = $updSTRING
HIGH…gration/cartography/intel/gcp/test_compute_exposure.py0merge (p:gcpproject{id:$projectid}) on create set p.firstseen = timestamp() set p.lastupdated = $gcp_update_tagSTRING
HIGHtests/integration/cartography/intel/gcp/test_dns.py0merge (p:gcpproject{id:$projectid}) on create set p.firstseen = timestamp() set p.lastupdated = $gcp_update_tagSTRING
HIGHtests/integration/cartography/intel/gcp/test_iam.py0merge (p:gcpproject{id:$projectid}) on create set p.firstseen = timestamp() set p.lastupdated = $gcp_update_tagSTRING
HIGH…tion/cartography/intel/gcp/test_ssl_policy_exposure.py0merge (p:gcpproject{id:$projectid}) on create set p.firstseen = timestamp() set p.lastupdated = $gcp_update_tagSTRING
HIGH…ration/cartography/intel/gcp/test_workload_identity.py0merge (p:gcpproject{id:$projectid}) on create set p.firstseen = timestamp() set p.lastupdated = $gcp_update_tagSTRING
HIGHtests/integration/cartography/intel/gcp/test_compute.py0merge (p:gcpproject{id:$projectid}) on create set p.firstseen = timestamp() set p.lastupdated = $gcp_update_tagSTRING
HIGH…sts/integration/cartography/intel/okta/test_origins.py0merge (o:oktaorganization{id: $org_id}) on create set o.firstseen = timestamp() set o.lastupdated = $update_tagSTRING
HIGH…ntegration/cartography/intel/okta/test_applications.py0merge (o:oktaorganization{id: $org_id}) on create set o.firstseen = timestamp() set o.lastupdated = $update_tagSTRING
HIGHtests/integration/cartography/intel/okta/test_users.py0merge (o:oktaorganization{id: $org_id}) on create set o.firstseen = timestamp() set o.lastupdated = $update_tagSTRING
HIGH…sts/integration/cartography/intel/okta/test_origins.py0merge (o:oktaorganization{id: $org_id}) set o.lastupdated = $update_tagSTRING
HIGH…sts/integration/cartography/intel/okta/test_factors.py0merge (o:oktaorganization{id: $org_id}) set o.lastupdated = $update_tagSTRING
HIGHtests/integration/cartography/intel/okta/test_group.py0merge (o:oktaorganization{id: $org_id}) set o.lastupdated = $update_tagSTRING
HIGHtests/integration/cartography/intel/okta/test_users.py0merge (o:oktaorganization{id: $org_id}) set o.lastupdated = $update_tagSTRING
HIGHtests/integration/cartography/intel/aws/test_rds.py0merge (k:awskmskey{id: $key_id}) set k.arn = $key_arn, k.lastupdated = $update_tagSTRING
HIGHtests/integration/cartography/intel/aws/test_efs.py0merge (k:awskmskey{id: $key_id}) set k.arn = $key_arn, k.lastupdated = $update_tagSTRING
HIGHtests/integration/cartography/intel/aws/test_s3.py0merge (k:awskmskey{id: $key_id}) set k.arn = $key_arn, k.lastupdated = $update_tagSTRING
HIGHtests/integration/cartography/intel/aws/test_emr.py0merge (aws:awsaccount{id: $aws_account_id}) on create set aws.firstseen = timestamp() set aws.lastupdated = $aws_update_STRING
HIGHtests/integration/cartography/intel/aws/test_kms.py0merge (aws:awsaccount{id: $aws_account_id}) on create set aws.firstseen = timestamp() set aws.lastupdated = $aws_update_STRING
HIGHtests/integration/cartography/intel/aws/common.py0merge (aws:awsaccount{id: $aws_account_id}) on create set aws.firstseen = timestamp() set aws.lastupdated = $aws_update_STRING
HIGH…s/integration/cartography/intel/aws/test_apigateway.py0merge (aws:awsaccount{id: $aws_account_id}) on create set aws.firstseen = timestamp() set aws.lastupdated = $aws_update_STRING
HIGHtests/integration/cartography/intel/aws/test_lambda.py0merge (aws:awsaccount{id: $aws_account_id}) on create set aws.firstseen = timestamp() set aws.lastupdated = $aws_update_STRING
245 more matches not shown…
Modern Structural Boilerplate774 hits · 776 pts
SeverityFileLineSnippetContext
LOWdemo/__main__.py23logger = logging.getLogger(__name__)CODE
LOWtests/utils.py17logger = logging.getLogger(__name__)CODE
LOWtests/unit/cartography/graph/test_model.py21logger = logging.getLogger(__name__)CODE
LOWtests/integration/conftest.py13logger = logging.getLogger(__name__)CODE
LOW…tion/cartography/intel/spacelift/test_ec2_ownership.py24def _setup_test_infrastructure(neo4j_session: neo4j.Session) -> None:CODE
LOW…ation/cartography/intel/snipeit/test_snipeit_assets.py10logger = logging.getLogger(__name__)CODE
LOW…ration/cartography/intel/snipeit/test_snipeit_users.py9logger = logging.getLogger(__name__)CODE
LOW…ts/integration/cartography/intel/kandji/test_kandji.py9logger = logging.getLogger(__name__)CODE
LOWtests/integration/cartography/graph/test_matchlink.py31def _setup_test_data(neo4j_session: neo4j.Session, update_tag: int) -> None:CODE
LOWcartography/sync.py34logger = logging.getLogger(__name__)CODE
LOWcartography/config.py3logger = logging.getLogger(__name__)CODE
LOWcartography/version.py7logger = logging.getLogger(__name__)CODE
LOWcartography/util.py44logger = logging.getLogger(__name__)CODE
LOWcartography/cli.py18logger = logging.getLogger(__name__)CODE
LOWcartography/stats.py216 def set_stats_client(self, stats_client: StatsClient) -> None:CODE
LOWcartography/stats.py233def set_stats_client(stats_client: StatsClient) -> None:CODE
LOWcartography/helpers.py8logger = logging.getLogger(__name__)CODE
LOWcartography/intel/analysis.py9logger = logging.getLogger(__name__)CODE
LOWcartography/intel/dns.py14logger = logging.getLogger(__name__)CODE
LOWcartography/intel/deprecated_indexes.py22logger = logging.getLogger(__name__)CODE
LOWcartography/intel/supply_chain.py15logger = logging.getLogger(__name__)CODE
LOWcartography/intel/create_indexes.py11logger = logging.getLogger(__name__)CODE
LOWcartography/intel/bigfix/__init__.py9logger = logging.getLogger(__name__)CODE
LOWcartography/intel/bigfix/computers.py20logger = logging.getLogger(__name__)CODE
LOWcartography/intel/googleworkspace/tenant.py12logger = logging.getLogger(__name__)CODE
LOWcartography/intel/googleworkspace/users.py12logger = logging.getLogger(__name__)CODE
LOWcartography/intel/googleworkspace/__init__.py33logger = logging.getLogger(__name__)CODE
LOWcartography/intel/googleworkspace/groups.py30logger = logging.getLogger(__name__)CODE
LOWcartography/intel/googleworkspace/oauth_apps.py17logger = logging.getLogger(__name__)CODE
LOWcartography/intel/googleworkspace/devices.py15logger = logging.getLogger(__name__)CODE
LOWcartography/intel/socketdev/alerts.py12logger = logging.getLogger(__name__)CODE
LOWcartography/intel/socketdev/fixes.py15logger = logging.getLogger(__name__)CODE
LOWcartography/intel/socketdev/__init__.py13logger = logging.getLogger(__name__)CODE
LOWcartography/intel/socketdev/organizations.py11logger = logging.getLogger(__name__)CODE
LOWcartography/intel/socketdev/repositories.py14logger = logging.getLogger(__name__)CODE
LOWcartography/intel/socketdev/dependencies.py13logger = logging.getLogger(__name__)CODE
LOWcartography/intel/aibom/__init__.py24logger = logging.getLogger(__name__)CODE
LOWcartography/intel/aibom/transform.py7logger = logging.getLogger(__name__)CODE
LOWcartography/intel/sentinelone/finding.py14logger = logging.getLogger(__name__)CODE
LOWcartography/intel/sentinelone/__init__.py19logger = logging.getLogger(__name__)CODE
LOWcartography/intel/sentinelone/application.py18logger = logging.getLogger(__name__)CODE
LOWcartography/intel/sentinelone/agent.py14logger = logging.getLogger(__name__)CODE
LOWcartography/intel/sentinelone/account.py13logger = logging.getLogger(__name__)CODE
LOWcartography/intel/crowdstrike/spotlight.py15logger = logging.getLogger(__name__)CODE
LOWcartography/intel/crowdstrike/__init__.py26logger = logging.getLogger(__name__)CODE
LOWcartography/intel/crowdstrike/endpoints.py15logger = logging.getLogger(__name__)CODE
LOWcartography/intel/vercel/edgeconfigtokens.py13logger = logging.getLogger(__name__)CODE
LOWcartography/intel/vercel/logdrains.py13logger = logging.getLogger(__name__)CODE
LOWcartography/intel/vercel/securecomputenetworks.py17logger = logging.getLogger(__name__)CODE
LOWcartography/intel/vercel/accessgroups.py15logger = logging.getLogger(__name__)CODE
LOWcartography/intel/vercel/firewallconfigs.py13logger = logging.getLogger(__name__)CODE
LOWcartography/intel/vercel/users.py13logger = logging.getLogger(__name__)CODE
LOWcartography/intel/vercel/util.py8logger = logging.getLogger(__name__)CODE
LOWcartography/intel/vercel/domains.py13logger = logging.getLogger(__name__)CODE
LOWcartography/intel/vercel/teams.py13logger = logging.getLogger(__name__)CODE
LOWcartography/intel/vercel/__init__.py31logger = logging.getLogger(__name__)CODE
LOWcartography/intel/vercel/aliases.py13logger = logging.getLogger(__name__)CODE
LOWcartography/intel/vercel/dnsrecords.py13logger = logging.getLogger(__name__)CODE
LOWcartography/intel/vercel/edgeconfigs.py13logger = logging.getLogger(__name__)CODE
LOWcartography/intel/vercel/firewallbypassrules.py13logger = logging.getLogger(__name__)CODE
714 more matches not shown…
Docstring Block Structure68 hits · 340 pts
SeverityFileLineSnippetContext
HIGHcartography/sync.py282 Execute all configured stages in the sync task sequentially. This method is the main execution entry pSTRING
HIGHcartography/sync.py442 Execute a sync task with comprehensive configuration and error handling. This function serves as a high-level STRING
HIGHcartography/sync.py597 Parse and validate user-selected modules from comma-separated string. This function takes a comma-separated stSTRING
HIGHcartography/sync.py643 Build a custom sync with user-specified modules. This function creates a Sync instance configured only with thSTRING
HIGHcartography/util.py85 Execute an analysis job to enrich existing graph data. This function is designed for use with the cartography.STRING
HIGHcartography/util.py153 Conditionally run an analysis job based on resource dependency requirements. This function checks if all requiSTRING
HIGHcartography/util.py246 Execute a scoped analysis job on a specific sub-resource. This function runs analysis queries that are scoped STRING
HIGHcartography/util.py304 Execute a cleanup job to remove stale data from the graph. .. deprecated:: This function is deprecatedSTRING
HIGHcartography/util.py433 Load a binary resource from a Python package. This function provides a convenient way to load binary files (liSTRING
HIGHcartography/util.py468 Decorator to measure and report function execution time via StatsD. This decorator automatically measures the STRING
HIGHcartography/util.py527 Helper function for handling AWS boto3 API pagination with progress logging. This function provides a convenieSTRING
HIGHcartography/util.py654 Decorator to handle AWS regional access errors and opt-in region limitations. This decorator wraps AWS API funSTRING
HIGHcartography/util.py780 Add exponential backoff retry logic to any function. This decorator function wraps any callable with retry logSTRING
HIGHcartography/util.py867 Convert a dictionary date value to Unix epoch timestamp. .. deprecated:: This method is deprecated. NeSTRING
HIGHcartography/util.py951 Determine if an exception is caused by API rate limiting or throttling. This function checks whether a given eSTRING
HIGHcartography/util.py1013 Execute a synchronous function asynchronously in a threadpool with throttling protection. This function wraps STRING
HIGHcartography/util.py1072 Synchronously execute multiple awaitables and return their results. This function blocks the current thread unSTRING
HIGHcartography/stats.py138 Create a StatsD timer context manager for measuring execution time. This method returns a timer objectSTRING
HIGHcartography/stats.py176 Report a StatsD gauge metric value. This method reports a gauge value using the underlying StatsD clieSTRING
HIGHcartography/helpers.py73 Split an iterable into batches of specified size. This utility function takes any iterable and yields lists ofSTRING
HIGHcartography/intel/gcp/bigquery_connection.py67 Gets BigQuery connections for a project across all locations. The BigQuery Connection API does not support a wSTRING
HIGHcartography/graph/job.py26 Extract variable names from a Template object. This function extracts all variable identifiers (parameters) frSTRING
HIGHcartography/graph/job.py109 Handle serialization of custom objects. This method is called by the JSON encoder for objects that areSTRING
HIGHcartography/graph/job.py134 A job that executes a sequence of Neo4j statements against the cartography graph. A GraphJob represents a compSTRING
HIGHcartography/graph/job.py218 Execute the job by running all statements sequentially. This method executes each statement in the jobSTRING
HIGHcartography/graph/job.py285 Create a GraphJob instance from a JSON string. This class method deserializes a JSON string into a GraSTRING
HIGHcartography/graph/job.py336 Create a cleanup job from a CartographyNodeSchema. This class method generates a cleanup job that remoSTRING
HIGHcartography/graph/job.py463 Create a GraphJob instance from a JSON file. This class method reads a JSON file and deserializes it iSTRING
HIGHcartography/graph/job.py555 Deserialize GraphStatement objects from a JSON dictionary. This function creates a list of GraphStatement objeSTRING
HIGHcartography/graph/statement.py43 Extract the short name from a file path by removing the extension. This utility function takes a file path andSTRING
HIGHcartography/graph/statement.py218 Convert statement to a dictionary representation. This method serializes the GraphStatement instance iSTRING
HIGHcartography/graph/statement.py337 Create a GraphStatement instance from a JSON object. This class method constructs a GraphStatement froSTRING
HIGHcartography/graph/statement.py373 Create a GraphStatement instance from a JSON file. This class method reads a JSON file and creates a GSTRING
HIGHcartography/graph/cleanupbuilder.py19 Generate Neo4j queries to clean up stale nodes and relationships. This function creates appropriate cleanup quSTRING
HIGHcartography/graph/cleanupbuilder.py127 Generate a cleanup query for relationships when no sub resource is defined. This helper function creates a queSTRING
HIGHcartography/graph/cleanupbuilder.py182 Build a MATCH statement for cleanup queries. This helper function generates the appropriate MATCH clause basedSTRING
HIGHcartography/graph/cleanupbuilder.py249 Generate cleanup queries for both nodes and relationships. This function performs the main string template logSTRING
HIGHcartography/graph/cleanupbuilder.py389 Generate an unscoped cleanup query for nodes. This function creates a cleanup query for node schemas that alloSTRING
HIGHcartography/graph/cleanupbuilder.py458 Generate an unscoped relationship cleanup query. This function creates a cleanup query for relationships when STRING
HIGHcartography/graph/cleanupbuilder.py517 Build a relationship clause with correct directional syntax. This function generates the appropriate Neo4j relSTRING
HIGHcartography/graph/cleanupbuilder.py604 Generate a cleanup query for matchlink relationships. This function creates a Neo4j query to clean up stale maSTRING
HIGHcartography/graph/querybuilder.py422 Generate a Neo4j clause that sets node properties using the given mapping of attribute names to PropertyRefs. STRING
HIGHcartography/graph/querybuilder.py489 Generate Neo4j clauses that apply conditional extra labels to the node of the current row. Conditional labels STRING
HIGHcartography/graph/querybuilder.py582 Generate a Neo4j clause that sets relationship properties using the given mapping of attribute names to PropertyRefSTRING
HIGHcartography/graph/querybuilder.py633 Generate a Neo4j match statement on one or more keys and values for a given node. This function creates a propSTRING
HIGHcartography/graph/querybuilder.py673 Generate a Neo4j WHERE clause for relationship matching with advanced matching options. This function creates STRING
HIGHcartography/graph/querybuilder.py751 Convert CartographyRelSchema properties to dict with validation and helpful error messages. This function convSTRING
HIGHcartography/graph/querybuilder.py819 Generate a Neo4j statement to attach a sub resource to a node. A 'sub resource' is a cartography term for billSTRING
HIGHcartography/graph/querybuilder.py908 Generate a Neo4j statement to attach multiple additional relationships to nodes. This function creates Neo4j cSTRING
HIGHcartography/graph/querybuilder.py1019 Generate Neo4j subqueries to attach sub resource and/or other relationships. This function uses Neo4j subqueriSTRING
HIGHcartography/graph/querybuilder.py1100 Check if a relationship schema is present on a node schema. This function determines whether a given relationsSTRING
HIGHcartography/graph/querybuilder.py1141 Filter and validate selected relationships against a node schema. This function ensures that selected relationSTRING
HIGHcartography/graph/querybuilder.py1223 Generate a Neo4j query from a CartographyNodeSchema to ingest nodes and relationships. This function creates aSTRING
HIGHcartography/graph/querybuilder.py1320 Generate queries to create indexes for the given CartographyNodeSchema and all node types attached to it via its STRING
HIGHcartography/graph/querybuilder.py1448 Generate queries to create indexes for the given CartographyRelSchema and all node types attached to it. This STRING
HIGHcartography/graph/querybuilder.py1649 Generate a query that links every matched source node to every matched target. This is the querybuilder companSTRING
HIGHcartography/graph/querybuilder.py1756 Generate a Neo4j query to link two existing nodes when given a CartographyRelSchema object. This function creaSTRING
HIGHcartography/models/core/common.py48 Initialize a PropertyRef instance. Args: name (str): The name of the property. STRING
HIGHcartography/models/core/relationships.py133 Create a TargetNodeMatcher with dynamically generated attributes. This function creates a specialized TargetNoSTRING
HIGHcartography/rules/formatters.py19 Generate a clickable Neo4j Browser URL with pre-populated query. This function converts a Neo4j connection URISTRING
8 more matches not shown…
Cross-Language Confusion48 hits · 251 pts
SeverityFileLineSnippetContext
HIGH…ts/unit/cartography/intel/aws/test_ecr_image_layers.py1101 "sha256:2222222222222222222222222222222222222222222222222222222222222222": "/bin/sh -c apt-get update && apt-getCODE
HIGH…ts/integration/rules/test_database_instance_exposed.py73 endpoint: null, is_public: false, engine_major_version: '16',STRING
HIGHtests/integration/rules/test_cis_aws_iam.py171 // Inline policies are loaded with arn = null; policy.id is the only stable id.STRING
HIGHtests/integration/rules/test_cis_aws_iam.py174 arn: null,STRING
HIGHtests/integration/rules/test_cis_aws_iam.py278 arn: null,STRING
HIGH…integration/cartography/intel/snowflake/test_tables.py105 # An empty clustering key is stored as null, never as an empty string.COMMENT
HIGH…gration/cartography/intel/snowflake/test_warehouses.py54 # warehouse with no auto-suspend reports null, which is what makes "bills untilCOMMENT
HIGH…egration/cartography/intel/spacelift/test_spacelift.py321 # Only stack-1 has an assumed role ARN; stack-2's is null, so it gets no edge.COMMENT
HIGH…ntegration/cartography/intel/supabase/test_projects.py247 field still writes null, because that is real data.STRING
HIGHtests/data/railway/tokens.py20 # A personal-scope token: workspaceId is null, so it reaches every workspace.COMMENT
HIGHtests/data/spacelift/spacelift_data.py63 # No AWS integration: assumedRoleArn is null, so no ASSUMES edge.COMMENT
HIGH⚡tests/data/okta/application.py11 "passwordChanged": null,CODE
HIGH⚡tests/data/okta/application.py18 "secondEmail": null,CODE
HIGH⚡tests/data/okta/application.py44 "passwordChanged": null,CODE
HIGH⚡tests/data/okta/application.py51 "secondEmail": null,CODE
HIGH⚡tests/data/okta/application.py53 "mobilePhone": null,CODE
HIGHtests/data/okta/application.py99 "errorRedirectUrl": null,CODE
HIGHtests/data/okta/application.py130 "client_uri": null,CODE
HIGHtests/data/okta/application.py131 "logo_uri": null,CODE
HIGHtests/data/aws/cloudtrail_management_events.py495 "CloudTrailEvent": '{"eventVersion": "1.08", "userIdentity": {"type": "IAMUser", "principalId": "AIDACKCEVSQ6C2ECODE
HIGHtests/data/aws/cloudtrail_management_events.py504 "CloudTrailEvent": '{"eventVersion": "1.08", "userIdentity": {"type": "IAMUser", "principalId": "AIDACKCEVSQ6C2ACODE
HIGHtests/data/aws/cloudtrail_management_events.py520 "CloudTrailEvent": '{"eventVersion": "1.08", "userIdentity": {"type": "SAMLUser", "principalId": "SAML:unauthoriCODE
HIGHtests/data/aws/cloudtrail_management_events.py536 "CloudTrailEvent": '{"eventVersion": "1.08", "userIdentity": {"type": "WebIdentityUser", "principalId": "repo:unCODE
HIGHtests/data/aws/ecs.py564 "curl -f http://localhost:8080/healthz || exit 1",CODE
HIGHtests/data/trivy/trivy_sample.py67 "created_by": 'RUN /bin/sh -c set -eux; \t\tsavedAptMark="$(apt-mark showmanual)"; \tapt-get update;CODE
HIGHtests/data/trivy/trivy_sample.py138 "created_by": 'HEALTHCHECK \u0026{["CMD-SHELL" "curl -f http://localhost:8000/health || exit 1"] "30CODE
HIGHtests/data/trivy/trivy_sample.py184 "curl -f http://localhost:8000/health || exit 1",CODE
HIGHcartography/intel/socketdev/alerts.py60 The Socket.dev API sometimes returns objects like {"name": "main", "type": null}STRING
HIGHcartography/intel/socketdev/alerts.py85 # Resolve GHSA IDs — cveId is often null, ghsaIds has the identifierCOMMENT
HIGHcartography/intel/semgrep/findings.py165 if dep_url: # Lock file can be null, need to setCODE
HIGHcartography/intel/cloudflare/rulesets.py259 # with the key absent or explicitly null, as executed_ruleset_ids() sees.COMMENT
HIGHcartography/intel/supabase/projects.py149 that genuinely omits a field still writes null, because that is real data.STRING
HIGH⚡cartography/intel/aws/organizations.py576 SET account.arn = null,STRING
HIGH⚡cartography/intel/aws/organizations.py577 account.email = null,STRING
HIGH⚡cartography/intel/aws/organizations.py578 account.state = null,STRING
HIGH⚡cartography/intel/aws/organizations.py579 account.status = null,STRING
HIGH⚡cartography/intel/aws/organizations.py580 account.joined_method = null,STRING
HIGH⚡cartography/intel/aws/organizations.py581 account.joined_timestamp = null,STRING
HIGH⚡cartography/intel/aws/organizations.py582 account.org_id = null,STRING
HIGH⚡cartography/graph/querybuilder.py29 # coalesce will return the first non-null value, so if toBooleanOrNull returns null,COMMENT
HIGHcartography/graph/querybuilder.py46 # coalesce will return the first non-null value, so if toBooleanOrNull returns null,COMMENT
HIGHcartography/models/gitlab/organizations.py4In GitLab, organizations are top-level groups (where parent_id is null).STRING
HIGHcartography/models/scaleway/storage/objectstorage.py57 description="`True` when `public` is true. Left unset when `public` is null, meaning neither the ACL nor the polCODE
HIGH…ography/models/aws/apigateway/apigatewayintegration.py47 description="The ID of the VpcLink used for the integration when connectionType=VPC_LINK and undefined, otherwisCODE
HIGH…phy/rules/data/rules/delegation_boundary_modifiable.py44 UNWIND coalesce(stmt.resource, [null]) AS resourceCODE
HIGH⚡…y/rules/data/rules/policy_administration_privileges.py51 UNWIND coalesce(allow_resources, [null]) AS resourceCODE
HIGH⚡cartography/rules/data/rules/databricks_security.py81# (system-default cap) and an unset value both to null, and the account defaultSTRING
HIGH…rules/data/rules/identity_administration_privileges.py49 UNWIND coalesce(stmt.resource, [null]) AS resourceCODE
Deep Nesting210 hits · 199 pts
SeverityFileLineSnippetContext
LOWtests/unit/cartography/intel/snowflake/test_util.py765CODE
LOWtests/unit/cartography/intel/snowflake/test_util.py779CODE
LOW…it/cartography/intel/ontology/test_ontology_mapping.py185CODE
LOW…it/cartography/intel/ontology/test_ontology_mapping.py231CODE
LOW…it/cartography/intel/ontology/test_ontology_mapping.py269CODE
LOW…it/cartography/intel/ontology/test_ontology_mapping.py296CODE
LOW…it/cartography/intel/ontology/test_ontology_mapping.py308CODE
LOW…it/cartography/intel/ontology/test_ontology_mapping.py331CODE
LOW…it/cartography/intel/ontology/test_ontology_mapping.py367CODE
LOW…it/cartography/intel/ontology/test_ontology_mapping.py403CODE
LOW…ts/unit/cartography/intel/aws/test_label_migrations.py43CODE
LOW…/unit/cartography/analysis/test_ontology_dnsrecords.py52CODE
LOWtests/unit/cartography/graph/test_model.py71CODE
LOWtests/unit/cartography/graph/test_analysis.py51CODE
LOW…tegration/cartography/intel/github/test_dockerfiles.py131CODE
LOW…tegration/cartography/intel/github/test_dockerfiles.py137CODE
LOW…n/cartography/intel/github/test_external_identities.py302CODE
LOWtests/integration/cartography/intel/aws/test_init.py1425CODE
LOWcartography/intel/supply_chain.py334CODE
LOWcartography/intel/supply_chain.py472CODE
LOWcartography/intel/googleworkspace/users.py42CODE
LOWcartography/intel/googleworkspace/__init__.py64CODE
LOWcartography/intel/googleworkspace/groups.py235CODE
LOWcartography/intel/googleworkspace/oauth_apps.py23CODE
LOWcartography/intel/gitlab/dependency_files.py20CODE
LOWcartography/intel/gitlab/users.py90CODE
LOWcartography/intel/gitlab/util.py185CODE
LOW…rtography/intel/gitlab/container_image_attestations.py67CODE
LOWcartography/intel/gitlab/supply_chain.py274CODE
LOWcartography/intel/gitlab/supply_chain.py373CODE
LOWcartography/intel/gitlab/container_images.py165CODE
LOWcartography/intel/gitlab/container_images.py411CODE
LOWcartography/intel/gitlab/container_images.py484CODE
LOWcartography/intel/azure/functions.py115CODE
LOWcartography/intel/azure/firewall.py499CODE
LOWcartography/intel/azure/data_factory_pipeline.py38CODE
LOWcartography/intel/azure/network.py237CODE
LOWcartography/intel/azure/key_vaults.py370CODE
LOWcartography/intel/azure/compute.py39CODE
LOWcartography/intel/azure/util/common.py8CODE
LOWcartography/intel/semgrep/findings.py128CODE
LOWcartography/intel/pagerduty/escalation_policies.py43CODE
LOWcartography/intel/pagerduty/schedules.py40CODE
LOWcartography/intel/wiz/findings.py267CODE
LOWcartography/intel/microsoft/o365/license_details.py18CODE
LOWcartography/intel/microsoft/o365/licenses.py31CODE
LOW…tography/intel/microsoft/intune/compliance_policies.py56CODE
LOWcartography/intel/microsoft/intune/reports.py186CODE
LOWcartography/intel/microsoft/entra/groups.py55CODE
LOWcartography/intel/microsoft/entra/groups.py158CODE
LOWcartography/intel/microsoft/entra/utils.py72CODE
LOWcartography/intel/microsoft/entra/ou.py23CODE
LOW…tography/intel/microsoft/entra/app_role_assignments.py29CODE
LOWcartography/intel/cloudflare/r2buckets.py226CODE
LOWcartography/intel/tenable/api.py89CODE
LOW…raphy/intel/databricks/network_connectivity_configs.py40CODE
LOWcartography/intel/gsuite/__init__.py69CODE
LOWcartography/intel/gsuite/groups.py109CODE
LOWcartography/intel/oci/iam.py385CODE
LOWcartography/intel/snowflake/services.py93CODE
150 more matches not shown…
Self-Referential Comments63 hits · 184 pts
SeverityFileLineSnippetContext
MEDIUMdemo/seeds/slack.py46 # Create a mock Slack clientCOMMENT
MEDIUM⚡tests/unit/cartography/client/core/test_tx.py649 # Create a ClientError without setting the code (simulates locally-created error)COMMENT
MEDIUM…ntegration/cartography/intel/sentinelone/test_agent.py188 # Create an old agent that should be cleaned upCOMMENT
MEDIUM…egration/cartography/intel/sentinelone/test_finding.py230 # Create an old AppFinding that should be cleaned upCOMMENT
MEDIUM…ration/cartography/intel/gitlab/test_cascade_delete.py148 # Create a stale branch (should be deleted)COMMENT
MEDIUM…ration/cartography/intel/gitlab/test_cascade_delete.py161 # Create a fresh branch (should be preserved - maybe re-parented)COMMENT
MEDIUM…ration/cartography/intel/azure/test_security_center.py21 # Create the prerequisite AzureSubscription nodeCOMMENT
MEDIUM…ts/integration/cartography/intel/azure/test_monitor.py21 # Create the prerequisite AzureSubscription nodeCOMMENT
MEDIUM…integration/cartography/intel/azure/test_key_vaults.py33 # Create the prerequisite AzureSubscription nodeCOMMENT
MEDIUM…ntegration/cartography/intel/azure/test_app_service.py21 # Create the prerequisite AzureSubscription nodeCOMMENT
MEDIUM…/integration/cartography/intel/azure/test_data_lake.py27 # Create the prerequisite AzureSubscription and AzureStorageAccount nodesCOMMENT
MEDIUM…egration/cartography/intel/azure/test_load_balancer.py21 # Create the prerequisite AzureSubscription nodeCOMMENT
MEDIUM…integration/cartography/intel/azure/test_logic_apps.py21 # Create the prerequisite AzureSubscription nodeCOMMENT
MEDIUM…s/integration/cartography/intel/azure/test_firewall.py39 # Create the prerequisite AzureSubscription nodeCOMMENT
MEDIUM…s/integration/cartography/intel/azure/test_firewall.py394 # Create the prerequisite AzureSubscription nodeCOMMENT
MEDIUM…tegration/cartography/intel/azure/test_data_factory.py39 # Create the prerequisite AzureSubscription nodeCOMMENT
MEDIUM…tegration/cartography/intel/azure/test_data_factory.py220 # Create the prerequisite AzureSubscription nodeCOMMENT
MEDIUM…tegration/cartography/intel/azure/test_data_factory.py253 # Create the prerequisite AzureSubscription nodeCOMMENT
MEDIUM…tegration/cartography/intel/azure/test_data_factory.py287 # Create the prerequisite AzureSubscription nodeCOMMENT
MEDIUM…ts/integration/cartography/intel/azure/test_synapse.py50 # Create the prerequisite AzureSubscription node with the short GUIDCOMMENT
MEDIUM…ts/integration/cartography/intel/azure/test_network.py41 # Create the prerequisite AzureSubscription nodeCOMMENT
MEDIUM…ation/cartography/intel/azure/test_group_containers.py21 # Create the prerequisite AzureSubscription nodeCOMMENT
MEDIUM…/integration/cartography/intel/azure/test_functions.py35 # Create the prerequisite AzureSubscription nodeCOMMENT
MEDIUM…/integration/cartography/intel/azure/test_event_hub.py43 # Create the prerequisite AzureSubscription nodeCOMMENT
MEDIUMtests/integration/cartography/intel/azure/test_aks.py24 # Create the prerequisite AzureSubscription nodeCOMMENT
MEDIUM…on/cartography/intel/azure/test_application_gateway.py23 # Create the prerequisite AzureSubscription nodeCOMMENT
MEDIUM…ration/cartography/intel/azure/test_resource_groups.py21 # Create the prerequisite AzureSubscription nodeCOMMENT
MEDIUM…integration/cartography/intel/azure/test_event_grid.py21 # Create the prerequisite AzureSubscription nodeCOMMENT
MEDIUMtests/integration/cartography/intel/gcp/test_cai.py39 # Create a mock CAI clientCOMMENT
MEDIUMtests/integration/cartography/intel/gcp/test_kms.py71 # Create the prerequisite GCPProject nodeCOMMENT
MEDIUM…tegration/cartography/intel/gcp/test_cascade_delete.py154 # Create a stale child (should be deleted)COMMENT
MEDIUM…tegration/cartography/intel/gcp/test_cascade_delete.py167 # Create a fresh child (should be preserved - maybe re-parented)COMMENT
MEDIUM…tegration/cartography/intel/gcp/test_cascade_delete.py358 # Create a child resource under the projectCOMMENT
MEDIUM…ion/cartography/intel/gcp/test_empty_parent_cleanup.py252 # Create a cluster for testingSTRING
MEDIUM…ion/cartography/intel/gcp/test_crm_deferred_cleanup.py103 # Create a minimal configCOMMENT
MEDIUMtests/integration/cartography/intel/okta/test_group.py243 # Create a fresh group via syncCOMMENT
MEDIUM…ntegration/cartography/intel/okta/test_applications.py137 # Create the OktaOrganization node firstCOMMENT
MEDIUMtests/integration/cartography/intel/okta/test_users.py58 # Create the OktaOrganization node firstCOMMENT
MEDIUM…tegration/cartography/intel/aws/test_cloudformation.py32 # Create a mock AWSRole for the relationship testCOMMENT
MEDIUM…tegration/cartography/intel/aws/test_identitycenter.py375 # Create a sample AWSRole node that we'll link to the groupCOMMENT
MEDIUM…ration/cartography/intel/aws/iam/test_role_policies.py50 # Define the relationships we expect in terms of role ARN and principal ARN.COMMENT
MEDIUM…ration/cartography/intel/aws/iam/test_user_policies.py48 # Define the relationships we expect in terms of role ARN and principal ARN.COMMENT
MEDIUMtests/integration/cartography/intel/aws/iam/test_iam.py96 # Create a mock boto3 session for the testCOMMENT
MEDIUMtests/integration/cartography/intel/aws/iam/test_iam.py130 # Create a test principal that the sync function will findCOMMENT
MEDIUM…on/cartography/intel/aws/ec2/test_load_balancer_v2s.py335 # Create a NACL attached to subnet-11111111COMMENT
MEDIUM…/integration/cartography/intel/kubernetes/test_rbac.py66 # Create a mock K8s clientCOMMENT
MEDIUM…tegration/cartography/intel/kubernetes/test_ingress.py321 # Create a mock K8s clientCOMMENT
MEDIUMtests/data/gcp/kms.py42# Define a helper mapping for the test to easily return the correct keys per ringCOMMENT
MEDIUMdocs/conf.py4# This file is execfile()d with the current directory set to itsCOMMENT
MEDIUMcartography/intel/gitlab/dependencies.py402 # Create a mapping of file paths to dependency file IDsCOMMENT
MEDIUM⚡cartography/intel/azure/subscription.py32 # Create the clientCOMMENT
MEDIUMcartography/intel/azure/subscription.py63 # Create the clientCOMMENT
MEDIUMcartography/intel/azure/data_factory_pipeline.py65 # Create a new dict for each relationshipCOMMENT
MEDIUMcartography/intel/gcp/vertex/deployed_models.py29 # Create a composite ID from endpoint and deployed model IDCOMMENT
MEDIUMcartography/intel/snipeit/user.py45 # Create the SnipeIT TenantCOMMENT
MEDIUMcartography/intel/snipeit/asset.py43 # Create the SnipeIT TenantCOMMENT
MEDIUMcartography/intel/github/repos.py1340 # Create a unique ID for a GitHubBranch node representing the default branch of this repo object.STRING
MEDIUMcartography/intel/github/repos.py1347 # Create a git:// URL from the given SSH URL, if it exists.STRING
MEDIUMcartography/intel/okta/groups.py336 # Create an entry for each group rule and for each group_id.COMMENT
MEDIUMcartography/intel/aws/apigateway.py236 # Create a mapping of api_id to policy data for easier lookupCOMMENT
3 more matches not shown…
Fake / Example Data89 hits · 95 pts
SeverityFileLineSnippetContext
LOW…s/unit/cartography/intel/cloudflare/test_cloudflare.py58 cloudflare_token="fake-token",CODE
LOW⚡…nit/cartography/intel/tenable/test_assets_transform.py277 assert tag["added_by"] == "admin@example.com"CODE
LOWtests/unit/cartography/intel/github/test_repos.py897 dependencies, "fake-token", "https://api.github.com/graphql"CODE
LOWtests/unit/cartography/intel/github/test_repos.py961 dependencies, "fake-token", "https://api.github.com/graphql"CODE
LOWtests/unit/cartography/intel/github/test_repos.py1012 dependencies, "fake-token", "https://api.github.com/graphql"CODE
LOWtests/unit/cartography/intel/github/test_repos.py1065 dependencies, "fake-token", "https://api.github.com/graphql"CODE
LOWtests/unit/cartography/intel/github/test_app_auth.py60 private_key="fake-key",CODE
LOWtests/unit/cartography/intel/github/test_app_auth.py91 private_key="fake-key",CODE
LOWtests/unit/cartography/intel/github/test_app_auth.py117 private_key="fake-key",CODE
LOWtests/unit/cartography/intel/github/test_app_auth.py136 private_key="fake-key",CODE
LOW⚡tests/unit/cartography/intel/github/test_app_auth.py170 "private_key": "fake-key",CODE
LOW⚡tests/unit/cartography/intel/github/test_app_auth.py182 "private_key": "fake-key",CODE
LOW⚡tests/unit/cartography/intel/zoom/test_users.py107 {"email": "user@example.com", "status": "active", "type": 1},CODE
LOW⚡tests/unit/cartography/intel/zoom/test_users.py110 {"id": "u1", "email": "user@example.com", "status": "active"},CODE
LOWtests/unit/cartography/intel/zoom/test_users.py145 "email": "user@example.com",CODE
LOWtests/unit/cartography/intel/zoom/test_users.py180 ("account-a:user:user-1", "user@example.com")CODE
LOWtests/unit/cartography/intel/salesforce/test_util.py57 username="user@example.com",CODE
LOWtests/unit/cartography/intel/aws/test_ses.py33 "IdentityName": "user@example.com",CODE
LOWtests/unit/cartography/intel/aws/test_ses.py69 "IdentityName": "user@example.com",CODE
LOW…ography/intel/aws/test_cloudtrail_management_events.py52 "userName": "admin@example.com",CODE
LOW…ography/intel/aws/test_cloudtrail_management_events.py54 "CloudTrailEvent": '{"userIdentity": {"type": "SAMLUser", "principalId": "SAML:admin@example.com", "userName": "admiCODE
LOW…ography/intel/aws/test_cloudtrail_management_events.py134 assert assumption["source_principal_arn"] == "admin@example.com"CODE
LOW…ation/cartography/intel/socketdev/test_dependencies.py44 "fake-token",CODE
LOW…ation/cartography/intel/socketdev/test_repositories.py66 "fake-token",CODE
LOW…ation/cartography/intel/socketdev/test_repositories.py161 "fake-token",CODE
LOW…ation/cartography/intel/socketdev/test_repositories.py194 "fake-token",CODE
LOW…integration/cartography/intel/socketdev/test_alerts.py44 "fake-token",CODE
LOW…/integration/cartography/intel/socketdev/test_fixes.py56 "fake-token",CODE
LOW⚡…ration/cartography/intel/crowdstrike/test_spotlight.py24 return_value=[["dummy-id"]],CODE
LOW⚡…ration/cartography/intel/crowdstrike/test_spotlight.py31 cartography.intel.crowdstrike.endpoints, "get_host_ids", return_value=[["dummy-id"]]CODE
LOW⚡…ration/cartography/intel/crowdstrike/test_spotlight.py148 return_value=[["dummy-id"]],CODE
LOW⚡…ration/cartography/intel/crowdstrike/test_spotlight.py155 cartography.intel.crowdstrike.endpoints, "get_host_ids", return_value=[["dummy-id"]]CODE
LOW…egration/cartography/intel/gitlab/test_ci_variables.py71 "fake-token",CODE
LOW…egration/cartography/intel/gitlab/test_ci_variables.py136 "fake-token",CODE
LOW…egration/cartography/intel/gitlab/test_ci_variables.py166 "fake-token",CODE
LOW…integration/cartography/intel/gitlab/test_ci_config.py136 "fake-token",CODE
LOW…integration/cartography/intel/gitlab/test_ci_config.py176 "fake-token",CODE
LOW…integration/cartography/intel/gitlab/test_ci_config.py251 "fake-token",CODE
LOW…integration/cartography/intel/gitlab/test_ci_config.py276 "fake-token",CODE
LOW⚡…on/cartography/intel/gitlab/test_container_registry.py156 "fake-token",CODE
LOW⚡…on/cartography/intel/gitlab/test_container_registry.py166 "fake-token",CODE
LOW⚡…on/cartography/intel/gitlab/test_container_registry.py176 "fake-token",CODE
LOW⚡…on/cartography/intel/gitlab/test_container_registry.py186 "fake-token",CODE
LOW…on/cartography/intel/gitlab/test_container_registry.py730 "fake-token",CODE
LOW…on/cartography/intel/gitlab/test_container_registry.py756 "fake-token",CODE
LOW…egration/cartography/intel/gitlab/test_environments.py68 "fake-token",CODE
LOW…s/integration/cartography/intel/gitlab/test_runners.py89 "fake-token",CODE
LOW…s/integration/cartography/intel/gitlab/test_runners.py162 "fake-token",CODE
LOW…sts/integration/cartography/intel/gitlab/test_users.py121 "fake-token",CODE
LOW…ation/cartography/intel/supabase/test_orchestration.py27 supabase_access_token="fake-token",CODE
LOWtests/integration/cartography/intel/jira/test_access.py96 assert check_nodes(neo4j_session, "User", ["email"]) == {("user@example.com",)}CODE
LOW⚡tests/integration/cartography/intel/jira/test_access.py153 ) == {("user@example.com", "user-1")}CODE
LOW⚡tests/integration/cartography/intel/jira/test_access.py157 assert dict(row) == {"source": "jira", "email": "user@example.com", "active": True}CODE
LOWtests/integration/cartography/intel/jira/test_access.py417 ("user-1", USERS[0]["displayName"], "user@example.com"),CODE
LOWtests/integration/cartography/intel/jira/test_access.py428 ) == {("user@example.com", "user-1")}CODE
LOW…s/integration/cartography/intel/github/test_commits.py66 "fake-token",CODE
LOW…artography/intel/scaleway/test_code_to_cloud_gitlab.py46 "fake-token",CODE
LOW…graphy/intel/scaleway/test_code_to_cloud_full_chain.py154 "fake-token",CODE
LOW…artography/intel/scaleway/test_code_to_cloud_github.py45 "fake-token",CODE
LOW…ts/integration/cartography/intel/zoom/test_settings.py74 [{"id": f"{account}:user:user-one", "email": "user@example.com"}],CODE
29 more matches not shown…
Over-Commented Block129 hits · 91 pts
SeverityFileLineSnippetContext
LOWtests/unit/rules/test_identity_uniqueness.py21# (rule_id, fact_id, rule, fact) for every fact in the registry.COMMENT
LOWtests/unit/rules/test_identity_uniqueness.py81 ("aws_remote_admin_ipv6", "a"): "group and members share one account",COMMENT
LOWtests/unit/cartography/intel/gitlab/test_util.py121 # runners.sync_gitlab_runners and supply_chain.get_dockerfiles_for_projects,COMMENT
LOWtests/unit/cartography/graph/test_model.py361 "CrowdstrikeFinding",COMMENT
LOWtests/unit/cartography/graph/test_model.py381 # merely left it, destroying the other workspaces' memberships, so the workspace link is aCOMMENT
LOWtests/unit/cartography/graph/test_model.py401 # An Airbyte user can belong to several organizations. Anchoring the identity toCOMMENT
LOW…egration/cartography/intel/kubernetes/test_clusters.py81 "AWSEKSCluster",COMMENT
LOW…egration/cartography/intel/kubernetes/test_clusters.py101# "UPDATE_TAG": TEST_UPDATE_TAG + 1,COMMENT
LOWtests/data/tailscale/acls.py21 // Comment this section out if you want to define specific restrictions.COMMENT
LOWtests/data/tailscale/acls.py61 // Test access rules every time they're saved.COMMENT
LOWtests/data/aws/ec2/load_balancers.py61# 'ListenerArn': 'string',COMMENT
LOWtests/data/aws/ec2/load_balancers.py81# 'ClientId': 'string',COMMENT
LOWtests/data/aws/ec2/load_balancers.py101# },COMMENT
LOWtests/data/aws/ec2/load_balancers.py161 ],COMMENT
LOWtests/data/aws/ec2/load_balancers.py181# 'Reason': 'string'COMMENT
LOWtests/data/aws/ec2/load_balancers.py201# {COMMENT
LOWdocs/conf.py1#COMMENT
LOWdocs/conf.py121# The full version, including alpha/beta/rc tags.COMMENT
LOWdocs/conf.py141COMMENT
LOWdocs/conf.py221COMMENT
LOWdocs/conf.py241COMMENT
LOWdocs/conf.py261# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.COMMENT
LOW.devcontainer/docker-compose.yml1version: '3.8'COMMENT
LOW.devcontainer/devcontainer.json21 // Features to add to the dev container. More info: https://containers.dev/features.COMMENT
LOW.github/workflows/publish-to-ghcr-and-pypi.yml121 # the workflow_dispatch.COMMENT
LOWcartography/intel/microsoft/entra/users.py21COMMENT
LOWcartography/intel/oci/__init__.py221 # neo4j_session,COMMENT
LOWcartography/intel/gcp/__init__.py221 # Track whether IAM sync succeeded for this project.COMMENT
LOWcartography/intel/gcp/__init__.py861 "Some relationships may not be created if the dependency data doesn't exist in Neo4j.",COMMENT
LOWcartography/intel/aws/s3.py801 # "Statement": [COMMENT
LOWcartography/intel/aws/s3.py881COMMENT
LOWcartography/intel/aws/s3.py961 """Parses the S3 default encryption object and returns a dict of the relevant data"""COMMENT
LOWcartography/intel/aws/s3.py1061 "object_ownership": bucket_ownership_controls.get("OwnershipControls", {})COMMENT
LOWcartography/intel/aws/s3.py1081 # },COMMENT
LOWcartography/intel/aws/ec2/vpc.py101 # {COMMENT
LOWcartography/models/ontology/constraints_whitelist.py241 KeycloakGroupToRoleRel,COMMENT
LOWcartography/models/ontology/constraints_whitelist.py261 # -> PermissionRole) now coexists on AWSLambda. This rel declares itsCOMMENT
LOWcartography/models/ontology/constraints_whitelist.py301 # for generic membership.COMMENT
LOWcartography/models/ontology/constraints_whitelist.py381 # USES_WAREHOUSE is a Snowflake service's data-plane dependency on theCOMMENT
LOWcartography/models/ontology/constraints.py81 # semantic.COMMENT
LOWcartography/models/ontology/constraints.py101 # is always frontend -> backend, never the reverse: the load balancer, domain orCOMMENT
LOWcartography/models/ontology/mapping/data/cves.py1from cartography.models.ontology.mapping.specs import OntologyFieldMappingCOMMENT
LOW…graphy/models/ontology/mapping/data/security_issues.py1from cartography.models.ontology.mapping.specs import OntologyFieldMappingCOMMENT
LOWcartography/models/aws/iam/account_summary.py81 # Implementation note:COMMENT
LOWcartography/models/modal/environment.py81@dataclass(frozen=True)COMMENT
LOWcartography/rules/spec/model.py241#COMMENT
LOWcartography/rules/data/rules/cis_google_workspace.py421# Missing datamodel: tenant-level Directory settings for external directory sharing modeCOMMENT
LOWcartography/rules/data/rules/cis_google_workspace.py441# Missing datamodel: Calendar policy settings at tenant or OU scope for external sharing on secondary calendarsCOMMENT
LOWcartography/rules/data/rules/cis_google_workspace.py461# Missing datamodel: Drive sharing settings controlling public or unlisted publicationCOMMENT
LOWcartography/rules/data/rules/cis_google_workspace.py481# Missing datamodel: Drive content-distribution settings for cross-org shared-drive distributionCOMMENT
LOWcartography/rules/data/rules/cis_google_workspace.py501# Missing datamodel: Drive shared-drive viewer and commenter restriction settingsCOMMENT
LOWcartography/rules/data/rules/cis_google_workspace.py521# Missing datamodel: Gmail mail-delegation policy settingsCOMMENT
LOWcartography/rules/data/rules/cis_google_workspace.py541# Missing datamodel: mail-enabled domain inventory plus DNS TXT records or normalized DMARC status per domainCOMMENT
LOWcartography/rules/data/rules/cis_google_workspace.py561# Missing datamodel: Gmail safety attachment-policy settingsCOMMENT
LOWcartography/rules/data/rules/cis_google_workspace.py581# Missing datamodel: Gmail spoofing-protection settings and configured action stateCOMMENT
LOWcartography/rules/data/rules/cis_google_workspace.py601# Missing datamodel: Gmail group-spoofing settings and configured action stateCOMMENT
LOWcartography/rules/data/rules/cis_google_workspace.py621# Missing datamodel: Gmail external-recipient warning settingsCOMMENT
LOWcartography/rules/data/rules/cis_google_workspace.py641# Missing datamodel: Gmail TLS compliance settings for inbound and outbound mailCOMMENT
LOWcartography/rules/data/rules/cis_google_workspace.py661# Missing datamodel: Google Chat external-spaces settings and allowlisted domainsCOMMENT
LOWcartography/rules/data/rules/cis_google_workspace.py681# Missing datamodel: Groups for Business creation-policy settings and external-member controlsCOMMENT
69 more matches not shown…
Structural Annotation Overuse41 hits · 74 pts
SeverityFileLineSnippetContext
LOW⚡…cartography/intel/aws/test_permission_relationships.py79 # Step 1: Create AWS accountCOMMENT
LOW⚡…cartography/intel/aws/test_permission_relationships.py82 # Step 2: Create S3 bucket resource (out of band to be quick and dirty)COMMENT
LOW…cartography/intel/aws/test_permission_relationships.py93 # Step 3: Create IAM roles and policies using sync_rolesCOMMENT
LOW.agents/skills/audit-frameworks/SKILL.md37### Step 1: inventoryCOMMENT
LOW.agents/skills/audit-frameworks/SKILL.md56### Step 2: TODO triageCOMMENT
LOW.agents/skills/audit-frameworks/SKILL.md71### Step 3: cross-provider to ontology candidatesCOMMENT
LOW.agents/skills/audit-frameworks/SKILL.md91### Step 4: duplicate detectionCOMMENT
LOW.agents/skills/audit-frameworks/SKILL.md111### Step 5: consolidation planCOMMENT
LOW.agents/skills/analysis-jobs/SKILL.md37### Step 1 - Pick global vs scopedCOMMENT
LOW.agents/skills/analysis-jobs/SKILL.md49### Step 2 - Author the typed jobCOMMENT
LOW.agents/skills/analysis-jobs/SKILL.md76### Step 3 - Write the queriesCOMMENT
LOW⚡.agents/skills/analysis-jobs/SKILL.md97### Step 4 - Available parametersCOMMENT
LOW⚡.agents/skills/analysis-jobs/SKILL.md105### Step 5 - Wire the call into your moduleCOMMENT
LOW.agents/skills/analysis-jobs/SKILL.md161### Step 6 - Test itCOMMENT
LOW.agents/skills/promote-ontology-relationship/SKILL.md47### Step 1: Identify the canonical pair and labelCOMMENT
LOW.agents/skills/promote-ontology-relationship/SKILL.md51### Step 2: Find which provider nodes carry each ontology labelCOMMENT
LOW.agents/skills/promote-ontology-relationship/SKILL.md67### Step 3: Find the direct edges to migrateCOMMENT
LOW.agents/skills/promote-ontology-relationship/SKILL.md80### Step 4: Add the parallel canonical edgeCOMMENT
LOW.agents/skills/promote-ontology-relationship/SKILL.md120### Step 5: Add the constraintCOMMENT
LOW.agents/skills/promote-ontology-relationship/SKILL.md131### Step 6: Run the guard, then whitelist remaining collisionsCOMMENT
LOW⚡.agents/skills/promote-ontology-relationship/SKILL.md143### Step 7: Update documentationCOMMENT
LOW⚡.agents/skills/promote-ontology-relationship/SKILL.md152### Step 8: Decouple internal queriesCOMMENT
LOW⚡.agents/skills/promote-ontology-relationship/SKILL.md160### Step 9: Tests and verificationCOMMENT
LOWcartography/intel/microsoft/entra/applications.py178 # Step 1: Sync applicationsCOMMENT
LOWcartography/intel/cve_metadata/__init__.py146 # Step 1: Get all CVE IDs from the graph — this is the authoritative listCOMMENT
LOWcartography/intel/cve_metadata/__init__.py176 # Step 2: Enrich and load one CVE year at a time to keep memory bounded.COMMENT
LOWcartography/intel/cve_metadata/__init__.py222 # Step 4: Cleanup stale CVEMetadata nodes from previous syncsCOMMENT
LOWcartography/intel/okta/users.py318 # Step 1: Get all users who have role assignments (bulk API). This endpointCOMMENT
LOWcartography/intel/okta/users.py341 # Step 2: For each user with roles, fetch their actual rolesCOMMENT
LOW⚡…y/rules/data/rules/policy_administration_privileges.py30 // Step 1 - Collect (action, resource) pairs for allowed statementsCOMMENT
LOW⚡…y/rules/data/rules/policy_administration_privileges.py37 // Step 2 - Gather all Deny statements for the same principalCOMMENT
LOW⚡…y/rules/data/rules/policy_administration_privileges.py41 // Step 3 - Filter out denied actions (handles *, iam:*, exact, and prefix wildcards)COMMENT
LOW⚡…y/rules/data/rules/policy_administration_privileges.py48 // Step 4 - Aggregate one row per (account, principal, policy). Substitute aCOMMENT
LOW⚡…les/data/rules/workload_identity_admin_capabilities.py24 // Step 1: Collect allowed actions that match IAM modification patternsCOMMENT
LOW⚡…les/data/rules/workload_identity_admin_capabilities.py32 // Step 2: Collect deny statements for the same roleCOMMENT
LOW⚡…les/data/rules/workload_identity_admin_capabilities.py37 // Step 3: Compute effective = allows minus deniesCOMMENT
LOW…les/data/rules/workload_identity_admin_capabilities.py52 // Step 4: Optional internet exposure contextCOMMENT
LOW⚡…les/data/rules/workload_identity_admin_capabilities.py117 // Step 1: Gather allowed actions that match IAM modification patternsCOMMENT
LOW⚡…les/data/rules/workload_identity_admin_capabilities.py125 // Step 2: Gather all deny actions from the same roleCOMMENT
LOW⚡…les/data/rules/workload_identity_admin_capabilities.py129 // Step 3: Subtract Deny actions from Allow actionsCOMMENT
LOW…les/data/rules/workload_identity_admin_capabilities.py144 // Step 4: Return only Lambdas with effective IAM modification capabilitiesCOMMENT
Excessive Try-Catch Wrapping59 hits · 57 pts
SeverityFileLineSnippetContext
LOWdemo/__main__.py107 except Exception:CODE
LOWtests/unit/cartography/intel/workday/test_people.py323 except Exception as e:CODE
LOWtests/unit/cartography/intel/workday/test_people.py341 except Exception as e:CODE
LOWtests/unit/cartography/intel/workday/test_people.py359 except Exception as e:CODE
LOWtests/unit/cartography/intel/trivy/test_scanner.py221 except Exception as e:CODE
LOW⚡tests/unit/cartography/data/jobs/test_syntax.py21 except Exception as e:CODE
LOW⚡tests/unit/cartography/data/jobs/test_syntax.py34 except Exception as e:CODE
LOW⚡tests/unit/cartography/data/jobs/test_syntax.py47 except Exception as e:CODE
LOWtests/integration/conftest.py27 except Exception as exc: # pragma: no coverCODE
LOWtests/integration/cartography/data/jobs/test_syntax.py34 except Exception as e:CODE
LOWtests/integration/cartography/data/jobs/test_syntax.py48 except Exception as e:CODE
LOWtests/integration/cartography/data/jobs/test_syntax.py70 except Exception as e:CODE
LOW…/skills/create-module/references/coding-conventions.md27except Exception:CODE
LOWcartography/sync.py326 except Exception:CODE
LOWcartography/util.py1054 except Exception as exc:CODE
LOWcartography/cli.py424 except Exception as e:CODE
LOWcartography/intel/analysis.py41 except Exception:CODE
LOWcartography/intel/supply_chain.py583 except Exception as e:CODE
LOWcartography/intel/supply_chain.py746 except Exception as e:CODE
LOWcartography/intel/gitlab/users.py411 except Exception:CODE
LOWcartography/intel/gitlab/users.py429 except Exception:CODE
LOWcartography/intel/gitlab/users.py494 except Exception:CODE
LOWcartography/intel/gitlab/container_images.py370 except Exception as e:CODE
LOWcartography/intel/gitlab/projects.py54 except Exception as e:CODE
LOWcartography/intel/cve/feed.py307 except Exception:STRING
LOWcartography/intel/azure/util/credentials.py72 except Exception as e:CODE
LOWcartography/intel/azure/util/credentials.py99 except Exception as e:CODE
LOWcartography/intel/microsoft/o365/license_details.py46 except Exception:CODE
LOWcartography/intel/microsoft/o365/license_details.py62 except Exception as e:CODE
LOWcartography/intel/microsoft/entra/service_principals.py50 except Exception:CODE
LOWcartography/intel/microsoft/entra/service_principals.py66 except Exception:CODE
LOWcartography/intel/microsoft/entra/users.py128 except Exception:CODE
LOWcartography/intel/microsoft/entra/applications.py56 except Exception:CODE
LOWcartography/intel/microsoft/entra/applications.py72 except Exception:CODE
LOWcartography/intel/microsoft/entra/groups.py223 except Exception:CODE
LOWcartography/intel/microsoft/entra/groups.py294 except Exception:CODE
LOWcartography/intel/microsoft/entra/ou.py48 except Exception:CODE
LOW…tography/intel/microsoft/entra/app_role_assignments.py164 except Exception:STRING
LOWcartography/intel/gcp/cloud_sql_user.py138 except Exception:CODE
LOWcartography/intel/gcp/iam.py554 except Exception as e:CODE
LOWcartography/intel/gcp/cloud_sql_database.py142 except Exception:CODE
LOWcartography/intel/gcp/vertex/models.py139 except Exception as e:CODE
LOWcartography/intel/spacelift/__init__.py52 except Exception as e:CODE
LOWcartography/intel/spacelift/ec2_ownership.py96 except Exception as e:CODE
LOWcartography/intel/cve_metadata/nvd.py197 except Exception:CODE
LOWcartography/intel/github/commits.py198 except Exception:STRING
LOWcartography/intel/aws/iam.py651 except Exception:CODE
LOWcartography/intel/aws/iam.py1925 except Exception:STRING
LOWcartography/intel/aws/__init__.py702 except Exception as e:CODE
LOWcartography/intel/aws/lambda_function.py158 except Exception as error:CODE
LOWcartography/intel/aws/lambda_function.py381 except Exception as error:CODE
LOWcartography/intel/aws/ecr_image_layers.py354 except Exception:CODE
LOWcartography/intel/aws/sns.py49 except Exception as e:CODE
LOWcartography/intel/kubernetes/util.py258 except Exception as err:CODE
LOWcartography/intel/kubernetes/__init__.py131 except Exception:CODE
LOWcartography/intel/trivy/scanner.py342 except Exception as e:CODE
LOWcartography/intel/trivy/scanner.py378 except Exception as exc:CODE
LOWcartography/intel/trivy/scanner.py450 except Exception as e:CODE
LOWcartography/graph/job.py242 except Exception as e:CODE
Empty Error Handlers9 hits · 45 pts
SeverityFileLineSnippetContext
HIGH…sts/unit/cartography/intel/gitlab/test_ci_variables.py118except requests.exceptions.HTTPError:CODE
HIGH…sts/unit/cartography/intel/gitlab/test_environments.py133except requests.exceptions.HTTPError:CODE
HIGHtests/unit/cartography/intel/gitlab/test_runners.py94except requests.exceptions.HTTPError:CODE
HIGHtests/unit/cartography/intel/gitlab/test_runners.py116except requests.exceptions.HTTPError:CODE
HIGHcartography/intel/gitlab/util.py310except ValueError:CODE
HIGHcartography/intel/gitlab/util.py321except ValueError:CODE
HIGHcartography/intel/gitlab/util.py350except ValueError:CODE
HIGHcartography/intel/github/util.py119except ValueError:CODE
HIGHcartography/intel/kubernetes/__init__.py98except ValueError:CODE
Unused Imports45 hits · 44 pts
SeverityFileLineSnippetContext
LOWtests/unit/cartography/intel/okta/test_common.py12CODE
LOWcartography/cli.py16CODE
LOWcartography/intel/container_arch.py1CODE
LOWcartography/intel/container_image_layers.py1CODE
LOWcartography/intel/supply_chain.py1CODE
LOWcartography/intel/container_image.py1CODE
LOWcartography/intel/semgrep/ossfindings.py1CODE
LOWcartography/intel/gcp/backendservice.py4CODE
LOWcartography/intel/gcp/ssl_policy.py3CODE
LOWcartography/intel/gcp/instancegroup.py4CODE
LOWcartography/intel/gcp/target_https_proxy.py3CODE
LOWcartography/intel/gcp/target_ssl_proxy.py3CODE
LOWcartography/intel/gcp/cloud_armor.py3CODE
LOWcartography/intel/gcp/compute.py3CODE
LOWcartography/intel/common/report_reader_builder.py14CODE
LOWcartography/intel/github/packages.py19CODE
LOWcartography/intel/okta/authenticators.py1CODE
LOWcartography/intel/okta/origins.py1CODE
LOWcartography/intel/okta/users.py2CODE
LOWcartography/intel/okta/factors.py1CODE
LOWcartography/intel/okta/organization.py1CODE
LOWcartography/intel/okta/applications.py1CODE
LOWcartography/intel/okta/__init__.py1CODE
LOWcartography/intel/okta/groups.py1CODE
LOWcartography/intel/okta/common.py1CODE
LOWcartography/intel/okta/log_streams.py1CODE
LOWcartography/intel/okta/devices.py1CODE
LOWcartography/intel/okta/policies.py1CODE
LOWcartography/intel/okta/awssaml.py1CODE
LOWcartography/intel/okta/network_zones.py1CODE
LOWcartography/intel/okta/api_tokens.py1CODE
LOWcartography/intel/entra/__init__.py2CODE
LOWcartography/intel/zizmor/__init__.py1CODE
LOWcartography/intel/ubuntu/util.py1CODE
LOWcartography/graph/analysis.py1CODE
LOWcartography/graph/analysisbuilder.py3CODE
LOWcartography/models/schema_docs.py1CODE
LOWcartography/models/introspection.py1CODE
LOWcartography/models/aws_tagging.py1CODE
LOWcartography/models/aibom/__init__.py1CODE
LOWcartography/models/aibom/__init__.py2CODE
LOWcartography/models/syft/__init__.py1CODE
LOWcartography/models/orca/__init__.py1CODE
LOWcartography/models/orca/__init__.py2CODE
LOWcartography/models/orca/__init__.py3CODE
Verbosity Indicators17 hits · 32 pts
SeverityFileLineSnippetContext
LOW⚡…cartography/intel/aws/test_permission_relationships.py79 # Step 1: Create AWS accountCOMMENT
LOW⚡…cartography/intel/aws/test_permission_relationships.py82 # Step 2: Create S3 bucket resource (out of band to be quick and dirty)COMMENT
LOW…cartography/intel/aws/test_permission_relationships.py93 # Step 3: Create IAM roles and policies using sync_rolesCOMMENT
LOWcartography/intel/microsoft/entra/applications.py178 # Step 1: Sync applicationsCOMMENT
LOWcartography/intel/cve_metadata/__init__.py146 # Step 1: Get all CVE IDs from the graph — this is the authoritative listCOMMENT
LOWcartography/intel/cve_metadata/__init__.py176 # Step 2: Enrich and load one CVE year at a time to keep memory bounded.COMMENT
LOWcartography/intel/cve_metadata/__init__.py222 # Step 4: Cleanup stale CVEMetadata nodes from previous syncsCOMMENT
LOWcartography/intel/okta/users.py318 # Step 1: Get all users who have role assignments (bulk API). This endpointCOMMENT
LOWcartography/intel/okta/users.py341 # Step 2: For each user with roles, fetch their actual rolesCOMMENT
LOW⚡…les/data/rules/workload_identity_admin_capabilities.py24 // Step 1: Collect allowed actions that match IAM modification patternsCOMMENT
LOW⚡…les/data/rules/workload_identity_admin_capabilities.py32 // Step 2: Collect deny statements for the same roleCOMMENT
LOW⚡…les/data/rules/workload_identity_admin_capabilities.py37 // Step 3: Compute effective = allows minus deniesCOMMENT
LOW…les/data/rules/workload_identity_admin_capabilities.py52 // Step 4: Optional internet exposure contextCOMMENT
LOW⚡…les/data/rules/workload_identity_admin_capabilities.py117 // Step 1: Gather allowed actions that match IAM modification patternsCOMMENT
LOW⚡…les/data/rules/workload_identity_admin_capabilities.py125 // Step 2: Gather all deny actions from the same roleCOMMENT
LOW⚡…les/data/rules/workload_identity_admin_capabilities.py129 // Step 3: Subtract Deny actions from Allow actionsCOMMENT
LOW…les/data/rules/workload_identity_admin_capabilities.py144 // Step 4: Return only Lambdas with effective IAM modification capabilitiesCOMMENT
Redundant / Tautological Comments18 hits · 24 pts
SeverityFileLineSnippetContext
LOWdemo/__main__.py47 # Check if the database is emptyCOMMENT
LOW…tography/intel/microsoft/entra/app_role_assignments.py141 # Check if we have more pages to fetchSTRING
LOWcartography/intel/gcp/vertex/instances.py103 # Check if this location matches any of our supported prefixesCOMMENT
LOWcartography/intel/ontology/utils.py111 # Check if ontology nodes are used in mappingCOMMENT
LOWcartography/intel/github/workflow_parser.py114 # Check if pinned to a SHACOMMENT
LOWcartography/intel/github/util.py751 # Check if this is a search endpoint (stricter limits)COMMENT
LOWcartography/intel/github/supply_chain.py222 # Check if there are more pagesSTRING
LOWcartography/intel/github/repos.py2021 # Set spec to `None` instead of empty string so that the Neo4j driver will leave the library.specifier fieldCOMMENT
LOWcartography/intel/aws/iam.py768 # Add this to list of federated nodes to createSTRING
LOWcartography/intel/aws/ecr.py166 # Check if this is a manifest listCOMMENT
LOWcartography/intel/aws/ecr.py258 # Check if this is a manifest list with imagesCOMMENT
LOWcartography/intel/aws/ecr_image_layers.py688 # Check if this is a manifest listCOMMENT
LOWcartography/intel/aws/ecr_image_layers.py1086 # Check if this is an attestation manifestCOMMENT
LOWcartography/intel/workos/util.py38 # Check if there's another pageCOMMENT
LOWcartography/intel/kubernetes/util.py417 # Check if items exists on the responseCOMMENT
LOWcartography/intel/kubernetes/util.py427 # Check if metadata exists on the responseCOMMENT
LOWcartography/intel/keycloak/clients.py68 # Check if the client has a service account userCOMMENT
LOWcartography/rules/runners.py376 # Output resultsCOMMENT
Modern AI Meta-Vocabulary8 hits · 20 pts
SeverityFileLineSnippetContext
MEDIUM⚡…egration/cartography/intel/aws/bedrock/test_bedrock.py323 # Sync foundation models first (KB needs embedding model)COMMENT
MEDIUM⚡…egration/cartography/intel/aws/bedrock/test_bedrock.py406 # Sync guardrails (target nodes must exist)COMMENT
MEDIUMcartography/intel/aws/bedrock/__init__.py115 # Sync guardrailsCOMMENT
MEDIUMcartography/intel/aws/bedrock/__init__.py138 # Sync agents (after KBs, foundation models, custom models, and guardrails)COMMENT
MEDIUMcartography/intel/aws/bedrock/guardrails.py127 # Fetch guardrails from AWSCOMMENT
MEDIUMcartography/intel/aws/bedrock/knowledge_bases.py152 # Extract embedding model ARN - it's already in the right formatCOMMENT
MEDIUMcartography/models/netlify/site.py135 # Deploy guardrails.COMMENT
MEDIUMcartography/models/aws/bedrock/guardrail.py92 Representation of an AWS [Bedrock Guardrail](https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails.html). STRING
AI Slop Vocabulary7 hits · 9 pts
SeverityFileLineSnippetContext
LOWtests/unit/cartography/intel/kubernetes/test_eks.py96 # The usernames are still ingested; the null groups simply add nothing.STRING
MEDIUMtests/data/aws/lambda_function.py454# Mock functions for comprehensive sync testCOMMENT
MEDIUMcartography/intel/socketdev/dependencies.py79 # Build a PURL to leverage full normalization including namespaceCOMMENT
LOWcartography/intel/databricks/grants.py251 # decide; non-matching rows simply create no edge.STRING
LOWcartography/intel/databricks/permissions.py301 # decide; non-matching rows simply create no edge.STRING
MEDIUMcartography/models/modal/domain.py136 """Represents a DNS record Modal asks you to create in order to validate a custom domain. Deliberately **not** labelSTRING
MEDIUM⚡cartography/rules/data/rules/cis_google_workspace.py636# Missing datamodel: Gmail compliance settings for comprehensive mail storageSTRING
AI Structural Patterns6 hits · 5 pts
SeverityFileLineSnippetContext
LOW…unit/cartography/intel/gitlab/test_container_images.py14CODE
LOWtests/unit/cartography/intel/github/test_repos.py35CODE
LOWcartography/config.py562CODE
LOWcartography/cli.py457CODE
LOWcartography/intel/github/util.py228CODE
LOWcartography/rules/cli.py328CODE
Magic Placeholder Names1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHdocs/root/modules/jumpcloud/config.md18export JUMPCLOUD_API_KEY="your-api-key"CODE
Dead Code2 hits · 4 pts
SeverityFileLineSnippetContext
MEDIUM…graphy/intel/microsoft/entra/test_error_propagation.py163CODE
MEDIUM…cartography/intel/aws/inspector/test_inspector_sync.py299CODE