{
  "schema_version": 1,
  "run_id": "andronagy48-sudo--Khopesh-gpt-6-luna-1795904054224759611",
  "date": "2026-11-28T22:22:51.820384+00:00",
  "repo": "andronagy48-sudo/Khopesh",
  "model": "gpt-6-luna",
  "kind": "repo",
  "mcp": "none",
  "commit": "434591bb8921a8291dfc365c9ddb598b32180e2e",
  "outcome": "pass",
  "time_to_working_s": 147.11221100890543,
  "install_s": null,
  "first_use_s": 1.914,
  "stuck_step": null,
  "what_failed": null,
  "suggested_fix": null,
  "what_it_did": "Scan a local Python source tree and generate SARIF and CycloneDX reports.",
  "needs": [],
  "needs_which": null,
  "missing": null,
  "claims": [
    {
      "kind": "claim",
      "claim": "Scan a source repository and report code vulnerabilities.",
      "source": "**Khopesh** (`v1.2.2`) is a zero-dependency, 9-engine network, CI/CD, and application vulnerability scanner built in Python 3.11+. Point it at an **authorized IPv4/IPv6 host, CIDR subnet (up to `/16`), packet capture, web URL, or source code repository** — it discovers open ports, fingerprints services across arbitrary ports, prioritizes CVEs with **CISA KEV** and **FIRST EPSS**, audits GitHub Actions workflows, exports **CycloneDX v1.5 SBOMs**, and supports inline suppression (`# khopesh: ignore[...]`) and `--baseline` diffing for CI/CD gates.",
      "input": "Local Python source tree with dynamic os.system and subprocess shell=True.",
      "expected": "KHOPESH-SAST-002 and KHOPESH-SAST-003 findings",
      "command": "<guest-path> scan <guest-path> --sarif .coldpass/claim.sarif --sbom .coldpass/claim.cdx.json",
      "verdict": "yes",
      "outcome": "Real input produced the expected result: KHOPESH-SAST-002",
      "evidence": "…KHOPESH-SAST-002\u001b[0m [CWE-78] OS command injection sink via dynamic os.system()\n             \u001b[2mat app.py:5\u001b[0m\n             \u001b[2m| os.system(user_input)\u001b[0m\n             How to Close / Fix:\n               Use `subprocess.run([cmd, arg1, ...], shell=False, check=True)` with an argument list.\n\n  \u001b[31m[HIGH    ]\u001b[0m \u001b[1mKHOPESH-SAST-003\u001b[0m [CWE-78] Subprocess invoked with shell=True and dynamic command\n             \u001b[2mat app.py:6\u001b[0m\n             \u001b[2m| subprocess.run(\"echo \" + user_input, shell=True)\u001b[0m\n             How to Close / Fix:\n               Pass command arguments as a list and set `",
      "cwd": "<guest-path>",
      "hardware_prerequisite": null,
      "returncode": 0,
      "stdout": "        \u001b[2mat app.py:5\u001b[0m\n             \u001b[2m| os.system(user_input)\u001b[0m\n             How to Close / Fix:\n               Use `subprocess.run([cmd, arg1, ...], shell=False, check=True)` with an argument list.\n\n  \u001b[31m[HIGH    ]\u001b[0m \u001b[1mKHOPESH-SAST-003\u001b[0m [CWE-78] Subprocess invoked with shell=True and dynamic command\n             \u001b[2mat app.py:6\u001b[0m\n             \u001b[2m| subprocess.run(\"echo \" + user_input, shell=True)\u001b[0m\n             How to Close / Fix:\n               Pass command arguments as a list and set `shell=False` (the default).\n\n[+] SARIF v2.1.0 report saved to: .coldpass/claim.sarif\n",
      "stderr": "",
      "output_truncated": true,
      "source_checked": true,
      "source_file": "README.md"
    }
  ],
  "example_checks": [
    {
      "kind": "example",
      "claim": "README scan usage example",
      "source": "README.md — Quick Start / Usage Examples, item 3",
      "input": "Local Python source tree with dynamic command execution.",
      "command": "<guest-path> scan <guest-path> --sarif .coldpass/example.sarif --sbom .coldpass/example.cdx.json",
      "evidence": "       \u001b[2mat app.py:5\u001b[0m\n             \u001b[2m| os.system(user_input)\u001b[0m\n             How to Close / Fix:\n               Use `subprocess.run([cmd, arg1, ...], shell=False, check=True)` with an argument list.\n\n  \u001b[31m[HIGH    ]\u001b[0m \u001b[1mKHOPESH-SAST-003\u001b[0m [CWE-78] Subprocess invoked with shell=True and dynamic command\n             \u001b[2mat app.py:6\u001b[0m\n             \u001b[2m| subprocess.run(\"echo \" + user_input, shell=True)\u001b[0m\n             How to Close / Fix:\n               Pass command arguments as a list and set `shell=False` (the default).\n\n[+] SARIF v2.1.0 report saved to: .coldpass/example.sarif",
      "deferred": false,
      "expected": "SAST command injection findings from khopesh scan.",
      "hardware_prerequisite": null,
      "returncode": 0,
      "native_crash": false,
      "stdout": "      \u001b[2mat app.py:5\u001b[0m\n             \u001b[2m| os.system(user_input)\u001b[0m\n             How to Close / Fix:\n               Use `subprocess.run([cmd, arg1, ...], shell=False, check=True)` with an argument list.\n\n  \u001b[31m[HIGH    ]\u001b[0m \u001b[1mKHOPESH-SAST-003\u001b[0m [CWE-78] Subprocess invoked with shell=True and dynamic command\n             \u001b[2mat app.py:6\u001b[0m\n             \u001b[2m| subprocess.run(\"echo \" + user_input, shell=True)\u001b[0m\n             How to Close / Fix:\n               Pass command arguments as a list and set `shell=False` (the default).\n\n[+] SARIF v2.1.0 report saved to: .coldpass/example.sarif\n",
      "stderr": "",
      "output_truncated": true,
      "verdict": "yes",
      "outcome": "command completed successfully"
    }
  ],
  "cycle_checks": [
    {
      "kind": "cycle",
      "claim": "Scheduled or looping main behavior",
      "source": "repository entry points",
      "input": "source inspection",
      "expected": "identify the product trigger",
      "verdict": "yes",
      "outcome": "Inspected the CLI entry point (khopesh/cli.py), orchestrator (khopesh/orchestrator.py), and documented commands; the scanner runs only when invoked and exposes no scheduled or looping cycle.",
      "evidence": "Inspected the CLI entry point (khopesh/cli.py), orchestrator (khopesh/orchestrator.py), and documented commands; the scanner runs only when invoked and exposes no scheduled or looping cycle.",
      "command": ""
    }
  ],
  "maintenance": {
    "archived": false,
    "ci_commit": "434591bb8921a8291dfc365c9ddb598b32180e2e",
    "ci_read_at": "2026-11-28T22:13:44Z",
    "ci_state": "SUCCESS",
    "commits_90d": 66,
    "last_commit_at": "2026-11-28T19:58:28Z",
    "last_release_at": "2026-11-28T22:10:07Z",
    "median_reply_hours": null,
    "merged_prs_90d": 0,
    "note": "actively maintained: last commit 0 days ago; 66 commits and 0 merged PRs in 90 days; 0 open issues, 0 open PRs; latest release 2026-11-28",
    "open_issues": 0,
    "open_prs": 0,
    "reply_share": null,
    "reply_threads": 0,
    "verdict": "maintained"
  },
  "dependencies": [
    "Python 3.12.3",
    "pip",
    "setuptools",
    "khopesh-sec editable install"
  ],
  "local_or_hosted": "local",
  "readme_deviations": [],
  "safety": {
    "version": "z2x-1",
    "summary": "Review signals: 2 hardcoded secret. 1 static matches retained as context.",
    "limitations": [
      "A short run cannot establish that code is safe.",
      "Connections show IP addresses; proxies can hide the final hostname.",
      "Tracing covers dispatched commands and their children, not the whole OS; guest root can interfere with tracing."
    ]
  },
  "observed": {
    "traced": true,
    "trace_truncated": false,
    "network_rule": true,
    "unsorted_contacts": false,
    "protocols_recorded": false,
    "lookups_recorded": true,
    "unsorted_blocked_ports": [],
    "contacts": [],
    "contacts_not_listed": 0,
    "lookups": [
      {
        "owner": "installer",
        "programs": [
          "git-remote-https"
        ],
        "names": [
          "github.com"
        ]
      },
      {
        "owner": "installer",
        "programs": [
          "python"
        ],
        "names": [
          "files.pythonhosted.org",
          "pypi.org"
        ]
      }
    ],
    "credential_reads": [],
    "outside_writes": 0,
    "download_and_run_lines": 0,
    "malware_advisories": [],
    "vulnerabilities": [],
    "secrets": 3,
    "secrets_in_tests": 1,
    "download_lines_in_tests": 0,
    "dependency_versions": 0,
    "scanned": {
      "secrets": true,
      "dependencies": true,
      "source": true
    },
    "capped_kinds": [],
    "findings_capped": false,
    "malware_checked": true,
    "scan_skips": {},
    "compiled": {
      "counts": {},
      "paths": []
    },
    "installed": {
      "packages": 17,
      "malicious": [],
      "vulnerabilities": [
        {
          "package": "pip",
          "version": "24.0",
          "advisory": "GHSA-4xh5-x5gv-qwph"
        },
        {
          "package": "pip",
          "version": "24.0",
          "advisory": "GHSA-58qw-9mgm-455v"
        },
        {
          "package": "pip",
          "version": "24.0",
          "advisory": "GHSA-6vgw-5pg2-w6jp"
        },
        {
          "package": "pip",
          "version": "24.0",
          "advisory": "GHSA-jp4c-xjxw-mgf9"
        },
        {
          "package": "pip",
          "version": "24.0",
          "advisory": "GHSA-qwm4-qh6w-59xr"
        },
        {
          "package": "pip",
          "version": "24.0",
          "advisory": "GHSA-wf93-45jw-7689"
        },
        {
          "package": "pip",
          "version": "24.0",
          "advisory": "PYSEC-2026-1795"
        },
        {
          "package": "pip",
          "version": "24.0",
          "advisory": "PYSEC-2026-1796"
        },
        {
          "package": "pip",
          "version": "24.0",
          "advisory": "PYSEC-2026-196"
        },
        {
          "package": "pip",
          "version": "24.0",
          "advisory": "PYSEC-2026-2875"
        },
        {
          "package": "pip",
          "version": "24.0",
          "advisory": "PYSEC-2026-2876"
        },
        {
          "package": "pip",
          "version": "24.0",
          "advisory": "PYSEC-2026-3721"
        }
      ]
    },
    "installed_inventory": true,
    "installed_partial": false
  },
  "platform": "linux",
  "test_version": "readme-4243f19282e59714a358f5d27849c5ebf3ef413d1667fe1ae5969f004abbb1d7",
  "touched": {
    "evidence_file": "touched.json.gz",
    "linked_files": [
      "agent-events.jsonl.gz",
      "command-output.jsonl.gz"
    ],
    "network": {
      "allowed_hosts": [
        "files.pythonhosted.org",
        "pypi.org"
      ],
      "blocked_hosts": [],
      "canary_checked": true,
      "canary_sent": false,
      "canary_sent_to": [],
      "hosts": [
        "files.pythonhosted.org",
        "pypi.org"
      ],
      "package_registries": [
        "files.pythonhosted.org",
        "pypi.org"
      ],
      "private_address_attempts": 0,
      "recorded": true,
      "repo_hosts": [],
      "unanswered_hosts": [],
      "unattributed": [],
      "hosts_withheld": 2
    },
    "secret_files": {
      "opened_by_agent": [],
      "opened_by_other": [],
      "opened_by_repo": [],
      "planted": [
        "~/.env",
        "~/.ssh/id_ed25519",
        "~/.aws/credentials",
        "~/.config/gh/hosts.yml"
      ],
      "recorded": true
    },
    "version": 1
  },
  "evidence_strength": "readme_checked"
}
