Repository Analysis

cartography-cncf/cartography

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

23.0 Moderate AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of cartography-cncf/cartography, a Python project with 4,030 GitHub stars. SynthScan v2.0 examined 605,597 lines of code across 4055 source files, recording 8030 pattern matches distributed across 21 syntactic categories. The overall adjusted score of 23.0 places this repository in the Moderate AI signal band.

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

23.0
Adjusted Score
23.0
Raw Score
100%
Time Factor
2026-08-28
Last Push
4.0K
Stars
Python
Language
605.6K
Lines of Code
4.1K
Files
8.0K
Pattern Hits
2026-08-29
Scan Date
0.19
HC Hit Rate

What These Metrics Mean

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

Score History

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

Severity Breakdown

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

CRITICAL 328HIGH 424MEDIUM 1228LOW 6050

Directory Score Breakdown

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

Pattern Findings

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

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

Hyper-Verbose Identifiers4746 hits · 4635 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
LOWtests/unit/rules/test_model.py213def test_fact_accepts_a_coherent_declaration():CODE
LOWtests/unit/rules/test_model.py218def test_fact_rejects_reserved_finding_field_aliases():CODE
LOWtests/unit/rules/test_model.py226def test_fact_allows_reserved_name_as_intermediate_with_alias():CODE
LOWtests/unit/rules/test_model.py236def test_fact_rejects_asset_label_not_bound_by_query():CODE
LOWtests/unit/rules/test_model.py242def test_fact_rejects_asset_id_field_only_bound_in_intermediate_with():CODE
LOWtests/unit/rules/test_model.py249def test_fact_rejects_identity_field_not_returned_by_query():CODE
LOWtests/unit/rules/test_model.py255def test_fact_rejects_asset_id_field_from_a_different_node():CODE
LOWtests/unit/rules/test_model.py262def test_fact_ignores_return_inside_a_call_subquery():CODE
LOWtests/unit/rules/test_model.py271def test_returned_aliases_reads_only_the_final_projection():CODE
LOWtests/unit/rules/test_model.py342def test_fanout_risks_measures_multiplicity_against_the_identity_not_the_anchor():CODE
LOWtests/unit/rules/test_model.py355def test_fanout_risks_flags_a_variable_that_only_duplicates_rows():CODE
LOWtests/unit/rules/test_model.py14def test_framework_normalizes_to_lowercase():CODE
LOWtests/unit/rules/test_model.py32def test_framework_control_title_preserves_display_casing_and_is_not_filter_key():CODE
LOWtests/unit/rules/test_model.py49def test_framework_optional_fields():CODE
LOWtests/unit/rules/test_model.py83def test_framework_matches_case_insensitive():CODE
LOWtests/unit/rules/test_model.py100def test_framework_matches_partial_filter():CODE
LOWtests/unit/rules/test_model.py121def test_framework_matches_with_optional_fields():CODE
LOWtests/unit/rules/test_model.py146def test_all_module_keys_in_mapping_except_cross_cloud():CODE
LOWtests/unit/rules/test_model.py172def test_cross_cloud_not_in_mapping():CODE
LOWtests/unit/rules/test_model.py181def test_mapping_values_exists():CODE
LOWtests/unit/rules/test_model.py395def test_fanout_risks_accepts_an_aggregated_fan_out():CODE
LOWtests/unit/rules/test_model.py328def test_fanout_risks_flags_a_projected_column_the_identity_omits():STRING
LOWtests/unit/rules/test_model.py337def test_fanout_risks_accepts_the_identity_that_includes_the_fan_out_column():STRING
LOWtests/unit/rules/test_model.py365def test_fanout_risks_accepts_return_distinct_for_identical_rows():STRING
LOWtests/unit/rules/test_model.py375def test_fanout_risks_accepts_an_aggregate_in_the_final_projection():STRING
LOWtests/unit/rules/test_model.py389def test_fanout_risks_does_not_let_return_distinct_excuse_a_projected_column():STRING
LOWtests/unit/rules/test_model.py406def test_fanout_risks_ignores_a_variable_bound_only_in_a_subquery():STRING
LOWtests/unit/rules/test_model.py416def test_fanout_risks_accepts_an_optional_match_anti_join():STRING
LOWtests/unit/rules/test_model.py428def test_fanout_risks_survives_a_comment_marker_inside_a_string_literal():STRING
LOWtests/unit/rules/test_model.py439def test_fanout_risks_resolves_an_identity_field_through_an_intermediate_with():STRING
LOWtests/unit/rules/test_asset_anchor.py30def test_asset_label_non_empty(rule_id, fact_id, rule, fact):CODE
LOWtests/unit/rules/test_asset_anchor.py48def test_asset_id_field_exists_on_output_model(rule_id, fact_id, rule, fact):CODE
LOWtests/unit/rules/test_asset_anchor.py63def test_asset_id_field_returned_by_query(rule_id, fact_id, rule, fact):CODE
LOWtests/unit/rules/test_asset_anchor.py72def test_asset_anchor_surfaced_in_serialized_output():CODE
LOWtests/unit/rules/test_azure_rbac_wildcards.py68def test_contributor_role_does_not_grant_role_assignment_write() -> None:CODE
LOWtests/unit/rules/test_azure_rbac_wildcards.py74def test_contributor_role_does_not_grant_role_definitions_write() -> None:CODE
LOWtests/unit/rules/test_azure_rbac_wildcards.py79def test_contributor_role_grants_managed_identity_assign() -> None:CODE
LOWtests/unit/rules/test_azure_rbac_wildcards.py86def test_managed_identity_operator_role_grants_managed_identity_assign() -> None:CODE
LOWtests/unit/rules/test_azure_rbac_wildcards.py102def test_managed_identity_operator_does_not_grant_role_assignment_write() -> None:CODE
LOWtests/unit/rules/test_azure_rbac_wildcards.py115def test_owner_role_grants_role_assignment_write() -> None:CODE
LOWtests/unit/rules/test_azure_rbac_wildcards.py121def test_user_access_administrator_grants_role_assignment_write() -> None:CODE
LOWtests/unit/rules/test_azure_rbac_wildcards.py127def test_case_insensitive_match() -> None:CODE
4686 more matches not shown…
Hallucination Indicators328 hits · 3868 pts
SeverityFileLineSnippetContext
CRITICALdemo/seeds/scaleway.py38 data = cartography.intel.scaleway.iam.users.transform_users(CODE
CRITICALdemo/seeds/scaleway.py41 cartography.intel.scaleway.iam.users.load_users(CODE
CRITICALdemo/seeds/scaleway.py46 data = cartography.intel.scaleway.iam.applications.transform_applications(CODE
CRITICALdemo/seeds/scaleway.py49 cartography.intel.scaleway.iam.applications.load_applications(CODE
CRITICALdemo/seeds/scaleway.py54 data = cartography.intel.scaleway.iam.groups.transform_groups(CODE
CRITICALdemo/seeds/scaleway.py57 cartography.intel.scaleway.iam.groups.load_groups(CODE
CRITICALdemo/seeds/scaleway.py62 data = cartography.intel.scaleway.iam.apikeys.transform_apikeys(CODE
CRITICALdemo/seeds/scaleway.py65 cartography.intel.scaleway.iam.apikeys.load_apikeys(CODE
CRITICALdemo/seeds/scaleway.py70 data = cartography.intel.scaleway.storage.volumes.transform_volumes(CODE
CRITICALdemo/seeds/scaleway.py73 cartography.intel.scaleway.storage.volumes.load_volumes(CODE
CRITICALdemo/seeds/scaleway.py78 data = cartography.intel.scaleway.storage.snapshots.transform_snapshots(CODE
CRITICALdemo/seeds/scaleway.py81 cartography.intel.scaleway.storage.snapshots.load_snapshots(CODE
CRITICALdemo/seeds/scaleway.py86 data = cartography.intel.scaleway.instances.instances.transform_instances(CODE
CRITICALdemo/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/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.py362 await cartography.intel.microsoft.entra.users.sync_entra_users(CODE
CRITICAL…rtography/intel/azure/test_permission_relationships.py371 await cartography.intel.microsoft.entra.groups.sync_entra_groups(CODE
CRITICAL…rtography/intel/azure/test_permission_relationships.py380 await cartography.intel.microsoft.entra.service_principals.sync_service_principals(CODE
CRITICALtests/integration/cartography/intel/azure/test_rbac.py16from azure.core.exceptions import HttpResponseErrorCODE
CRITICALtests/integration/cartography/intel/azure/test_rbac.py189 await cartography.intel.microsoft.entra.users.sync_entra_users(CODE
CRITICALtests/integration/cartography/intel/azure/test_rbac.py199 await cartography.intel.microsoft.entra.groups.sync_entra_groups(CODE
CRITICALtests/integration/cartography/intel/azure/test_rbac.py209 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…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
CRITICAL…s/integration/cartography/intel/railway/test_tokens.py243 cartography.intel.railway.iam.tokens.sync(CODE
CRITICAL…s/integration/cartography/intel/railway/test_tokens.py258 cartography.intel.railway.iam.tokens.sync(CODE
CRITICAL…s/integration/cartography/intel/railway/test_tokens.py276 cartography.intel.railway.iam.tokens.get_api_tokens(CODE
268 more matches not shown…
Decorative Section Separators1152 hits · 1776 pts
SeverityFileLineSnippetContext
MEDIUMtests/unit/cartography/intel/test_dockerfile_parser.py15# =============================================================================COMMENT
MEDIUMtests/unit/cartography/intel/test_dockerfile_parser.py17# =============================================================================COMMENT
MEDIUMtests/unit/cartography/intel/test_dockerfile_parser.py71# =============================================================================COMMENT
MEDIUMtests/unit/cartography/intel/test_dockerfile_parser.py73# =============================================================================COMMENT
MEDIUMtests/unit/cartography/intel/test_dockerfile_parser.py236# =============================================================================STRING
MEDIUMtests/unit/cartography/intel/test_dockerfile_parser.py238# =============================================================================STRING
MEDIUMtests/unit/cartography/intel/test_dockerfile_parser.py275# =============================================================================STRING
MEDIUMtests/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
MEDIUMtests/unit/cartography/intel/gcp/test_util.py623 # ------------------------------------------------------------------COMMENT
MEDIUMtests/unit/cartography/intel/gcp/test_util.py625 # ------------------------------------------------------------------COMMENT
MEDIUMtests/unit/cartography/intel/gcp/test_util.py674 # ------------------------------------------------------------------COMMENT
MEDIUMtests/unit/cartography/intel/gcp/test_util.py676 # ------------------------------------------------------------------COMMENT
MEDIUMtests/unit/cartography/intel/gcp/test_util.py698 # ------------------------------------------------------------------COMMENT
MEDIUMtests/unit/cartography/intel/gcp/test_util.py700 # ------------------------------------------------------------------COMMENT
MEDIUMtests/unit/cartography/intel/gcp/test_util.py709 # ------------------------------------------------------------------COMMENT
MEDIUMtests/unit/cartography/intel/gcp/test_util.py711 # ------------------------------------------------------------------COMMENT
MEDIUMtests/unit/cartography/intel/gcp/test_util.py743 # ------------------------------------------------------------------COMMENT
MEDIUMtests/unit/cartography/intel/gcp/test_util.py745 # ------------------------------------------------------------------COMMENT
MEDIUMtests/unit/cartography/intel/gcp/test_util.py791 # ------------------------------------------------------------------COMMENT
MEDIUMtests/unit/cartography/intel/gcp/test_util.py793 # ------------------------------------------------------------------COMMENT
MEDIUMtests/unit/cartography/intel/gcp/test_util.py802 # ------------------------------------------------------------------COMMENT
MEDIUMtests/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.py48# ---------------------------------------------------------------------------COMMENT
MEDIUM…raphy/intel/gcp/test_artifact_registry_supply_chain.py50# ---------------------------------------------------------------------------COMMENT
MEDIUM…raphy/intel/gcp/test_artifact_registry_supply_chain.py73# ---------------------------------------------------------------------------COMMENT
MEDIUM…raphy/intel/gcp/test_artifact_registry_supply_chain.py75# ---------------------------------------------------------------------------COMMENT
MEDIUM…raphy/intel/gcp/test_artifact_registry_supply_chain.py406# ---------------------------------------------------------------------------COMMENT
MEDIUM…raphy/intel/gcp/test_artifact_registry_supply_chain.py408# ---------------------------------------------------------------------------COMMENT
MEDIUM…raphy/intel/gcp/test_artifact_registry_supply_chain.py861# ---------------------------------------------------------------------------COMMENT
MEDIUM…raphy/intel/gcp/test_artifact_registry_supply_chain.py863# ---------------------------------------------------------------------------COMMENT
MEDIUM…raphy/intel/gcp/test_artifact_registry_supply_chain.py492# ---------------------------------------------------------------------------COMMENT
MEDIUM…raphy/intel/gcp/test_artifact_registry_supply_chain.py494# ---------------------------------------------------------------------------COMMENT
MEDIUM…raphy/intel/gcp/test_artifact_registry_supply_chain.py1311# ---------------------------------------------------------------------------COMMENT
MEDIUM…raphy/intel/gcp/test_artifact_registry_supply_chain.py1313# ---------------------------------------------------------------------------COMMENT
1092 more matches not shown…
Cross-File Repetition308 hits · 1540 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.py0test that okta user admin roles are synced correctly to the graph. this follows the recommended pattern: mock get() funcSTRING
HIGH…sts/integration/cartography/intel/okta/test_factors.py0test that okta user admin roles are synced correctly to the graph. this follows the recommended pattern: mock get() funcSTRING
HIGH…ntegration/cartography/intel/okta/test_applications.py0test that okta user admin roles are synced correctly to the graph. this follows the recommended pattern: mock get() funcSTRING
HIGHtests/integration/cartography/intel/okta/test_users.py0test that okta user admin roles are synced correctly to the graph. this follows the recommended pattern: mock get() funcSTRING
HIGHtests/integration/cartography/intel/okta/test_roles.py0test that okta user admin roles are synced correctly to the graph. this follows the recommended pattern: mock get() funcSTRING
HIGH…sts/integration/cartography/intel/okta/test_origins.py0merge (o:oktaorganization{id: $org_id}) on create set o.firstseen = timestamp() set o.lastupdated = $update_tag, o :tenaSTRING
HIGHtests/integration/cartography/intel/okta/test_group.py0merge (o:oktaorganization{id: $org_id}) on create set o.firstseen = timestamp() set o.lastupdated = $update_tag, o :tenaSTRING
HIGH…ntegration/cartography/intel/okta/test_applications.py0merge (o:oktaorganization{id: $org_id}) on create set o.firstseen = timestamp() set o.lastupdated = $update_tag, o :tenaSTRING
HIGHtests/integration/cartography/intel/okta/test_users.py0merge (o:oktaorganization{id: $org_id}) on create set o.firstseen = timestamp() set o.lastupdated = $update_tag, o :tenaSTRING
HIGH…sts/integration/cartography/intel/okta/test_origins.py0merge (o:oktaorganization{id: $org_id}) set o.lastupdated = $update_tag, o :tenantSTRING
HIGH…sts/integration/cartography/intel/okta/test_factors.py0merge (o:oktaorganization{id: $org_id}) set o.lastupdated = $update_tag, o :tenantSTRING
HIGH…ntegration/cartography/intel/okta/test_applications.py0merge (o:oktaorganization{id: $org_id}) set o.lastupdated = $update_tag, o :tenantSTRING
HIGHtests/integration/cartography/intel/okta/test_users.py0merge (o:oktaorganization{id: $org_id}) set o.lastupdated = $update_tag, o :tenantSTRING
HIGHtests/integration/cartography/intel/okta/test_roles.py0merge (o:oktaorganization{id: $org_id}) set o.lastupdated = $update_tag, o :tenantSTRING
HIGHtests/integration/cartography/intel/aws/test_rds.py0merge (k:awskmskey{id: $key_id}) set k.arn = $key_arn, k.lastupdated = $update_tagSTRING
248 more matches not shown…
Modern Structural Boilerplate739 hits · 741 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.py43logger = 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.py12logger = 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.py12logger = 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
679 more matches not shown…
Docstring Block Structure68 hits · 340 pts
SeverityFileLineSnippetContext
HIGHcartography/sync.py277 Execute all configured stages in the sync task sequentially. This method is the main execution entry pSTRING
HIGHcartography/sync.py437 Execute a sync task with comprehensive configuration and error handling. This function serves as a high-level STRING
HIGHcartography/sync.py592 Parse and validate user-selected modules from comma-separated string. This function takes a comma-separated stSTRING
HIGHcartography/sync.py638 Build a custom sync with user-specified modules. This function creates a Sync instance configured only with thSTRING
HIGHcartography/util.py84 Execute an analysis job to enrich existing graph data. This function is designed for use with the cartography.STRING
HIGHcartography/util.py152 Conditionally run an analysis job based on resource dependency requirements. This function checks if all requiSTRING
HIGHcartography/util.py245 Execute a scoped analysis job on a specific sub-resource. This function runs analysis queries that are scoped STRING
HIGHcartography/util.py303 Execute a cleanup job to remove stale data from the graph. .. deprecated:: This function is deprecatedSTRING
HIGHcartography/util.py432 Load a binary resource from a Python package. This function provides a convenient way to load binary files (liSTRING
HIGHcartography/util.py467 Decorator to measure and report function execution time via StatsD. This decorator automatically measures the STRING
HIGHcartography/util.py526 Helper function for handling AWS boto3 API pagination with progress logging. This function provides a convenieSTRING
HIGHcartography/util.py653 Decorator to handle AWS regional access errors and opt-in region limitations. This decorator wraps AWS API funSTRING
HIGHcartography/util.py769 Add exponential backoff retry logic to any function. This decorator function wraps any callable with retry logSTRING
HIGHcartography/util.py856 Convert a dictionary date value to Unix epoch timestamp. .. deprecated:: This method is deprecated. NeSTRING
HIGHcartography/util.py940 Determine if an exception is caused by API rate limiting or throttling. This function checks whether a given eSTRING
HIGHcartography/util.py1002 Execute a synchronous function asynchronously in a threadpool with throttling protection. This function wraps STRING
HIGHcartography/util.py1061 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.py68 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 Confusion47 hits · 249 pts
SeverityFileLineSnippetContext
HIGH…ts/unit/cartography/intel/aws/test_ecr_image_layers.py1070 "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
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
HIGHtests/data/okta/application.py11 "passwordChanged": null,CODE
HIGHtests/data/okta/application.py18 "secondEmail": null,CODE
HIGHtests/data/okta/application.py44 "passwordChanged": null,CODE
HIGHtests/data/okta/application.py51 "secondEmail": null,CODE
HIGHtests/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
HIGHcartography/intel/aws/organizations.py565 SET account.arn = null,STRING
HIGHcartography/intel/aws/organizations.py566 account.email = null,STRING
HIGHcartography/intel/aws/organizations.py567 account.state = null,STRING
HIGHcartography/intel/aws/organizations.py568 account.status = null,STRING
HIGHcartography/intel/aws/organizations.py569 account.joined_method = null,STRING
HIGHcartography/intel/aws/organizations.py570 account.joined_timestamp = null,STRING
HIGHcartography/intel/aws/organizations.py571 account.org_id = null,STRING
HIGHcartography/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
HIGHcartography/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 Nesting194 hits · 184 pts
SeverityFileLineSnippetContext
LOW…it/cartography/intel/ontology/test_ontology_mapping.py186CODE
LOW…it/cartography/intel/ontology/test_ontology_mapping.py232CODE
LOW…it/cartography/intel/ontology/test_ontology_mapping.py270CODE
LOW…it/cartography/intel/ontology/test_ontology_mapping.py297CODE
LOW…it/cartography/intel/ontology/test_ontology_mapping.py309CODE
LOW…it/cartography/intel/ontology/test_ontology_mapping.py332CODE
LOW…it/cartography/intel/ontology/test_ontology_mapping.py368CODE
LOW…it/cartography/intel/ontology/test_ontology_mapping.py404CODE
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.py122CODE
LOW…tegration/cartography/intel/github/test_dockerfiles.py128CODE
LOWtests/integration/cartography/intel/aws/test_init.py1289CODE
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.py176CODE
LOW…rtography/intel/gitlab/container_image_attestations.py67CODE
LOWcartography/intel/gitlab/supply_chain.py265CODE
LOWcartography/intel/gitlab/supply_chain.py364CODE
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/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.py42CODE
LOWcartography/intel/microsoft/entra/utils.py71CODE
LOWcartography/intel/microsoft/entra/ou.py22CODE
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
LOWcartography/intel/snowflake/account_usage.py112CODE
LOWcartography/intel/snowflake/grants.py269CODE
LOWcartography/intel/snowflake/names.py21CODE
LOWcartography/intel/snowflake/names.py233CODE
LOWcartography/intel/gcp/secretsmanager.py28CODE
134 more matches not shown…
Self-Referential Comments63 hits · 184 pts
SeverityFileLineSnippetContext
MEDIUMdemo/seeds/slack.py46 # Create a mock Slack clientCOMMENT
MEDIUMtests/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.py32 # 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.py39 # 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.py42 # Create the OktaOrganization node first (normally done by organization.create_okta_organization)COMMENT
MEDIUMtests/integration/cartography/intel/okta/test_group.py142 # Create a fresh group via syncCOMMENT
MEDIUM…ntegration/cartography/intel/okta/test_applications.py50 # Create the OktaOrganization node firstCOMMENT
MEDIUMtests/integration/cartography/intel/okta/test_users.py48 # 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.py95 # Create a mock boto3 session for the testCOMMENT
MEDIUMtests/integration/cartography/intel/aws/iam/test_iam.py129 # Create a test principal that the sync function will findCOMMENT
MEDIUM…on/cartography/intel/aws/ec2/test_load_balancer_v2s.py325 # 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
MEDIUMcartography/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.py1296 # Create a unique ID for a GitHubBranch node representing the default branch of this repo object.STRING
MEDIUMcartography/intel/github/repos.py1303 # Create a git:// URL from the given SSH URL, if it exists.STRING
MEDIUMcartography/intel/aws/apigateway.py236 # Create a mapping of api_id to policy data for easier lookupCOMMENT
3 more matches not shown…
Over-Commented Block124 hits · 86 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/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 # A Railway user can belong to several workspaces, and project members need not beCOMMENT
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.py21# NOTE:COMMENT
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.py781def parse_policy(bucket: str, policyDict: Optional[Dict]) -> Optional[Dict]:COMMENT
LOWcartography/intel/aws/s3.py801 # "Effect": "Deny",COMMENT
LOWcartography/intel/aws/s3.py881 # ACL JSON looks likeCOMMENT
LOWcartography/intel/aws/s3.py1061 # Logging status object JSON looks like:COMMENT
LOWcartography/intel/aws/ec2/vpc.py101 # {COMMENT
LOWcartography/models/ontology/constraints_whitelist.py241 # direction. Whitelisted so the constraint does not flag it.COMMENT
LOWcartography/models/ontology/constraints_whitelist.py261 # intent explicit (the guard resolves AWSPrincipal atomically and wouldCOMMENT
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.py121 return itemCOMMENT
LOWcartography/rules/data/rules/cis_google_workspace.py401 soc2_tsc("CC6.3"),COMMENT
LOWcartography/rules/data/rules/cis_google_workspace.py421# =============================================================================COMMENT
LOWcartography/rules/data/rules/cis_google_workspace.py441# =============================================================================COMMENT
LOWcartography/rules/data/rules/cis_google_workspace.py461# =============================================================================COMMENT
LOWcartography/rules/data/rules/cis_google_workspace.py481# =============================================================================COMMENT
LOWcartography/rules/data/rules/cis_google_workspace.py501# =============================================================================COMMENT
LOWcartography/rules/data/rules/cis_google_workspace.py521# =============================================================================COMMENT
LOWcartography/rules/data/rules/cis_google_workspace.py541# =============================================================================COMMENT
LOWcartography/rules/data/rules/cis_google_workspace.py561# =============================================================================COMMENT
LOWcartography/rules/data/rules/cis_google_workspace.py581# =============================================================================COMMENT
LOWcartography/rules/data/rules/cis_google_workspace.py601# =============================================================================COMMENT
LOWcartography/rules/data/rules/cis_google_workspace.py621# =============================================================================COMMENT
LOWcartography/rules/data/rules/cis_google_workspace.py641# =============================================================================COMMENT
LOWcartography/rules/data/rules/cis_google_workspace.py661# =============================================================================COMMENT
LOWcartography/rules/data/rules/cis_google_workspace.py681# =============================================================================COMMENT
LOWcartography/rules/data/rules/cis_google_workspace.py701# =============================================================================COMMENT
LOWcartography/rules/data/rules/cis_google_workspace.py721# =============================================================================COMMENT
LOWcartography/rules/data/rules/cis_google_workspace.py741# =============================================================================COMMENT
64 more matches not shown…
Fake / Example Data79 hits · 83 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.py896 dependencies, "fake-token", "https://api.github.com/graphql"CODE
LOWtests/unit/cartography/intel/github/test_repos.py960 dependencies, "fake-token", "https://api.github.com/graphql"CODE
LOWtests/unit/cartography/intel/github/test_repos.py1011 dependencies, "fake-token", "https://api.github.com/graphql"CODE
LOWtests/unit/cartography/intel/github/test_repos.py1064 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
LOWtests/unit/cartography/intel/github/test_app_auth.py170 "private_key": "fake-key",CODE
LOWtests/unit/cartography/intel/github/test_app_auth.py182 "private_key": "fake-key",CODE
LOWtests/unit/cartography/intel/okta/test_admin_roles.py53 sync_roles(mock.MagicMock(), "example_org", 1, "fake-key", sync_state)CODE
LOWtests/unit/cartography/intel/okta/test_admin_roles.py77 sync_roles(mock.MagicMock(), "example_org", 1, "fake-key", sync_state)CODE
LOWtests/unit/cartography/intel/okta/test_admin_roles.py96 sync_roles(mock.MagicMock(), "example_org", 1, "fake-key", sync_state)CODE
LOWtests/unit/cartography/intel/salesforce/test_util.py54 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.py108 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.py38 "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
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
LOWtests/integration/cartography/intel/slack/test_team.py6SLACK_TOKEN = "fake-token"CODE
LOW…s/integration/cartography/intel/slack/test_channels.py9SLACK_TOKEN = "fake-token"CODE
LOWtests/integration/cartography/intel/slack/test_users.py8SLACK_TOKEN = "fake-token"CODE
LOW…sts/integration/cartography/intel/slack/test_groups.py10SLACK_TOKEN = "fake-token"CODE
LOWtests/integration/cartography/intel/aws/test_ses.py63 "user@example.com",CODE
LOW…ography/intel/aws/test_cloudtrail_management_events.py420 ("admin@example.com", "arn:aws:iam::123456789012:role/ApplicationRole"),CODE
LOW…ography/intel/aws/test_cloudtrail_management_events.py428 WHERE p.user_name IN ['admin@example.com', 'alice@example.com']STRING
LOW…tion/cartography/intel/trivy/test_trivy_gitlab_disk.py105 "fake-token",CODE
LOW…tion/cartography/intel/trivy/test_trivy_gitlab_disk.py116 "fake-token",CODE
19 more matches not shown…
Structural Annotation Overuse39 hits · 69 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.md157### Step 8: Decouple internal queriesCOMMENT
LOW.agents/skills/promote-ontology-relationship/SKILL.md165### Step 9: Tests and verificationCOMMENT
LOWcartography/intel/microsoft/entra/applications.py165 # 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
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 Wrapping60 hits · 58 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
LOWtests/unit/cartography/data/jobs/test_syntax.py21 except Exception as e:CODE
LOWtests/unit/cartography/data/jobs/test_syntax.py34 except Exception as e:CODE
LOWtests/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.py321 except Exception:CODE
LOWcartography/util.py1043 except Exception as exc:CODE
LOWcartography/cli.py380 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.py62 except Exception as e:CODE
LOWcartography/intel/azure/util/credentials.py89 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.py49 except Exception:CODE
LOWcartography/intel/microsoft/entra/service_principals.py65 except Exception:CODE
LOWcartography/intel/microsoft/entra/users.py98 except Exception:CODE
LOWcartography/intel/microsoft/entra/users.py113 except Exception as e:CODE
LOWcartography/intel/microsoft/entra/applications.py55 except Exception:CODE
LOWcartography/intel/microsoft/entra/applications.py71 except Exception:CODE
LOWcartography/intel/microsoft/entra/groups.py163 except Exception as e:CODE
LOWcartography/intel/microsoft/entra/groups.py183 except Exception as e:CODE
LOWcartography/intel/microsoft/entra/ou.py47 except Exception as e:CODE
LOW…tography/intel/microsoft/entra/app_role_assignments.py157 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.py136 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.py464 except Exception:CODE
LOWcartography/intel/aws/iam.py1627 except Exception:STRING
LOWcartography/intel/aws/__init__.py660 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.py317 except Exception:CODE
LOWcartography/intel/aws/sns.py49 except Exception as e:CODE
LOWcartography/intel/kubernetes/util.py257 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
Verbosity Indicators15 hits · 28 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.py165 # 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
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 Comments19 hits · 26 pts
SeverityFileLineSnippetContext
LOWdemo/__main__.py47 # Check if the database is emptyCOMMENT
LOWtests/unit/cartography/test_sync.py13 # Check if all available modules are defined in the TOP_LEVEL_MODULES listCOMMENT
LOW…tography/intel/microsoft/entra/app_role_assignments.py136 # 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.py629 # Check if this is a search endpoint (stricter limits)COMMENT
LOWcartography/intel/github/supply_chain.py224 # Check if there are more pagesSTRING
LOWcartography/intel/github/repos.py1964 # Set spec to `None` instead of empty string so that the Neo4j driver will leave the library.specifier fieldCOMMENT
LOWcartography/intel/aws/iam.py581 # 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.py651 # Check if this is a manifest listCOMMENT
LOWcartography/intel/aws/ecr_image_layers.py1049 # Check if this is an attestation manifestCOMMENT
LOWcartography/intel/workos/util.py38 # Check if there's another pageCOMMENT
LOWcartography/intel/kubernetes/util.py369 # Check if items exists on the responseCOMMENT
LOWcartography/intel/kubernetes/util.py381 # 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
Unused Imports26 hits · 24 pts
SeverityFileLineSnippetContext
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/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
Modern AI Meta-Vocabulary8 hits · 20 pts
SeverityFileLineSnippetContext
MEDIUM…egration/cartography/intel/aws/bedrock/test_bedrock.py321 # Sync foundation models first (KB needs embedding model)COMMENT
MEDIUM…egration/cartography/intel/aws/bedrock/test_bedrock.py404 # Sync guardrails (target nodes must exist)COMMENT
MEDIUMcartography/intel/aws/bedrock/__init__.py104 # Sync guardrailsCOMMENT
MEDIUMcartography/intel/aws/bedrock/__init__.py124 # 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.py102 # 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
MEDIUMcartography/rules/data/rules/cis_google_workspace.py628# 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.py34CODE
LOWcartography/config.py521CODE
LOWcartography/cli.py413CODE
LOWcartography/intel/github/util.py206CODE
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 Code1 hit · 2 pts
SeverityFileLineSnippetContext
MEDIUM…cartography/intel/aws/inspector/test_inspector_sync.py258CODE