{
  "skill_name": "open-notebook",
  "skill_path": "/home/runner/work/skill-scanner-test/skill-scanner-test/scripts/../skills/K-Dense-AI-scientific-agent-skills/skills/open-notebook",
  "is_safe": false,
  "max_severity": "CRITICAL",
  "findings_count": 7,
  "findings": [
    {
      "id": "CROSSFILE_ENV_VAR_EXFILTRATION_a0edd874a3",
      "rule_id": "BEHAVIOR_CROSSFILE_ENV_VAR_EXFILTRATION",
      "category": "data_exfiltration",
      "severity": "CRITICAL",
      "title": "Cross-file env var exfiltration: 1 files",
      "description": "Environment variable access with network calls in scripts/_common.py",
      "file_path": null,
      "line_number": null,
      "snippet": null,
      "remediation": "Review data flow across files: scripts/_common.py",
      "analyzer": "behavioral",
      "metadata": {
        "aisubtech": "AISubtech-8.2.3",
        "files_involved": [
          "scripts/_common.py"
        ],
        "threat_type": "env_var_exfiltration",
        "evidence": {
          "env_var_files": [
            "scripts/_common.py"
          ],
          "network_files": [
            "scripts/_common.py"
          ]
        },
        "rule_contract": {
          "status": "invalid",
          "schema_version": 2,
          "errors": [
            {
              "code": "UNKNOWN_BUNDLED_PYTHON_RULE",
              "rule_id": "BEHAVIOR_CROSSFILE_ENV_VAR_EXFILTRATION",
              "expected": "declared core schema-v2 Python rule",
              "actual": "missing"
            }
          ]
        },
        "aitech": "AITech-8.2",
        "aitech_name": "Data Exfiltration / Exposure",
        "aisubtech_name": "Data Exfiltration via Agent Tooling",
        "aitech_mappings": [
          "OWASP: LLM02:2026: Sensitive Information Disclosure",
          "OWASP: ASI09: Human-Agent Trust Exploitation",
          "MITRE ATLAS: AML.T0024.000: Exfiltration via AI Inference API: Infer Training Data Membership",
          "MITRE ATLAS: AML.T0035: AI Artifact Collection",
          "MITRE ATLAS: AML.T0037: Data From Local System",
          "MITRE ATLAS: AML.T0057: LLM Data Leakage",
          "NIST AML: NISTAML.037: Training Data Attacks"
        ],
        "aisubtech_mappings": [
          "OWASP: LLM02:2026: Sensitive Information Disclosure",
          "OWASP: ASI02: Tool Misuse & Exploitation",
          "OWASP: ASI09: Human-Agent Trust Exploitation",
          "MITRE ATLAS: AML.T0086: Exfiltration via AI Agent Tool Invocation",
          "NIST AML: N/A"
        ],
        "framework_mappings": [
          "OWASP: LLM02:2026: Sensitive Information Disclosure",
          "OWASP: ASI02: Tool Misuse & Exploitation",
          "OWASP: ASI09: Human-Agent Trust Exploitation",
          "MITRE ATLAS: AML.T0086: Exfiltration via AI Agent Tool Invocation",
          "NIST AML: N/A"
        ],
        "taxonomy_status": "mapped",
        "taxonomy_source": "finding"
      }
    },
    {
      "id": "CROSSFILE_EXFILTRATION_CHAIN_4c36c4af03",
      "rule_id": "BEHAVIOR_CROSSFILE_EXFILTRATION_CHAIN",
      "category": "data_exfiltration",
      "severity": "CRITICAL",
      "title": "Cross-file exfiltration chain: 1 files",
      "description": "Multi-file exfiltration chain detected: scripts/_common.py collect data \u2192 encode \u2192 scripts/_common.py transmit to network",
      "file_path": null,
      "line_number": null,
      "snippet": null,
      "remediation": "Review data flow across files: scripts/_common.py",
      "analyzer": "behavioral",
      "metadata": {
        "aisubtech": "AISubtech-8.2.3",
        "files_involved": [
          "scripts/_common.py"
        ],
        "threat_type": "exfiltration_chain",
        "evidence": {
          "collection_files": [
            "scripts/_common.py"
          ],
          "encoding_files": [],
          "network_files": [
            "scripts/_common.py"
          ]
        },
        "rule_contract": {
          "status": "invalid",
          "schema_version": 2,
          "errors": [
            {
              "code": "UNKNOWN_BUNDLED_PYTHON_RULE",
              "rule_id": "BEHAVIOR_CROSSFILE_EXFILTRATION_CHAIN",
              "expected": "declared core schema-v2 Python rule",
              "actual": "missing"
            }
          ]
        },
        "aitech": "AITech-8.2",
        "aitech_name": "Data Exfiltration / Exposure",
        "aisubtech_name": "Data Exfiltration via Agent Tooling",
        "aitech_mappings": [
          "OWASP: LLM02:2026: Sensitive Information Disclosure",
          "OWASP: ASI09: Human-Agent Trust Exploitation",
          "MITRE ATLAS: AML.T0024.000: Exfiltration via AI Inference API: Infer Training Data Membership",
          "MITRE ATLAS: AML.T0035: AI Artifact Collection",
          "MITRE ATLAS: AML.T0037: Data From Local System",
          "MITRE ATLAS: AML.T0057: LLM Data Leakage",
          "NIST AML: NISTAML.037: Training Data Attacks"
        ],
        "aisubtech_mappings": [
          "OWASP: LLM02:2026: Sensitive Information Disclosure",
          "OWASP: ASI02: Tool Misuse & Exploitation",
          "OWASP: ASI09: Human-Agent Trust Exploitation",
          "MITRE ATLAS: AML.T0086: Exfiltration via AI Agent Tool Invocation",
          "NIST AML: N/A"
        ],
        "framework_mappings": [
          "OWASP: LLM02:2026: Sensitive Information Disclosure",
          "OWASP: ASI02: Tool Misuse & Exploitation",
          "OWASP: ASI09: Human-Agent Trust Exploitation",
          "MITRE ATLAS: AML.T0086: Exfiltration via AI Agent Tool Invocation",
          "NIST AML: N/A"
        ],
        "taxonomy_status": "mapped",
        "taxonomy_source": "finding"
      }
    },
    {
      "id": "ENV_VAR_EXFILTRATION_f0b8483f86",
      "rule_id": "BEHAVIOR_ENV_VAR_EXFILTRATION",
      "category": "data_exfiltration",
      "severity": "CRITICAL",
      "title": "Environment variable access with network calls detected",
      "description": "Script accesses environment variables and makes network calls in /home/runner/work/skill-scanner-test/skill-scanner-test/skills/K-Dense-AI-scientific-agent-skills/skills/open-notebook/scripts/_common.py",
      "file_path": "/home/runner/work/skill-scanner-test/skill-scanner-test/skills/K-Dense-AI-scientific-agent-skills/skills/open-notebook/scripts/_common.py",
      "line_number": null,
      "snippet": null,
      "remediation": "Remove environment variable harvesting or network transmission",
      "analyzer": "behavioral",
      "metadata": {
        "has_network": true,
        "has_env_access": true,
        "suspicious_urls": [],
        "aitech": "AITech-8.2",
        "aitech_name": "Data Exfiltration / Exposure",
        "aisubtech": "AISubtech-8.2.3",
        "aisubtech_name": "Data Exfiltration via Agent Tooling",
        "aitech_mappings": [
          "OWASP: LLM02:2026: Sensitive Information Disclosure",
          "OWASP: ASI09: Human-Agent Trust Exploitation",
          "MITRE ATLAS: AML.T0024.000: Exfiltration via AI Inference API: Infer Training Data Membership",
          "MITRE ATLAS: AML.T0035: AI Artifact Collection",
          "MITRE ATLAS: AML.T0037: Data From Local System",
          "MITRE ATLAS: AML.T0057: LLM Data Leakage",
          "NIST AML: NISTAML.037: Training Data Attacks"
        ],
        "aisubtech_mappings": [
          "OWASP: LLM02:2026: Sensitive Information Disclosure",
          "OWASP: ASI02: Tool Misuse & Exploitation",
          "OWASP: ASI09: Human-Agent Trust Exploitation",
          "MITRE ATLAS: AML.T0086: Exfiltration via AI Agent Tool Invocation",
          "NIST AML: N/A"
        ],
        "framework_mappings": [
          "OWASP: LLM02:2026: Sensitive Information Disclosure",
          "OWASP: ASI02: Tool Misuse & Exploitation",
          "OWASP: ASI09: Human-Agent Trust Exploitation",
          "MITRE ATLAS: AML.T0086: Exfiltration via AI Agent Tool Invocation",
          "NIST AML: N/A"
        ],
        "taxonomy_status": "mapped",
        "taxonomy_source": "rule"
      }
    },
    {
      "id": "DESC_BEHAVIOR_MISMATCH_a1539d0718",
      "rule_id": "SOCIAL_ENG_MISLEADING_DESC",
      "category": "social_engineering",
      "severity": "MEDIUM",
      "title": "Potential description-behavior mismatch",
      "description": "Skill performs actions not reflected in its description",
      "file_path": "SKILL.md",
      "line_number": null,
      "snippet": null,
      "remediation": "Ensure description accurately reflects all skill capabilities",
      "analyzer": "static",
      "metadata": {
        "aitech": "AITech-4.3",
        "aitech_name": "Protocol Manipulation",
        "aisubtech": "AISubtech-4.3.5",
        "aisubtech_name": "Capability Inflation",
        "aitech_mappings": [
          "OWASP: LLM03:2026: Excessive Agency",
          "OWASP: ASI07: Insecure Inter-Agent Communication",
          "MITRE ATLAS: AML.T0067: LLM Trusted Output Component Manipulation",
          "MITRE ATLAS: AML.T0018: Manipulate AI Model",
          "MITRE ATT&CK: T1203: Exploitation for Client Execution",
          "NIST AML: NISTAML.024: Targeted Poisoning"
        ],
        "aisubtech_mappings": [
          "OWASP: LLM03:2026: Excessive Agency",
          "OWASP: ASI03: Identity & Privilege Abuse",
          "OWASP: ASI07: Insecure Inter-Agent Communication",
          "MITRE ATLAS: AML.T0053: LLM Plugin Compromise",
          "NIST AML: N/A"
        ],
        "framework_mappings": [
          "OWASP: LLM03:2026: Excessive Agency",
          "OWASP: ASI03: Identity & Privilege Abuse",
          "OWASP: ASI07: Insecure Inter-Agent Communication",
          "MITRE ATLAS: AML.T0053: LLM Plugin Compromise",
          "NIST AML: N/A"
        ],
        "taxonomy_status": "mapped",
        "taxonomy_source": "rule"
      }
    },
    {
      "id": "CORRELATED_SENSITIVE_NETWORK_FLOW_12ea1d207fad",
      "rule_id": "CORRELATED_SENSITIVE_NETWORK_FLOW",
      "category": "data_exfiltration",
      "severity": "HIGH",
      "title": "Sensitive source reaches a network sink",
      "description": "Correlated sensitive_environment \u2192 network behavior across scripts/_common.py.",
      "file_path": "scripts/_common.py",
      "line_number": 29,
      "snippet": null,
      "remediation": "Remove the transmission or constrain it to explicitly declared, trusted destinations.",
      "analyzer": "correlation",
      "metadata": {
        "files_involved": [
          "scripts/_common.py"
        ],
        "semantic_facts": {
          "evidence_kind": "correlated_behavior",
          "context_kind": "code",
          "commands": [
            {
              "executable": "requests",
              "argument_classes": [
                "request_method",
                "credential_authentication",
                "destination_dynamic"
              ],
              "downloads": false,
              "executes": false,
              "destructive": false,
              "privilege_change": false,
              "source_class": "",
              "sink_class": "network",
              "file_path": "scripts/_common.py"
            }
          ],
          "urls": [],
          "flows": [
            {
              "source_class": "sensitive_environment",
              "sink_class": "network",
              "transforms": [],
              "cross_file": false,
              "source_path": "scripts/_common.py",
              "sink_path": "scripts/_common.py"
            }
          ],
          "reference_edges": [],
          "signals": [
            {
              "rule_id": "CORRELATION_SIGNAL",
              "kind": "correlated_behavior",
              "file_path": "scripts/_common.py",
              "value_class": "sensitive_source"
            }
          ],
          "candidate_flow": {
            "source_class": "sensitive_environment",
            "sink_class": "network",
            "transforms": [],
            "cross_file": false,
            "source_path": "scripts/_common.py",
            "sink_path": "scripts/_common.py"
          }
        },
        "aitech": "AITech-8.2",
        "aitech_name": "Data Exfiltration / Exposure",
        "aisubtech": "AISubtech-8.2.3",
        "aisubtech_name": "Data Exfiltration via Agent Tooling",
        "aitech_mappings": [
          "OWASP: LLM02:2026: Sensitive Information Disclosure",
          "OWASP: ASI09: Human-Agent Trust Exploitation",
          "MITRE ATLAS: AML.T0024.000: Exfiltration via AI Inference API: Infer Training Data Membership",
          "MITRE ATLAS: AML.T0035: AI Artifact Collection",
          "MITRE ATLAS: AML.T0037: Data From Local System",
          "MITRE ATLAS: AML.T0057: LLM Data Leakage",
          "NIST AML: NISTAML.037: Training Data Attacks"
        ],
        "aisubtech_mappings": [
          "OWASP: LLM02:2026: Sensitive Information Disclosure",
          "OWASP: ASI02: Tool Misuse & Exploitation",
          "OWASP: ASI09: Human-Agent Trust Exploitation",
          "MITRE ATLAS: AML.T0086: Exfiltration via AI Agent Tool Invocation",
          "NIST AML: N/A"
        ],
        "framework_mappings": [
          "OWASP: LLM02:2026: Sensitive Information Disclosure",
          "OWASP: ASI02: Tool Misuse & Exploitation",
          "OWASP: ASI09: Human-Agent Trust Exploitation",
          "MITRE ATLAS: AML.T0086: Exfiltration via AI Agent Tool Invocation",
          "NIST AML: N/A"
        ],
        "taxonomy_status": "mapped",
        "taxonomy_source": "rule"
      }
    },
    {
      "id": "DATA_EXFIL_NETWORK_REQUESTS_629ce8f187",
      "rule_id": "DATA_EXFIL_NETWORK_REQUESTS",
      "category": "data_exfiltration",
      "severity": "MEDIUM",
      "title": "Outbound network request primitives that can transmit data externally",
      "description": "Pattern detected: requests.request(",
      "file_path": "scripts/_common.py",
      "line_number": 29,
      "snippet": "response = requests.request(",
      "remediation": "Ensure network operations are necessary and document allowed destinations",
      "analyzer": "static",
      "metadata": {
        "matched_pattern": "requests\\.(?:get|post|put|delete|patch|request)\\s*\\(",
        "matched_text": "requests.request(",
        "signature_pattern_index": 0,
        "signature_match_start": 11,
        "signature_match_end": 28,
        "signature_pattern_sha256": "cacd60a0c4b378765820016ec26f039b156d34fcbf13f99d9c0cc464990279b6",
        "scanner_category": "SECURITY VIOLATION",
        "signature_context": "code",
        "signature_polarity": "active",
        "source_category": "data_exfiltration",
        "category_normalization": "native",
        "semantic_facts": {
          "evidence_kind": "signature_pattern",
          "context_kind": "code",
          "signals": [
            {
              "rule_id": "DATA_EXFIL_NETWORK_REQUESTS",
              "kind": "signature_polarity",
              "file_path": "scripts/_common.py",
              "value_class": "active"
            }
          ]
        },
        "aitech": "AITech-8.2",
        "aitech_name": "Data Exfiltration / Exposure",
        "aisubtech": "AISubtech-8.2.3",
        "aisubtech_name": "Data Exfiltration via Agent Tooling",
        "aitech_mappings": [
          "OWASP: LLM02:2026: Sensitive Information Disclosure",
          "OWASP: ASI09: Human-Agent Trust Exploitation",
          "MITRE ATLAS: AML.T0024.000: Exfiltration via AI Inference API: Infer Training Data Membership",
          "MITRE ATLAS: AML.T0035: AI Artifact Collection",
          "MITRE ATLAS: AML.T0037: Data From Local System",
          "MITRE ATLAS: AML.T0057: LLM Data Leakage",
          "NIST AML: NISTAML.037: Training Data Attacks"
        ],
        "aisubtech_mappings": [
          "OWASP: LLM02:2026: Sensitive Information Disclosure",
          "OWASP: ASI02: Tool Misuse & Exploitation",
          "OWASP: ASI09: Human-Agent Trust Exploitation",
          "MITRE ATLAS: AML.T0086: Exfiltration via AI Agent Tool Invocation",
          "NIST AML: N/A"
        ],
        "framework_mappings": [
          "OWASP: LLM02:2026: Sensitive Information Disclosure",
          "OWASP: ASI02: Tool Misuse & Exploitation",
          "OWASP: ASI09: Human-Agent Trust Exploitation",
          "MITRE ATLAS: AML.T0086: Exfiltration via AI Agent Tool Invocation",
          "NIST AML: N/A"
        ],
        "taxonomy_status": "mapped",
        "taxonomy_source": "rule"
      }
    },
    {
      "id": "RESOURCE_ABUSE_INFINITE_LOOP_ba7dad1d71",
      "rule_id": "RESOURCE_ABUSE_INFINITE_LOOP",
      "category": "resource_abuse",
      "severity": "HIGH",
      "title": "Infinite loop without clear exit condition",
      "description": "Pattern detected: while True:",
      "file_path": "scripts/source_ingestion.py",
      "line_number": 56,
      "snippet": "while True:",
      "remediation": "Add proper exit conditions or limits to loops",
      "analyzer": "static",
      "metadata": {
        "matched_pattern": "while\\s+True\\s*:",
        "matched_text": "while True:",
        "signature_pattern_index": 0,
        "signature_match_start": 0,
        "signature_match_end": 11,
        "signature_pattern_sha256": "9cba9ba996ebf23d2460119d56cc3893566226b4a6467645c621a7405d75595b",
        "scanner_category": "RESOURCE ABUSE",
        "signature_context": "code",
        "signature_polarity": "active",
        "source_category": "resource_abuse",
        "category_normalization": "native",
        "semantic_facts": {
          "evidence_kind": "signature_pattern",
          "context_kind": "code",
          "signals": [
            {
              "rule_id": "RESOURCE_ABUSE_INFINITE_LOOP",
              "kind": "signature_polarity",
              "file_path": "scripts/source_ingestion.py",
              "value_class": "active"
            }
          ]
        },
        "reference_depth": 0,
        "aitech": "AITech-13.1",
        "aitech_name": "Disruption of Availability",
        "aisubtech": "AISubtech-13.1.1",
        "aisubtech_name": "Compute Exhaustion",
        "aitech_mappings": [
          "OWASP: LLM06:2026: Unbounded Consumption",
          "OWASP: ASI08: Cascading Failures",
          "MITRE ATLAS: AML.T0029: Denial of AI Service",
          "NIST AML: N/A"
        ],
        "aisubtech_mappings": [
          "OWASP: LLM06:2026: Unbounded Consumption",
          "OWASP: ASI08: Cascading Failures",
          "MITRE ATLAS: AML.T0029: Denial of AI Service",
          "NIST AML: N/A"
        ],
        "framework_mappings": [
          "OWASP: LLM06:2026: Unbounded Consumption",
          "OWASP: ASI08: Cascading Failures",
          "MITRE ATLAS: AML.T0029: Denial of AI Service",
          "NIST AML: N/A"
        ],
        "taxonomy_status": "mapped",
        "taxonomy_source": "rule"
      }
    }
  ],
  "scan_duration_seconds": 0.3430297374725342,
  "duration_ms": 343,
  "analyzers_used": [
    "static_analyzer",
    "bytecode",
    "pipeline",
    "correlation",
    "behavioral_analyzer",
    "trigger_analyzer"
  ],
  "timestamp": "2026-10-21T21:37:08.557281+00:00",
  "scan_metadata": {
    "policy_name": "default",
    "policy_version": "1.0",
    "policy_preset_base": "balanced",
    "policy_fingerprint_sha256": "3f48e661bfbc54597f97bbf3dcf2c1cbae2f596ddc79c0b44784efea326b3d1d",
    "cel": {
      "mode": "shadow",
      "runtime": "cel-go",
      "runtime_version": "v0.32.0;helper=2.3.1",
      "fact_schema": "v1",
      "expression_set_hash": "f26459b8f4a46a974d7ab0aaae34127b5b6a40d693e266e12fca03a69a6d26aa",
      "evaluated": 0,
      "retained": 7,
      "would_suppress": 0,
      "suppressed": 0,
      "fallbacks": 0,
      "projection_incomplete": 0,
      "elapsed_ms": 0.0,
      "projection_ms": 0.0,
      "evaluation_ms": 0.0,
      "errors": [],
      "per_rule": {},
      "suppressed_candidates": []
    },
    "rule_contract": {
      "status": "failed",
      "schema_version": 2,
      "checked": 5,
      "invalid_findings": 2,
      "errors": [
        {
          "code": "UNKNOWN_BUNDLED_PYTHON_RULE",
          "rule_id": "BEHAVIOR_CROSSFILE_EXFILTRATION_CHAIN",
          "expected": "declared core schema-v2 Python rule",
          "actual": "missing"
        },
        {
          "code": "UNKNOWN_BUNDLED_PYTHON_RULE",
          "rule_id": "BEHAVIOR_CROSSFILE_ENV_VAR_EXFILTRATION",
          "expected": "declared core schema-v2 Python rule",
          "actual": "missing"
        }
      ]
    },
    "taxonomy": {
      "source": "builtin",
      "version": "2.0.0",
      "name": "Cisco AI Security and Safety Taxonomy",
      "revision": "655a343ac943a51b6f61f86e47156e7752c15dc6",
      "snapshot_sha256": "413e8ce9081e6d91b78aaa0d0b1c06cdc15d0406ad319e23e9f9f4f80735c441",
      "findings": {
        "mapped": 7,
        "not_applicable": 0,
        "unmapped": 0
      }
    }
  },
  "analyzers_failed": [
    {
      "analyzer": "behavioral",
      "error": "FindingContract:BEHAVIOR_CROSSFILE_EXFILTRATION_CHAIN:UNKNOWN_BUNDLED_PYTHON_RULE"
    },
    {
      "analyzer": "behavioral",
      "error": "FindingContract:BEHAVIOR_CROSSFILE_ENV_VAR_EXFILTRATION:UNKNOWN_BUNDLED_PYTHON_RULE"
    }
  ],
  "scanner_version": "2.3.1",
  "source": "K-Dense-AI",
  "repo_url": "https://github.com/K-Dense-AI/scientific-agent-skills"
}