Repository Analysis

cartography-cncf/cartography

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

23.4 Moderate AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of cartography-cncf/cartography, a Python project with 3,967 GitHub stars. SynthScan v2.0 examined 481,730 lines of code across 3321 source files, recording 6404 pattern matches distributed across 22 syntactic categories. The overall adjusted score of 23.4 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.4
Adjusted Score
23.4
Raw Score
100%
Time Factor
2026-07-14
Last Push
4.0K
Stars
Python
Language
481.7K
Lines of Code
3.3K
Files
6.4K
Pattern Hits
2026-07-14
Scan Date
0.17
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 287HIGH 280MEDIUM 1149LOW 4688

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 6404 distinct pattern matches across 22 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 Identifiers3607 hits · 3496 pts
SeverityFileLineSnippetContext
LOWAGENTS.md157def 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.py37def test_identity_fields_non_empty(rule_id, fact_id, rule, fact):CODE
LOWtests/unit/rules/test_identity_fields.py46def test_identity_fields_exist_on_output_model(rule_id, fact_id, rule, fact):CODE
LOWtests/unit/rules/test_identity_fields.py58def test_identity_fields_returned_by_query(rule_id, fact_id, rule, fact):CODE
LOWtests/unit/rules/test_identity_fields.py68def test_identity_fields_surfaced_in_serialized_output():CODE
LOWtests/unit/rules/test_model.py7def test_framework_normalizes_to_lowercase():CODE
LOWtests/unit/rules/test_model.py25def test_framework_control_title_preserves_display_casing_and_is_not_filter_key():CODE
LOWtests/unit/rules/test_model.py42def test_framework_optional_fields():CODE
LOWtests/unit/rules/test_model.py76def test_framework_matches_case_insensitive():CODE
LOWtests/unit/rules/test_model.py93def test_framework_matches_partial_filter():CODE
LOWtests/unit/rules/test_model.py114def test_framework_matches_with_optional_fields():CODE
LOWtests/unit/rules/test_model.py139def test_all_module_keys_in_mapping_except_cross_cloud():CODE
LOWtests/unit/rules/test_model.py165def test_cross_cloud_not_in_mapping():CODE
LOWtests/unit/rules/test_model.py174def test_mapping_values_exists():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
LOWtests/unit/rules/test_azure_rbac_wildcards.py134def test_facts_use_regex_wildcard_expansion() -> None:CODE
LOWtests/unit/rules/test_cis_google_workspace.py20def test_rules_registered_and_metadata():CODE
LOWtests/unit/rules/test_cis_google_workspace.py39def test_rule_names_are_security_names():CODE
LOWtests/unit/rules/test_cis_google_workspace.py54def test_facts_have_expected_structure():CODE
LOWtests/unit/rules/test_cis_google_workspace.py82def test_output_models_are_distinct():CODE
LOWtests/unit/rules/test_cis_google_workspace.py105def test_super_admin_rules_use_is_admin_as_super_admin_signal():CODE
LOWtests/unit/rules/test_runners.py21def test_run_single_rule_aggregates_facts_correctly(mock_run_fact):CODE
LOWtests/unit/rules/test_runners.py112def test_run_single_rule_with_zero_findings(mock_run_fact):CODE
LOWtests/unit/rules/test_runners.py162def test_run_single_rule_with_fact_filter(mock_run_fact):CODE
LOWtests/unit/rules/test_runners.py216def test_run_single_rule_propagates_frameworks(mock_run_fact):CODE
LOWtests/unit/rules/test_subimage_coverage.py24def test_subimage_coverage_rules_registered_without_frameworks():CODE
LOWtests/unit/rules/test_subimage_coverage.py37def test_subimage_coverage_not_advertised_as_compliance_framework():CODE
LOWtests/unit/rules/test_unmanaged_accounts.py4def test_unmanaged_account_rule_uses_normalized_activity_fields() -> None:CODE
LOWtests/unit/rules/test_unmanaged_accounts.py12def test_unmanaged_account_count_query_excludes_normalized_inactive_accounts() -> None:CODE
LOW…ts/unit/rules/test_kubernetes_control_plane_exposed.py12def test_kubernetes_control_plane_exposed_rule_registered() -> None:CODE
LOW…ts/unit/rules/test_kubernetes_control_plane_exposed.py18def test_kubernetes_control_plane_exposed_rule_shape() -> None:CODE
LOW…ts/unit/rules/test_kubernetes_control_plane_exposed.py26def test_kubernetes_control_plane_exposed_fact_modules() -> None:CODE
LOW…ts/unit/rules/test_kubernetes_control_plane_exposed.py31def test_kubernetes_control_plane_exposed_facts_are_experimental() -> None:CODE
LOW…ts/unit/rules/test_kubernetes_control_plane_exposed.py38def test_kubernetes_control_plane_exposed_fact_ids_are_unique() -> None:CODE
LOWtests/unit/rules/test_rule_identity.py28def test_rule_ids_do_not_use_compliance_prefixes():CODE
LOWtests/unit/rules/test_rule_identity.py33def test_rule_names_do_not_use_compliance_control_prefixes():CODE
LOWtests/unit/rules/test_rule_identity.py38def test_rule_framework_mappings_have_control_titles():CODE
LOWtests/unit/rules/test_rule_identity.py44def test_rule_definitions_use_framework_helper_default_control_titles():CODE
LOWtests/unit/rules/test_rule_identity.py54def test_multiple_rules_can_map_to_same_framework_control():CODE
LOWtests/unit/rules/test_rule_identity.py81def test_framework_mappings_remain_on_renamed_rules():CODE
3547 more matches not shown…
Hallucination Indicators287 hits · 3460 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.py50 mock_boto3_session.return_value.client.return_value.get_paginator.assert_called_once_with(CODE
CRITICALtests/unit/cartography/intel/trivy/test_scanner.py53 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.py88 mock_boto3_session.return_value.client.return_value.get_paginator.assert_called_once_with(CODE
CRITICALtests/unit/cartography/intel/trivy/test_scanner.py91 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.py145 mock_boto3_session.return_value.client.return_value.get_paginator.assert_called_once_with(CODE
CRITICALtests/unit/cartography/intel/trivy/test_scanner.py148 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.py279 mock_boto3_session.return_value.client.return_value.get_object.assert_called_once_with(CODE
CRITICALtests/unit/cartography/intel/trivy/test_scanner.py325 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…/integration/cartography/intel/gcp/test_crm_folders.py37 cartography.intel.gcp.crm.orgs.sync_gcp_organizations(CODE
CRITICAL…/integration/cartography/intel/gcp/test_crm_folders.py42 folders = cartography.intel.gcp.crm.folders.sync_gcp_folders(CODE
CRITICAL…/integration/cartography/intel/gcp/test_crm_folders.py50 cartography.intel.gcp.crm.projects.sync_gcp_projects(CODE
CRITICAL…/integration/cartography/intel/gcp/test_crm_folders.py114 cartography.intel.gcp.crm.orgs.sync_gcp_organizations(CODE
CRITICAL…/integration/cartography/intel/gcp/test_crm_folders.py119 cartography.intel.gcp.crm.folders.sync_gcp_folders(CODE
CRITICAL…sts/integration/cartography/intel/gcp/test_crm_orgs.py19 cartography.intel.gcp.crm.orgs.sync_gcp_organizations(CODE
CRITICAL…integration/cartography/intel/gcp/test_crm_projects.py37 cartography.intel.gcp.crm.orgs.sync_gcp_organizations(CODE
CRITICAL…integration/cartography/intel/gcp/test_crm_projects.py42 folders = cartography.intel.gcp.crm.folders.sync_gcp_folders(CODE
CRITICAL…integration/cartography/intel/gcp/test_crm_projects.py50 cartography.intel.gcp.crm.projects.sync_gcp_projects(CODE
CRITICAL…integration/cartography/intel/gcp/test_crm_projects.py101 cartography.intel.gcp.crm.orgs.sync_gcp_organizations(CODE
CRITICAL…integration/cartography/intel/gcp/test_crm_projects.py106 cartography.intel.gcp.crm.projects.sync_gcp_projects(CODE
CRITICAL…integration/cartography/intel/gcp/test_crm_projects.py149 cartography.intel.gcp.crm.orgs.sync_gcp_organizations(CODE
CRITICAL…integration/cartography/intel/gcp/test_crm_projects.py154 cartography.intel.gcp.crm.projects.sync_gcp_projects(CODE
CRITICAL…ion/cartography/intel/gcp/test_crm_deferred_cleanup.py551 cartography.intel.gcp.crm.orgs.load_gcp_organizations(CODE
CRITICAL…ion/cartography/intel/gcp/test_crm_deferred_cleanup.py554 cartography.intel.gcp.crm.folders.load_gcp_folders(CODE
CRITICAL…ion/cartography/intel/gcp/test_crm_deferred_cleanup.py559 cartography.intel.gcp.crm.orgs.load_gcp_organizations(CODE
CRITICAL…ion/cartography/intel/gcp/test_crm_deferred_cleanup.py562 cartography.intel.gcp.crm.folders.load_gcp_folders(CODE
CRITICAL…tegration/cartography/intel/gcp/test_secretsmanager.py28 side_effect=lambda sm, secret_name: tests.data.gcp.secretsmanager.SECRET_VERSIONS_BY_SECRET.get(CODE
CRITICALtests/integration/cartography/intel/gcp/test_vertex.py151 cartography.intel.gcp.vertex.datasets.sync_vertex_ai_datasets(CODE
CRITICALtests/integration/cartography/intel/gcp/test_vertex.py159 cartography.intel.gcp.vertex.models.sync_vertex_ai_models(CODE
CRITICALtests/integration/cartography/intel/gcp/test_vertex.py167 endpoints_raw = cartography.intel.gcp.vertex.endpoints.sync_vertex_ai_endpoints(CODE
CRITICALtests/integration/cartography/intel/gcp/test_vertex.py175 cartography.intel.gcp.vertex.deployed_models.sync_vertex_ai_deployed_models(CODE
CRITICALtests/integration/cartography/intel/gcp/test_vertex.py183 cartography.intel.gcp.vertex.instances.sync_workbench_instances(CODE
CRITICALtests/integration/cartography/intel/gcp/test_vertex.py191 cartography.intel.gcp.vertex.training_pipelines.sync_training_pipelines(CODE
CRITICALtests/integration/cartography/intel/gcp/test_vertex.py199 cartography.intel.gcp.vertex.feature_groups.sync_feature_groups(CODE
CRITICAL…egration/cartography/intel/gcp/test_policy_bindings.py100 cartography.intel.gcp.crm.orgs.sync_gcp_organizations(CODE
227 more matches not shown…
Decorative Section Separators1075 hits · 1592 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.py15# ---------------------------------------------------------------------------COMMENT
MEDIUM…t/cartography/intel/tenable/test_findings_transform.py17# ---------------------------------------------------------------------------COMMENT
MEDIUM…t/cartography/intel/tenable/test_findings_transform.py116# ---------------------------------------------------------------------------COMMENT
MEDIUM…t/cartography/intel/tenable/test_findings_transform.py118# ---------------------------------------------------------------------------COMMENT
MEDIUM…t/cartography/intel/tenable/test_findings_transform.py187# ---------------------------------------------------------------------------COMMENT
MEDIUM…t/cartography/intel/tenable/test_findings_transform.py189# ---------------------------------------------------------------------------COMMENT
MEDIUM…nit/cartography/intel/tenable/test_assets_transform.py16# ---------------------------------------------------------------------------COMMENT
MEDIUM…nit/cartography/intel/tenable/test_assets_transform.py18# ---------------------------------------------------------------------------COMMENT
MEDIUM…nit/cartography/intel/tenable/test_assets_transform.py110# ---------------------------------------------------------------------------COMMENT
MEDIUM…nit/cartography/intel/tenable/test_assets_transform.py112# ---------------------------------------------------------------------------COMMENT
MEDIUM…nit/cartography/intel/tenable/test_assets_transform.py148# ---------------------------------------------------------------------------COMMENT
MEDIUM…nit/cartography/intel/tenable/test_assets_transform.py150# ---------------------------------------------------------------------------COMMENT
MEDIUM…nit/cartography/intel/tenable/test_assets_transform.py198# ---------------------------------------------------------------------------COMMENT
MEDIUM…nit/cartography/intel/tenable/test_assets_transform.py200# ---------------------------------------------------------------------------COMMENT
MEDIUM…nit/cartography/intel/tenable/test_assets_transform.py306# ---------------------------------------------------------------------------COMMENT
MEDIUM…nit/cartography/intel/tenable/test_assets_transform.py308# ---------------------------------------------------------------------------COMMENT
MEDIUM…nit/cartography/intel/tenable/test_assets_transform.py347# ---------------------------------------------------------------------------COMMENT
MEDIUM…nit/cartography/intel/tenable/test_assets_transform.py349# ---------------------------------------------------------------------------COMMENT
MEDIUM…nit/cartography/intel/tenable/test_assets_transform.py249# ---------------------------------------------------------------------------COMMENT
MEDIUM…nit/cartography/intel/tenable/test_assets_transform.py251# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/unit/cartography/intel/gcp/test_util.py618 # ------------------------------------------------------------------COMMENT
MEDIUMtests/unit/cartography/intel/gcp/test_util.py620 # ------------------------------------------------------------------COMMENT
MEDIUMtests/unit/cartography/intel/gcp/test_util.py669 # ------------------------------------------------------------------COMMENT
MEDIUMtests/unit/cartography/intel/gcp/test_util.py671 # ------------------------------------------------------------------COMMENT
MEDIUMtests/unit/cartography/intel/gcp/test_util.py693 # ------------------------------------------------------------------COMMENT
MEDIUMtests/unit/cartography/intel/gcp/test_util.py695 # ------------------------------------------------------------------COMMENT
MEDIUMtests/unit/cartography/intel/gcp/test_util.py704 # ------------------------------------------------------------------COMMENT
MEDIUMtests/unit/cartography/intel/gcp/test_util.py706 # ------------------------------------------------------------------COMMENT
MEDIUMtests/unit/cartography/intel/gcp/test_util.py738 # ------------------------------------------------------------------COMMENT
MEDIUMtests/unit/cartography/intel/gcp/test_util.py740 # ------------------------------------------------------------------COMMENT
MEDIUMtests/unit/cartography/intel/gcp/test_util.py786 # ------------------------------------------------------------------COMMENT
MEDIUMtests/unit/cartography/intel/gcp/test_util.py788 # ------------------------------------------------------------------COMMENT
MEDIUMtests/unit/cartography/intel/gcp/test_util.py797 # ------------------------------------------------------------------COMMENT
MEDIUMtests/unit/cartography/intel/gcp/test_util.py799 # ------------------------------------------------------------------COMMENT
MEDIUMtests/unit/cartography/intel/gcp/test_util.py650 # ------------------------------------------------------------------COMMENT
MEDIUMtests/unit/cartography/intel/gcp/test_util.py652 # ------------------------------------------------------------------COMMENT
MEDIUM…raphy/intel/gcp/test_artifact_registry_supply_chain.py47# ---------------------------------------------------------------------------COMMENT
MEDIUM…raphy/intel/gcp/test_artifact_registry_supply_chain.py49# ---------------------------------------------------------------------------COMMENT
MEDIUM…raphy/intel/gcp/test_artifact_registry_supply_chain.py72# ---------------------------------------------------------------------------COMMENT
MEDIUM…raphy/intel/gcp/test_artifact_registry_supply_chain.py74# ---------------------------------------------------------------------------COMMENT
MEDIUM…raphy/intel/gcp/test_artifact_registry_supply_chain.py405# ---------------------------------------------------------------------------COMMENT
MEDIUM…raphy/intel/gcp/test_artifact_registry_supply_chain.py407# ---------------------------------------------------------------------------COMMENT
MEDIUM…raphy/intel/gcp/test_artifact_registry_supply_chain.py788# ---------------------------------------------------------------------------COMMENT
MEDIUM…raphy/intel/gcp/test_artifact_registry_supply_chain.py790# ---------------------------------------------------------------------------COMMENT
MEDIUM…raphy/intel/gcp/test_artifact_registry_supply_chain.py491# ---------------------------------------------------------------------------COMMENT
MEDIUM…raphy/intel/gcp/test_artifact_registry_supply_chain.py493# ---------------------------------------------------------------------------COMMENT
MEDIUM…raphy/intel/gcp/test_artifact_registry_supply_chain.py1237# ---------------------------------------------------------------------------COMMENT
MEDIUM…raphy/intel/gcp/test_artifact_registry_supply_chain.py1239# ---------------------------------------------------------------------------COMMENT
1015 more matches not shown…
Cross-File Repetition171 hits · 855 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:ecrimage {id: $digest}) set i.digest = $digest, i.lastupdated = $tagSTRING
HIGH…ion/cartography/intel/ontology/test_resolved_images.py0merge (i:image:ecrimage {id: $digest}) set i.digest = $digest, i.lastupdated = $tagSTRING
HIGHtests/integration/cartography/intel/aws/test_lambda.py0merge (i:image:ecrimage {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…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:kmskey{id: $key_id}) set k.arn = $key_arn, k.lastupdated = $update_tagSTRING
HIGHtests/integration/cartography/intel/aws/test_efs.py0merge (k:kmskey{id: $key_id}) set k.arn = $key_arn, k.lastupdated = $update_tagSTRING
111 more matches not shown…
Modern Structural Boilerplate577 hits · 579 pts
SeverityFileLineSnippetContext
LOWdemo/__main__.py23logger = logging.getLogger(__name__)CODE
LOWtests/utils.py13logger = logging.getLogger(__name__)CODE
LOWtests/unit/cartography/graph/test_model.py19logger = 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.py19logger = 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.py16logger = 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/supply_chain.py15logger = logging.getLogger(__name__)CODE
LOWcartography/intel/create_indexes.py10logger = 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__.py23logger = 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__.py30logger = 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
LOWcartography/intel/vercel/sharedenvironmentvariables.py15logger = logging.getLogger(__name__)CODE
517 more matches not shown…
Docstring Block Structure68 hits · 340 pts
SeverityFileLineSnippetContext
HIGHcartography/sync.py239 Execute all configured stages in the sync task sequentially. This method is the main execution entry pSTRING
HIGHcartography/sync.py384 Execute a sync task with comprehensive configuration and error handling. This function serves as a high-level STRING
HIGHcartography/sync.py537 Parse and validate user-selected modules from comma-separated string. This function takes a comma-separated stSTRING
HIGHcartography/sync.py583 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.py462 Create a GraphJob instance from a JSON file. This class method reads a JSON file and deserializes it iSTRING
HIGHcartography/graph/job.py554 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.py423 Generate a Neo4j clause that sets node properties using the given mapping of attribute names to PropertyRefs. STRING
HIGHcartography/graph/querybuilder.py491 Generate a Neo4j clause that sets relationship properties using the given mapping of attribute names to PropertyRefSTRING
HIGHcartography/graph/querybuilder.py542 Generate a Neo4j match statement on one or more keys and values for a given node. This function creates a propSTRING
HIGHcartography/graph/querybuilder.py582 Generate a Neo4j WHERE clause for relationship matching with advanced matching options. This function creates STRING
HIGHcartography/graph/querybuilder.py660 Convert CartographyRelSchema properties to dict with validation and helpful error messages. This function convSTRING
HIGHcartography/graph/querybuilder.py728 Generate a Neo4j statement to attach a sub resource to a node. A 'sub resource' is a cartography term for billSTRING
HIGHcartography/graph/querybuilder.py817 Generate a Neo4j statement to attach multiple additional relationships to nodes. This function creates Neo4j cSTRING
HIGHcartography/graph/querybuilder.py928 Generate Neo4j subqueries to attach sub resource and/or other relationships. This function uses Neo4j subqueriSTRING
HIGHcartography/graph/querybuilder.py1009 Check if a relationship schema is present on a node schema. This function determines whether a given relationsSTRING
HIGHcartography/graph/querybuilder.py1050 Filter and validate selected relationships against a node schema. This function ensures that selected relationSTRING
HIGHcartography/graph/querybuilder.py1132 Generate a Neo4j query from a CartographyNodeSchema to ingest nodes and relationships. This function creates aSTRING
HIGHcartography/graph/querybuilder.py1227 Generate Neo4j queries to apply conditional labels to nodes. Conditional labels are labels that are only appliSTRING
HIGHcartography/graph/querybuilder.py1380 Generate queries to create indexes for the given CartographyNodeSchema and all node types attached to it via its STRING
HIGHcartography/graph/querybuilder.py1531 Generate queries to create indexes for the given CartographyRelSchema and all node types attached to it. This STRING
HIGHcartography/graph/querybuilder.py1730 Generate a query that links every matched source node to every matched target. This is the querybuilder companSTRING
HIGHcartography/graph/querybuilder.py1830 Generate a Neo4j query to link two existing nodes when given a CartographyRelSchema object. This function creaSTRING
HIGHcartography/models/core/common.py47 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 Confusion39 hits · 204 pts
SeverityFileLineSnippetContext
HIGH…ts/unit/cartography/intel/aws/test_ecr_image_layers.py933 "sha256:2222222222222222222222222222222222222222222222222222222222222222": "/bin/sh -c apt-get update && apt-getCODE
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…egration/cartography/intel/spacelift/test_spacelift.py319 # Only stack-1 has an assumed role ARN; stack-2's is null, so it gets no edge.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/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.py30 # coalesce will return the first non-null value, so if toBooleanOrNull returns null,COMMENT
HIGHcartography/graph/querybuilder.py47 # 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/gitlab/organizations.py44 Organizations are top-level groups (parent_id is null) that serve as the rootSTRING
HIGH…phy/rules/data/rules/delegation_boundary_modifiable.py43 UNWIND coalesce(stmt.resource, [null]) AS resourceCODE
HIGH…y/rules/data/rules/policy_administration_privileges.py50 UNWIND coalesce(allow_resources, [null]) AS resourceCODE
HIGHcartography/rules/data/rules/databricks_security.py74# (system-default cap) and an unset value both to null, and the account defaultSTRING
HIGH…rules/data/rules/identity_administration_privileges.py48 UNWIND coalesce(stmt.resource, [null]) AS resourceCODE
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.py201 # Create the prerequisite AzureSubscription nodeCOMMENT
MEDIUM…tegration/cartography/intel/azure/test_data_factory.py234 # Create the prerequisite AzureSubscription nodeCOMMENT
MEDIUM…tegration/cartography/intel/azure/test_data_factory.py268 # 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.py102 # 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.py322 # 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.py318 # 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.py63 # 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.py1163 # Create a unique ID for a GitHubBranch node representing the default branch of this repo object.STRING
MEDIUMcartography/intel/github/repos.py1170 # Create a git:// URL from the given SSH URL, if it exists.STRING
MEDIUMcartography/intel/aws/apigateway.py238 # Create a mapping of api_id to policy data for easier lookupCOMMENT
3 more matches not shown…
Deep Nesting165 hits · 158 pts
SeverityFileLineSnippetContext
LOW…it/cartography/intel/ontology/test_ontology_mapping.py44CODE
LOW…it/cartography/intel/ontology/test_ontology_mapping.py143CODE
LOW…it/cartography/intel/ontology/test_ontology_mapping.py181CODE
LOW…it/cartography/intel/ontology/test_ontology_mapping.py208CODE
LOW…it/cartography/intel/ontology/test_ontology_mapping.py220CODE
LOW…it/cartography/intel/ontology/test_ontology_mapping.py243CODE
LOW…it/cartography/intel/ontology/test_ontology_mapping.py279CODE
LOW…it/cartography/intel/ontology/test_ontology_mapping.py315CODE
LOWtests/unit/cartography/graph/test_model.py22CODE
LOWtests/unit/cartography/graph/test_analysis.py49CODE
LOW…nit/cartography/graph/test_ontology_rel_constraints.py13CODE
LOW…tegration/cartography/intel/github/test_dockerfiles.py122CODE
LOW…tegration/cartography/intel/github/test_dockerfiles.py128CODE
LOWtests/integration/cartography/intel/aws/test_init.py1195CODE
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.py169CODE
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.py109CODE
LOWcartography/intel/gitlab/container_images.py339CODE
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.py50CODE
LOWcartography/intel/azure/util/common.py7CODE
LOWcartography/intel/pagerduty/escalation_policies.py43CODE
LOWcartography/intel/pagerduty/schedules.py40CODE
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
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/gcp/secretsmanager.py28CODE
LOWcartography/intel/gcp/secretsmanager.py85CODE
LOWcartography/intel/gcp/dns.py56CODE
LOWcartography/intel/gcp/util.py138CODE
LOWcartography/intel/gcp/util.py245CODE
LOWcartography/intel/gcp/policy_bindings.py517CODE
LOWcartography/intel/gcp/policy_bindings.py694CODE
LOWcartography/intel/gcp/bigquery_connection.py17CODE
LOWcartography/intel/gcp/cai.py25CODE
LOWcartography/intel/gcp/cai.py59CODE
LOWcartography/intel/gcp/__init__.py154CODE
LOWcartography/intel/gcp/__init__.py810CODE
LOWcartography/intel/gcp/apikeys.py24CODE
LOWcartography/intel/gcp/instancegroup.py94CODE
105 more matches not shown…
Fake / Example Data72 hits · 76 pts
SeverityFileLineSnippetContext
LOW…nit/cartography/intel/tenable/test_assets_transform.py211 assert tag["added_by"] == "admin@example.com"CODE
LOWtests/unit/cartography/intel/github/test_repos.py662 dependencies, "fake-token", "https://api.github.com/graphql"CODE
LOWtests/unit/cartography/intel/github/test_repos.py726 dependencies, "fake-token", "https://api.github.com/graphql"CODE
LOWtests/unit/cartography/intel/github/test_repos.py777 dependencies, "fake-token", "https://api.github.com/graphql"CODE
LOWtests/unit/cartography/intel/github/test_repos.py830 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.py32 "IdentityName": "user@example.com",CODE
LOWtests/unit/cartography/intel/aws/test_ses.py68 "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…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…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
LOW…tion/cartography/intel/trivy/test_trivy_gitlab_disk.py192 "fake-token",CODE
LOW…tion/cartography/intel/trivy/test_trivy_gitlab_disk.py208 "fake-token",CODE
LOWtests/data/socketdev/organizations.py5 "name": "Acme Corp",CODE
LOWtests/data/vercel/teams.py4 "name": "Acme Corp",CODE
12 more matches not shown…
Structural Annotation Overuse41 hits · 74 pts
SeverityFileLineSnippetContext
LOW…cartography/intel/aws/test_permission_relationships.py79 # Step 1: Create AWS accountCOMMENT
LOW…cartography/intel/aws/test_permission_relationships.py82 # Step 2: Create S3 bucket resource (out of band to be quick and dirty)COMMENT
LOW…cartography/intel/aws/test_permission_relationships.py93 # Step 3: Create IAM roles and policies using sync_rolesCOMMENT
LOW.agents/skills/audit-frameworks/SKILL.md37### Step 1: inventoryCOMMENT
LOW.agents/skills/audit-frameworks/SKILL.md56### Step 2: TODO triageCOMMENT
LOW.agents/skills/audit-frameworks/SKILL.md71### Step 3: cross-provider to ontology candidatesCOMMENT
LOW.agents/skills/audit-frameworks/SKILL.md91### Step 4: duplicate detectionCOMMENT
LOW.agents/skills/audit-frameworks/SKILL.md111### Step 5: consolidation planCOMMENT
LOW.agents/skills/analysis-jobs/SKILL.md37### Step 1 - Pick global vs scopedCOMMENT
LOW.agents/skills/analysis-jobs/SKILL.md49### Step 2 - Author the typed jobCOMMENT
LOW.agents/skills/analysis-jobs/SKILL.md76### Step 3 - Write the queriesCOMMENT
LOW.agents/skills/analysis-jobs/SKILL.md97### Step 4 - Available parametersCOMMENT
LOW.agents/skills/analysis-jobs/SKILL.md105### Step 5 - Wire the call into your moduleCOMMENT
LOW.agents/skills/analysis-jobs/SKILL.md161### Step 6 - Test itCOMMENT
LOW.agents/skills/promote-ontology-relationship/SKILL.md47### Step 1: Identify the canonical pair and labelCOMMENT
LOW.agents/skills/promote-ontology-relationship/SKILL.md51### Step 2: Find which provider nodes carry each ontology labelCOMMENT
LOW.agents/skills/promote-ontology-relationship/SKILL.md61### Step 3: Find the direct edges to migrateCOMMENT
LOW.agents/skills/promote-ontology-relationship/SKILL.md74### Step 4: Add the parallel canonical edgeCOMMENT
LOW.agents/skills/promote-ontology-relationship/SKILL.md114### Step 5: Add the constraintCOMMENT
LOW.agents/skills/promote-ontology-relationship/SKILL.md125### Step 6: Run the guard, then whitelist remaining collisionsCOMMENT
LOW.agents/skills/promote-ontology-relationship/SKILL.md137### Step 7: Update documentationCOMMENT
LOW.agents/skills/promote-ontology-relationship/SKILL.md151### Step 8: Decouple internal queriesCOMMENT
LOW.agents/skills/promote-ontology-relationship/SKILL.md159### Step 9: Tests and verificationCOMMENT
LOWdocs/root/modules/github/config.md5### Step 1: Create a Personal Access TokenCOMMENT
LOWdocs/root/modules/github/config.md103### Step 2: Configure CartographyCOMMENT
LOWcartography/intel/microsoft/entra/applications.py169 # Step 1: Sync applicationsCOMMENT
LOWcartography/intel/cve_metadata/__init__.py137 # Step 1: Get all CVE IDs from the graph — this is the authoritative listCOMMENT
LOWcartography/intel/cve_metadata/__init__.py167 # Step 2: Enrich and load one CVE year at a time to keep memory bounded.COMMENT
LOWcartography/intel/cve_metadata/__init__.py213 # Step 4: Cleanup stale CVEMetadata nodes from previous syncsCOMMENT
LOW…y/rules/data/rules/policy_administration_privileges.py29 // Step 1 - Collect (action, resource) pairs for allowed statementsCOMMENT
LOW…y/rules/data/rules/policy_administration_privileges.py36 // Step 2 - Gather all Deny statements for the same principalCOMMENT
LOW…y/rules/data/rules/policy_administration_privileges.py40 // Step 3 - Filter out denied actions (handles *, iam:*, exact, and prefix wildcards)COMMENT
LOW…y/rules/data/rules/policy_administration_privileges.py47 // Step 4 - Aggregate one row per (account, principal, policy). Substitute aCOMMENT
LOW…les/data/rules/workload_identity_admin_capabilities.py23 // Step 1: Collect allowed actions that match IAM modification patternsCOMMENT
LOW…les/data/rules/workload_identity_admin_capabilities.py31 // Step 2: Collect deny statements for the same roleCOMMENT
LOW…les/data/rules/workload_identity_admin_capabilities.py36 // Step 3: Compute effective = allows minus deniesCOMMENT
LOW…les/data/rules/workload_identity_admin_capabilities.py51 // Step 4: Optional internet exposure contextCOMMENT
LOW…les/data/rules/workload_identity_admin_capabilities.py115 // Step 1: Gather allowed actions that match IAM modification patternsCOMMENT
LOW…les/data/rules/workload_identity_admin_capabilities.py123 // Step 2: Gather all deny actions from the same roleCOMMENT
LOW…les/data/rules/workload_identity_admin_capabilities.py127 // Step 3: Subtract Deny actions from Allow actionsCOMMENT
LOW…les/data/rules/workload_identity_admin_capabilities.py142 // Step 4: Return only Lambdas with effective IAM modification capabilitiesCOMMENT
Over-Commented Block110 hits · 72 pts
SeverityFileLineSnippetContext
LOW…egration/cartography/intel/kubernetes/test_clusters.py81 "EKSCluster",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.py61COMMENT
LOWdocs/conf.py81#COMMENT
LOWdocs/conf.py101# If true, '()' will be appended to :func: etc. cross-reference text.COMMENT
LOWdocs/conf.py161html_logo = "images/logo-vertical.svg"COMMENT
LOWdocs/conf.py181# If not None, a 'Last updated on:' timestamp is inserted at every pageCOMMENT
LOWdocs/conf.py201html_use_index = FalseCOMMENT
LOWdocs/conf.py221# html_file_suffix = NoneCOMMENT
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.py761COMMENT
LOWcartography/intel/aws/s3.py781 # },COMMENT
LOWcartography/intel/aws/s3.py861) -> Optional[List[Dict]]:COMMENT
LOWcartography/intel/aws/s3.py1041def parse_bucket_logging(bucket: str, bucket_logging: Optional[Dict]) -> Optional[Dict]:COMMENT
LOWcartography/intel/aws/ec2/vpc.py101 # {COMMENT
LOWcartography/models/databricks/account.py21 # `Tenant` is the ontology label for the top-level resource container; theCOMMENT
LOWcartography/models/ontology/constraints.py301 # as an AWS role/user), not a role grant. Distinct from HAS_ROLE.COMMENT
LOWcartography/models/ontology/constraints.py321 # ALLOWED_BY (PermissionRole->UserGroup) is "this role is assumable byCOMMENT
LOWcartography/models/ontology/mapping/data/cves.py1from cartography.models.ontology.mapping.specs import OntologyFieldMappingCOMMENT
LOWcartography/models/ontology/mapping/data/containers.py61 OntologyFieldMapping(COMMENT
LOWcartography/rules/data/rules/cis_google_workspace.py181COMMENT
LOWcartography/rules/data/rules/cis_google_workspace.py401# =============================================================================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
LOWcartography/rules/data/rules/cis_google_workspace.py761# =============================================================================COMMENT
LOWcartography/rules/data/rules/cis_google_workspace.py781# =============================================================================COMMENT
LOWcartography/rules/data/rules/cis_google_workspace.py801# =============================================================================COMMENT
LOW…rtography/rules/data/rules/cis_kubernetes_workloads.py801# =============================================================================COMMENT
LOW…rtography/rules/data/rules/cis_kubernetes_workloads.py821# =============================================================================COMMENT
LOW…rtography/rules/data/rules/cis_kubernetes_workloads.py841# =============================================================================COMMENT
50 more matches not shown…
Excessive Try-Catch Wrapping57 hits · 55 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.py169 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.py33 except Exception as e:CODE
LOWtests/integration/cartography/data/jobs/test_syntax.py47 except Exception as e:CODE
LOWtests/integration/cartography/data/jobs/test_syntax.py69 except Exception as e:CODE
LOW…/skills/create-module/references/coding-conventions.md27except Exception:CODE
LOWcartography/sync.py283 except Exception:CODE
LOWcartography/util.py1043 except Exception as exc:CODE
LOWcartography/cli.py339 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.py225 except Exception as e:CODE
LOWcartography/intel/gitlab/projects.py54 except Exception as e:CODE
LOWcartography/intel/cve/feed.py306 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/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.py165 except Exception as e:CODE
LOWcartography/intel/microsoft/entra/groups.py185 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.py95 except Exception as e:CODE
LOWcartography/intel/cve_metadata/nvd.py197 except Exception:CODE
LOWcartography/intel/github/commits.py188 except Exception:STRING
LOWcartography/intel/aws/iam.py464 except Exception:CODE
LOWcartography/intel/aws/iam.py1627 except Exception:STRING
LOWcartography/intel/aws/__init__.py637 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.py303 except Exception:CODE
LOWcartography/intel/aws/sns.py49 except Exception as e:CODE
LOWcartography/intel/kubernetes/util.py158 except Exception as err:CODE
LOWcartography/intel/kubernetes/__init__.py122 except Exception:CODE
LOWcartography/intel/trivy/scanner.py329 except Exception as e:CODE
LOWcartography/intel/trivy/scanner.py364 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.py169 # Step 1: Sync applicationsCOMMENT
LOWcartography/intel/cve_metadata/__init__.py137 # Step 1: Get all CVE IDs from the graph — this is the authoritative listCOMMENT
LOWcartography/intel/cve_metadata/__init__.py167 # Step 2: Enrich and load one CVE year at a time to keep memory bounded.COMMENT
LOWcartography/intel/cve_metadata/__init__.py213 # Step 4: Cleanup stale CVEMetadata nodes from previous syncsCOMMENT
LOW…les/data/rules/workload_identity_admin_capabilities.py23 // Step 1: Collect allowed actions that match IAM modification patternsCOMMENT
LOW…les/data/rules/workload_identity_admin_capabilities.py31 // Step 2: Collect deny statements for the same roleCOMMENT
LOW…les/data/rules/workload_identity_admin_capabilities.py36 // Step 3: Compute effective = allows minus deniesCOMMENT
LOW…les/data/rules/workload_identity_admin_capabilities.py51 // Step 4: Optional internet exposure contextCOMMENT
LOW…les/data/rules/workload_identity_admin_capabilities.py115 // Step 1: Gather allowed actions that match IAM modification patternsCOMMENT
LOW…les/data/rules/workload_identity_admin_capabilities.py123 // Step 2: Gather all deny actions from the same roleCOMMENT
LOW…les/data/rules/workload_identity_admin_capabilities.py127 // Step 3: Subtract Deny actions from Allow actionsCOMMENT
LOW…les/data/rules/workload_identity_admin_capabilities.py142 // 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.py612 # 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.py1824 # 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.py167 # Check if this is a manifest listCOMMENT
LOWcartography/intel/aws/ecr.py259 # Check if this is a manifest list with imagesCOMMENT
LOWcartography/intel/aws/ecr_image_layers.py616 # Check if this is a manifest listCOMMENT
LOWcartography/intel/aws/ecr_image_layers.py1023 # Check if this is an attestation manifestCOMMENT
LOWcartography/intel/workos/util.py38 # Check if there's another pageCOMMENT
LOWcartography/intel/kubernetes/util.py265 # Check if items exists on the responseCOMMENT
LOWcartography/intel/kubernetes/util.py277 # Check if metadata exists on the responseCOMMENT
LOWcartography/intel/keycloak/clients.py68 # Check if the client has a service account userCOMMENT
LOWcartography/rules/runners.py368 # Output resultsCOMMENT
Modern AI Meta-Vocabulary7 hits · 18 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
MEDIUMdocs/root/modules/aws/schema.md6311Representation of an AWS [Bedrock Guardrail](https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails.html). GuarCODE
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
Unused Imports18 hits · 16 pts
SeverityFileLineSnippetContext
LOWcartography/cli.py14CODE
LOWcartography/intel/container_arch.py1CODE
LOWcartography/intel/supply_chain.py1CODE
LOWcartography/intel/container_image.py1CODE
LOWcartography/intel/semgrep/ossfindings.py1CODE
LOWcartography/intel/gcp/backendservice.py4CODE
LOWcartography/intel/gcp/instancegroup.py4CODE
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/ubuntu/util.py1CODE
LOWcartography/graph/analysis.py1CODE
LOWcartography/graph/analysisbuilder.py3CODE
LOWcartography/models/aibom/__init__.py1CODE
LOWcartography/models/aibom/__init__.py2CODE
LOWcartography/models/syft/__init__.py1CODE
AI Slop Vocabulary5 hits · 8 pts
SeverityFileLineSnippetContext
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.py203 # decide; non-matching rows simply create no edge.STRING
LOWcartography/intel/databricks/permissions.py301 # decide; non-matching rows simply create no edge.STRING
MEDIUMcartography/rules/data/rules/cis_google_workspace.py613# Missing datamodel: Gmail compliance settings for comprehensive mail storageSTRING
Synthetic Comment Markers1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHdocs/root/modules/semgrep/schema.md238Represents [Semgrep Assistant](https://semgrep.dev/docs/semgrep-assistant/overview/) AI-generated data attached to a finCODE
Magic Placeholder Names1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHdocs/root/modules/jumpcloud/config.md18 export JUMPCLOUD_API_KEY="your-api-key"CODE
AI Structural Patterns5 hits · 4 pts
SeverityFileLineSnippetContext
LOWtests/unit/cartography/intel/github/test_repos.py32CODE
LOWcartography/config.py436CODE
LOWcartography/cli.py372CODE
LOWcartography/intel/github/util.py201CODE
LOWcartography/rules/cli.py328CODE
Dead Code1 hit · 2 pts
SeverityFileLineSnippetContext
MEDIUM…cartography/intel/aws/inspector/test_inspector_sync.py247CODE