Haldwani Times
Haldwani Times
Technology

agent-supply-chain-auditor 0.8.0

agent-supply-chain-auditor 0.8.0
Photo / Illustration: Haldwani Times Editorial Desk

Skip to main content Switch to mobile version agent-supply-chain-auditor 0.8.0 Find the API keys, unpinned MCP servers and risky settings your AI agents left on your machine, in one command.

pip install agent-supply-chain-auditor==0.8.0 Copy PIP instructions

Find the API keys, unpinned MCP servers and risky settings your AI agents left on your machine, in one command. Works with Claude Code, Codex, Cursor, Claude Desktop, Hermes and any MCP client. Python standard library only, no network calls by default, and it never prints your secrets.

Try it on sample data first: asca demo (from a git clone: python3 -m asca demo). See Install.

$ asca --repos ~/Projects --telegram fail --env-file ~/.hermes/.env asca 0.8.0: FAIL (fail-on high) critical=1 high=2 medium=1 low=5 info=2 suppressed=0 agents on this host: ✅ Hermes Agent 0.23.4 (agent): no known vulnerabilities ⚠️ Claude Code 2.1.128 (CLI): 6 known vulnerabilities (worst: high) [CRITICAL] core.fsmonitor names a program git runs on every index refresh ~/Projects/downloaded-repo/.git/config:3 [HIGH] Hub skill `some-community-skill` is not pinned to a commit ~/.hermes/skills/.hub/lock.json#installed.some-community-skill ... report: asca-report.md (asca-report.json) What it checks

Also included: an egress auditor that logs where your agents connect and alerts on new destinations, a fleet patch monitor that tells you how many Hermes security fixes each instance is behind, a fake-app & skill scanner for look-alike names and malicious skill content, and an IDE & agent inventory that records installed extensions, MCP servers, plugins and skills and alerts when they change.

Safety properties of the auditor itself

It never runs git. Running git status inside a hostile repo is exactly how GitSpawn fires, so .git/config is parsed as text. A test (test_never_invokes_git) blocks process spawning and asserts the payload never runs.

It never prints secrets. Findings show a 4-char prefix, the length, and a short SHA-256 tag, so you can tell which key leaked without the report becoming a leak itself. Reports are written 0600.

It fails closed. An unparseable lock file or config produces a HIGH scanner.parse-error finding instead of a silent pass.

It has no dependencies. Python ≥3.10 stdlib only. YAML is read by a small built-in parser (PyYAML's safe_load is used instead if it happens to be installed). The built-in parser is differential-tested against PyYAML on real Hermes configs and skill front-matter.

Two ways, same program: every command and option works the same in both, and CI checks that on Linux, macOS and Windows (scripts/parity_check.py).

A. Install the asca command. Recommended if you don't use git or Python. You don't need either.

B. Clone the repo and run python3 -m asca. For developers, or if you want to read the code you run. It needs git and Python 3.10+, and nothing else.

On PyPI as agent-supply-chain-auditor (the name asca was taken on PyPI; the command is still asca).

A. Install the asca command (no git, no system Python)

1. Install uv once. It's a small installer for Python tools. It brings its own Python, so the one that came with your computer doesn't matter: macOS and RHEL 9 ship Python 3.9, which is too old for asca, and on a fresh Mac python3 or git opens an Xcode prompt.

No Homebrew, winget or package? uv's own installer also works, but read it before you run it: curl -LsSf https://astral.sh/uv/install.sh | less, then curl -LsSf https://astral.sh/uv/install.sh | sh (Windows: powershell -c "irm https://astral.sh/uv/install.ps1 | more", then powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex").

2. Install asca and run it:

uv tool install --python 3.12 agent-supply-chain-auditor asca demo # see a result in about 10 seconds, without scanning your machine asca doctor # what asca can see on your machine (agents, transcripts, repos) asca --repos ~/Projects # then scan your own machine (read-only, no network); Windows: --repos $HOME\Projects --python 3.12 tells uv to use its own Python 3.12, and download it the first time if needed. asca itself has no dependencies; the package is asca's standard-library code and nothing else.

asca: command not found? Run uv tool update-shell and open a new terminal.

Update: uv tool upgrade agent-supply-chain-auditor. Remove: uv tool uninstall agent-supply-chain-auditor.

Already use pipx? pipx install agent-supply-chain-auditor does the same.

Each release is published from GitHub Actions with PyPI trusted publishing (no stored tokens), with PyPI attestations and GitHub build provenance for its files. See docs/releasing.md.

git clone https://github.com/borabaysal/Agent_Supply_Chain_Auditor && cd Agent_Supply_Chain_Auditor python3 -m asca demo # see a result in about 10 seconds, without scanning your machine python3 -m asca doctor # what asca can see on your machine (agents, transcripts, repos) python3 -m asca # then scan your own machine (read-only, no network) Everywhere this README says asca ..., python3 -m asca ... from the clone does the same (and asca-egress, asca-fleet, asca-skills, asca-inventory are python3 -m asca.egress, .fleet, .skillscan, .inventory). Hints that asca prints use whichever form you started it with.

Try it first: asca demo

asca demo builds a throwaway fake home in a temp folder, plants fake problems in it, runs the normal audit, the IDE inventory and check-repo on it, prints the usual report under a DEMO banner, and deletes the folder. You see what a real finding looks like before pointing asca at your own files.

Planted: a key-shaped string in a Claude Code transcript, an unpinned and an archived MCP server, a database password in a Claude Code allow rule, core.fsmonitor in a downloaded repo, a VS Code task that runs on folder open, a .pth startup hook nobody installed, a Codex config pointed at a relay with the sandbox off, and a VS Code extension changed after install. The end of the output lists each one and whether asca found it.

Nothing real is read. The audit runs with --home-only and HOME/USERPROFILE/APPDATA pointing into the temp folder (restored afterwards). Managed settings, /etc, Docker, TCC, global npm/brew, cron, the registry and environment overrides are skipped.

No network, and nothing is written outside the temp folder. Nothing planted is ever executed.

The fake keys are made at run time with an asca-demo marker, so asca's source holds no key-shaped strings. --keep leaves the folder in place for you to look around; --format json prints the findings.

The website's interactive demo replays real output from this command: examples/demo-report.json (the planted setup, FAIL) and examples/demo-report-fixed.json (after every planted fix, PASS). They're regenerated with python3 -m asca demo --write-reports examples (Linux, Python 3.11+), and a test fails if they no longer match what asca reports.

What can asca see here? asca doctor

Run it before the first scan, or when a scan finds nothing and you expected something:

python3 -m asca doctor # add --repos to count the repos the scan would check python3 -m asca doctor --format json asca doctor: read-only, folder names and counts only (no file contents, no network) asca 0.8.0, Python 3.12.8, macOS 15.6 Agents: Hermes Agent found, readable 1204 history file(s) [~/.hermes] Claude Code found, readable 212 history file(s) [~/.claude] Claude Desktop found, readable [~/Library/Application Support/Claude] Codex CLI found, partly readable 31 history file(s), 4 not readable [~/.codex] fix: permissions: run asca as the user who uses this agent, or give yourself read access (chmod -R u+rX on it) Cursor not found ... Meta Muse found, NOT readable [~/Library/Application Support/Muse] fix: macOS privacy protection: give your terminal app Full Disk Access (System Settings > Privacy & Security > Full Disk Access, add Terminal / iTerm / your IDE), then open a new terminal window Repos: 6 git repo(s) under 1 --repos folder(s) Baseline: none Inventory history: none Telegram alerts: not configured Full Disk Access for this terminal: not granted (only needed if an agent above is NOT readable) asca doctor: 4 agents found (2 readable), 1447 transcripts, 6 repos, baseline none (Illustrative output.) For each agent it tells you found, readable / partly readable / NOT readable / not found, how many history files the transcript scan would read, and for anything it can't read, why and how to fix it: file permissions, a folder owned by another user, or macOS Full Disk Access. It also counts the git repos under --repos and says whether a baseline, inventory history and Telegram alerts are set up (yes/no only).

Safe to paste into a chat or an issue. Home is shown as ~; agent folders appear only as their default ~/... location, and a custom location ($HERMES_HOME, $CLAUDE_CONFIG_DIR, $CODEX_HOME) shows as "custom location". It never prints usernames, hostnames, repo or file names, or token values. The tests check this.

Reads no file contents. It lists folders and counts names. To test permissions it opens up to 200 history files per folder and closes them without reading a byte, because macOS privacy protection can report a file as readable and then refuse to open it.

The last line is a one-line summary to copy when someone asks "what does asca see?".

--home-only also works on its own: it reads only the home folder, --repos and paths given on the command line. That's useful for a mounted home or a CI job. Agent versions are still checked, but only for installs inside the home folder (per-user npm prefixes, nvm, the native Claude installer, ~/Applications).

asca # Hermes home ($HERMES_HOME or ~/.hermes) + MCP client configs + global git config asca --repos ~/Projects --repos ~/Downloads # also audit every git repo under these dirs (4 levels deep) asca --mcp-config ./some/mcp.json # extra MCP client config asca --fail-on critical # threshold: info|low|medium|high|critical (default high) asca -o reports/2026-10-05 # writes reports/2026-10-05.md and .json asca --format json # machine-readable on stdout asca --no-session-history # skip transcript scanning (on by default) asca --session-budget-mb 4096 # read more history per run (default 1024 MiB, newest first) asca --model-hash-budget-mb 20000 # verify more cached model weights per run (default 2048 MiB) asca --instructions-dir ~/shared # also look for stray AGENTS.md/CLAUDE.md here Agents on this host (every run)

Every audit starts by listing the agents it found and their versions, read from files only, whatever checks you switched off. For example:

asca 0.8.0: FAIL (fail-on high) critical=0 high=2 medium=1 low=3 info=1 suppressed=0 agents on this host: ✅ Hermes Agent 0.23.4 (agent): no known vulnerabilities ⚠️ Claude Code 2.1.128 (CLI): 6 known vulnerabilities (worst: high) ✅ Meta Muse 14.1 (1124369063) (desktop app): no known vulnerabilities It covers Hermes Agent, Claude Code, Codex CLI, Gemini CLI, goose, OpenCode and Claude Desktop (every copy, e.g. two npm prefixes give two rows) and, on macOS, the ChatGPT, Codex and Meta Muse apps. The same table is the "Agents on this host" section of the Markdown report and the agents list in the JSON (name, version, kind, where, known_vulnerabilities, worst). The vulnerability count comes from the same run's version checks, so it's 0 when --no-agent-versions is set. A host with none says so. Telegram alerts carry it as one line (🤖 Agents: Hermes Agent 0.23.4 ✅ · Claude Code 2.1.128 ⚠️ 6). asca demo plants an outdated Claude Code in its fake home so the section has something to show; with --home-only (which the demo uses) only installs inside the home folder are listed.

Exit codes: 0 PASS · 1 FAIL · 2 usage/config/alert-delivery error.

Accepting a risk (baseline)

asca --write-baseline asca-baseline.json # snapshot current fingerprints # edit the "reason" fields, then: asca --baseline asca-baseline.json # suppressed findings are listed but don't fail Fingerprints are sha256(rule, location, subject), so a new problem in the same file still fails.

export TELEGRAM_BOT_TOKEN=... # or ASCA_TELEGRAM_BOT_TOKEN export TELEGRAM_CHAT_ID=... # or ASCA_TELEGRAM_CHAT_ID / TELEGRAM_HOME_CHANNEL / --telegram-chat asca --telegram fail # alert only on FAIL asca --telegram change # alert when PASS/FAIL or the failing set changes vs the previous report asca --telegram always asca --env-file ~/.hermes/.env --telegram fail # reuse the Hermes gateway's bot settings The alert lists counts, up to 8 failing findings, and the report path. It never includes secret material.

Scheduling (daily, alert only on change)

scripts/asca-daily.sh wraps the CLI for schedulers. It keeps reports in ~/.local/state/asca (mode 700), and --telegram change compares each run against the previous one, so you only get a message when PASS/FAIL or the set of failing findings changes. It also keeps the last 60 dated JSON reports.

# environment knobs (all optional) export ASCA_ENV_FILE=~/.hermes/.env # TELEGRAM_BOT_TOKEN + TELEGRAM_CHAT_ID (or TELEGRAM_HOME_CHANNEL) export ASCA_ARGS="--repos $HOME/Projects --baseline $HOME/.config/asca/baseline.json" scripts/asca-daily.sh macOS (launchd): full guide in docs/macos.md. Short version:

mkdir -p ~/.config/asca && cp examples/macos/asca.conf ~/.config/asca/ # set repos, times, host label printf 'TELEGRAM_BOT_TOKEN=\nTELEGRAM_CHAT_ID=\n' > ~/.config/asca/telegram.env && chmod 600 ~/.config/asca/telegram.env ASCA_TELEGRAM=never scripts/macos/asca-run.sh audit # first run by hand; review ~/.local/state/asca/audit/latest.md scripts/macos/install-launchd.sh # daily audit 08:00, skills 08:10, inventory 08:15 cron

0 7 * * * ASCA_ENV_FILE=$HOME/.hermes/.env ASCA_ARGS="--repos $HOME/Projects" /path/to/Agent_Supply_Chain_Auditor/scripts/asca-daily.sh >/dev/null 2>&1 Hermes Agent scheduler (no LLM tokens: the script itself is the job)

cronjob create schedule="0 7 * * *" no_agent=true script= deliver=local Use deliver=local so Hermes doesn't post the script's stdout as well. asca sends the Telegram alert itself, and only on change.

systemd (user timer)

# ~/.config/systemd/user/asca.service [Service] Type=oneshot Environment=ASCA_ENV_FILE=%h/.hermes/.env Environment=ASCA_ARGS=--repos %h/Projects ExecStart=%h/Agent_Supply_Chain_Auditor/scripts/asca-daily.sh SuccessExitStatus=1 # ~/.config/systemd/user/asca.timer [Timer] OnCalendar=*-*-* 07:00 Persistent=true [Install] WantedBy=timers.target Session history (secret.session-history)

Agents save every tool result. When an agent reads .env or prints a config, the key ends up in a transcript that outlives the file, and any later skill that "summarises past sessions" can read it. Backslash's research found about 3 in 4 secrets in Claude Code/Cursor/Codex history came from the agent's own tool output, and a "weekly report" skill pulled keys that a direct .env-read guard had blocked.

The same secret patterns and placeholder filters as the rest of asca. JSON string escapes (up to 3 levels, since tool arguments are JSON inside JSON) are undone first, so \"api_key\": \"…\" and \n-joined .env dumps are found.

One finding per distinct secret. It shows the redacted preview, how many times and in how many files it appears, which agents, and up to 5 example file:line locations. The fingerprint is the secret's hash, so it stays stable as transcripts pile up. Private keys are identified by their body, and no preview is shown.

Severity: HIGH, or MEDIUM for the heuristic api_key=/password= assignment rule.

secret.session-history-permissions (MEDIUM): one finding per history root that has files or dirs group/other can read and reach, meaning every parent dir is traversable. A 0644 transcript under a 0700 home isn't reported.

Bounded. Files are scanned newest first (recent keys are likelier to be live). There are three limits, each with a flag: --session-file-cap-mb (default 32), --session-budget-mb (1024) and --session-max-files (100000). Hitting a limit produces a LOW secret.session-history-budget finding, so a partial scan never looks like a clean pass. Unreadable transcripts and corrupt SQLite files produce scanner.parse-error.

Cursor databases are opened with stdlib sqlite3 in read-only URI mode (mode=ro). If that fails, it retries with immutable=1, which never writes but ignores an un-checkpointed WAL.

Turn it off with --no-session-history.

Measured on a real Hermes host: 45,482 files (562 MB) in ~67 s. Opening files dominates, so small files are prefetched by 8 threads.

Keys that went to a model provider (secret.sent-to-provider, agent.provider-routing)

A transcript is what the agent sent to its model, so a key in it didn't only leak to disk. In November 2026 Dragos sent about two million prompts holding bait credentials through AI routers and providers. Keys stolen at three inference providers were used for tens of thousands of AWS API calls, some from requests marked Zero Data Retention. OpenRouter then dropped three providers and linked the providers' own incident notices.

For each key the session-history check finds, asca looks up where that agent sends its prompts today: Hermes model.provider / model.base_url and provider_routing (per profile), Codex's selected model_provider and openai_base_url, Claude Code's ANTHROPIC_BASE_URL in settings, shell files or the environment. Only config files and file dates are read.

agent.provider-routing (🟨 medium) reports routing that pins such a provider, or an agent pointed straight at one. The bundled table holds the notices linked from OpenRouter's list, with each provider's own window: Together AI (Jun–Jul 2026), Phala (21 Oct–8 Nov), NovitaAI (28 May–11 Nov), GMI Cloud (18 Oct–18 Nov) and Atlas Cloud (MiniMax models, until 21 Nov). OpenRouter didn't name the providers it removed, and Together says it wasn't one, so the table lists notices, not removals. The endpoint is today's setting: if it changed since a session ran, the finding says the key may have gone elsewhere. On 468 public Hermes configs and Claude Code settings files the readers ran without crashes.

Fix: rotate the key first. Moving it out of .env doesn't remove the copies already saved in transcripts. Then delete or redact the old transcripts, chmod -R go-rwx the history directory, and shorten the agent's history retention (or turn off persistence) where the agent has a setting.

Secrets still in git history (secret.git-history)

For every repo under --repos, asca reads .git/objects itself, with the standard library only: loose objects (zlib) and packfiles, including OFS_DELTA/REF_DELTA chains and SHA-256 repos. It never runs git, so a hostile repo's config can't run anything. Every old file version goes through the same secret patterns as the transcript scan. Then the branches, tags, remote-tracking branches, stash and reflogs are walked to see where each secret was and whether it was pushed:

One finding per distinct secret per repo: the redacted preview, the paths it was committed under, one commit that has it, and the remote's host (never the URL, which can hold credentials). A secret that no branch, tag, stash or reflog reaches any more (dropped by a rebase or reset) is still reported while the object is on disk.

Rotate first. Deleting the line doesn't help, and rewriting history (git filter-repo, BFG) only cleans copies you control, so it comes after rotation, not instead of it.

Secrets that are still in the current commit aren't reported here: they're in today's files, which is a different problem. They're counted in the stats (git_history_secrets_in_head).

Limits: --git-history-budget-mb (512 MiB of old file versions per run, across all repos). Blobs over 2 MiB and binary blobs are skipped. Objects borrowed through objects/info/alternates, partial-clone objects that aren't on disk, and the reftable ref format aren't read; the finding says so when that limits what it could tell. --no-git-history skips the check.

Tested: the object reader re-hashes every object it reads. On eight real repos (the five below plus three of ours) it read every object git lists, 0 hash mismatches; the five public ones alone are 149,423 objects, most of them deltas in packfiles. False-positive bench, full histories of requests, flask, openai-python, anthropic-sdk-python and modelcontextprotocol/servers (60,320 old file versions, ~1.5 GB): 0 HIGH or MEDIUM findings. The 2 LOW ones are sample values in docs (Flask's SECRET_KEY example and a docs-site search key). Each repo took between a few seconds and about half a minute.

gitleaks and TruffleHog scan git history too, and go deeper on history. What asca adds is the same offline command that checks your agents, their configs and transcripts, run across every repo at once, with no git and no extra install.

Stray agent instructions (repo.stray-agent-instructions)

Coding agents load instruction files from the folder they start in. Forever Security found a malicious AGENTS.md in a customer's ~/Downloads. A coding agent started there read it and tried to install a malicious npm package.

asca searches ~/Downloads, ~/Desktop, the temp dir (tempfile.gettempdir(), plus /tmp on POSIX) and any --instructions-dir DIR for these files:

It searches each folder and two levels below it. Symlinked dirs aren't followed, and directories with a .git aren't entered: instruction files inside repos are expected.

Matches are MEDIUM. A file is HIGH when the asca-skills content rules (prompt injection, hidden text, credential access, exfiltration, malicious installs) match at MEDIUM or above. The finding lists the matched rules and lines.

Files are read as text only, at most 512 KiB. Symlinks, FIFOs and devices are never read.

Turn the default folders off with --no-stray-instructions. --instructions-dir still adds its own folders.

MCP clients discovered automatically

Use --mcp-config FILE to add others (JSON, JSONC, TOML or YAML).

Tracking new advisories

asca checks the installed Hermes Agent version against three sources:

Duplicates across sources are merged by alias (CVE ↔ GHSA ↔ PYSEC), keeping the highest severity. A feed outage is reported as a LOW scanner.feed-unavailable finding, not a silent pass.

Advisory file fields: first plus either last (inclusive) or before (exclusive, matching NVD's "X prior to Y" wording), and optionally aliases, fixed, severity and summary. A top-level dismissed list ({"id", "reason"}) records IDs you reviewed and chose not to track. asca ignores it, but periodic search jobs should treat it as known so they don't re-report those IDs.

Other coding agents: Claude Code, Codex, Gemini CLI, goose, OpenCode, Claude Desktop

On by default (--no-agent-versions to skip). asca reads each agent's installed version from files only, never running a binary:

Each version is matched against a bundled table (asca/agentadv_data.py) built from the GitHub Advisory Database and each vendor's own repository advisories. The second source matters: some advisories are published only in the vendor's repo and never reach the global database or OSV. In November 2026 that was 6 for Claude Code and Claude Desktop (including the symlink file write GHSA-5j29-h97v-84ch) and goose's CVE-2026-72718. With --online-advisories, OSV.dev, the GitHub Advisory Database and the vendor's repository advisories are queried live as well, and duplicates are merged by alias.

You get one finding per installed agent, e.g. Claude Code 2.1.128 is affected by 6 known vulnerabilities (4 high, 1 medium, 1 low), listing each advisory, which ones have no CVE ID, which are only in the vendor's repo, and the version to upgrade to. A new advisory for your version changes the finding, so --telegram change alerts once. Refresh the bundled table with python3 scripts/update_agent_advisories.py (read-only GitHub API).

Codex's Plugin4Shell fix (0.146.0) has no published advisory, so it's a hand-curated entry (CURATED in asca/agentvers.py); Claude Code's is GHSA-pq7j-f95f-qfcv / CVE-2026-86063 (2.1.179).

OpenCode's MCP OAuth remote code execution is curated the same way: opencode-ai 1.0.137 to 1.18.32 on Windows and WSL let a malicious remote MCP server run commands during sign-in (its authorization URL reached PowerShell unescaped through the open package), fixed in 1.18.33 on 28 Sep 2026 with no CVE or advisory (Pillar Security; 9.8 per Aviatrix). The entry only fires on Windows or WSL, so a dependency scanner's "clean" and asca agree everywhere else.

OpenCode's own settings get two more checks (--no-opencode to skip):

Freshness: if the newest review date (built-in table or your file's "reviewed_at") is older than 30 days, asca adds a LOW advisories.stale finding. Bump reviewed_at whenever you check for new advisories. A weekly scheduled search that updates it is a good pattern: search NVD, vendor advisories and security news for new IDs, ask a human to confirm candidates, and only then add them to the file.

Egress auditor (asca-egress)

The supply-chain audit looks at what's installed. The egress auditor looks at what your agents actually talk to. It is a small logging forward proxy plus a daily diff: "these destinations are new since yesterday".

# 1. run the proxy (loopback only; use your supervisor / cron watchdog to keep it up) python3 -m asca.egress proxy --port 8899 --hermes-home ~/.hermes --sampler-ignore tailscaled # 2. route an agent or job through it (and optionally name it in reports) eval "$(python3 -m asca.egress env --port 8899 --label nightly-scraper)" # 3. once a day: diff vs the learned baseline; Telegram only when something changed python3 -m asca.egress summary --telegram change --telegram-chat --env-file ~/.hermes/.env # inspect raw records python3 -m asca.egress show --since-hours 6 --agent nightly-scraper What gets flagged (exit code 1 from summary):

The first summary run learns a baseline and sends no alert. After that, each run diffs only the window since the previous run and folds it into the baseline (--no-learn to keep it out).

Attribution. On Linux, each proxied connection is traced to the client process via /proc/net/tcp → socket inode → /proc//fd, then up the parent chain. It's labelled by ASCA_EGRESS_LABEL if any ancestor sets it, else a recognised agent (Hermes gateway/TUI/ dashboard, Claude Code, Codex, goose, Gemini CLI), else the command name. Hermes cron jobs running at the time are recorded from cron/executions.db. That is a correlation, not proof. Other users' processes and non-Linux hosts are logged as unknown.

TLS is never intercepted: HTTPS is an opaque CONNECT tunnel, so only host, port, timing and byte counts are known, and no CA certificate is needed.

For plain HTTP, the path is kept without its query string. Headers, bodies, cookies and auth are never written.

Logs are append-only JSONL, one file per UTC day, mode 0600 in a 0700 directory, pruned after --keep-days.

The proxy logs and forwards; it never blocks. It listens on loopback only and refuses non-loopback binds unless you pass --allow CIDR, because an open proxy is an abuse magnet.

It only sees programs that honour HTTPS_PROXY/HTTP_PROXY. Most Python, Node and Go HTTP clients do; raw sockets, some SDKs and malicious code may not.

The bypass sampler polls, so connections shorter than --sample-direct seconds can be missed. It's a tripwire, not a complete record.

For real enforcement, block direct egress at the firewall/container network and allow only the proxy out.

WebSocket and HTTP/2 work through CONNECT; plain-HTTP requests are one per connection.

Fleet patch monitor (asca-fleet)

"You're N security fixes behind." It reads the Hermes GitHub releases, pulls the security fixes out of each release's notes, checks which version every instance you run is on, and alerts when that picture changes.

python3 -m asca.fleet check \ --target home=local:/opt/hermes \ --target nas=http://nas.tailnet:9119 \ --target vps=ssh:deploy@vps:/opt/hermes \ --target box2=docker:hermes-2 \ --advisories ~/.hermes/asca-advisories.json \ --telegram change --telegram-chat --env-file ~/.hermes/.env Target spec How the version is read local:/path hermes_cli/__init__.py in that install dir http(s)://host:port the dashboard's /api/status → version docker:[:/path] docker exec cat /hermes_cli/__init__.py ssh:[:/path] ssh -o BatchMode=yes cat /hermes_cli/__init__.py Many targets can also go in a JSON file (--fleet fleet.json, {"targets":[{"name":..,"spec":..}]}). Remote checks only cat a version file. Names and paths are validated, and nothing goes through a shell.

How fixes are counted.

Bullets under a release-notes heading like Security Fixes count as security fixes, and so does any bullet naming a CVE or GHSA ID.

Bullets under other Security headings (e.g. 🔒 Security & Reliability) count as hardening and are reported separately, because they're often defence-in-depth rather than an exploitable bug.

Tracked advisories from asca's built-in table and your --advisories file are included too.

The counts depend on how releases are written up, so treat them as a floor.

Alerts (--telegram change):

When: on any new Hermes release, when an instance is upgraded or becomes unreadable, or when the feed starts or stops failing. The headline says what it is: "N security fixes behind", "N releases behind (no security fixes)", or "up to date".

Reminders (--remind-days N, off by default): while an instance stays behind (with or without security fixes), the alert repeats every N days instead of going quiet until the next change. A reminder restarts the count, and any change alert does too.

How long: headlines, per-instance lines and the dashboard's patch card say how long an instance has been behind, e.g. ⏰ Reminder · 🟨 myhost/hermes: 1 release behind for 3 days (v0.23.1 released 10 Nov, no security fixes). Days count from the publish date of the oldest release it's missing. If that date is unknown, the count is left out rather than guessed. The count doesn't make change alert daily: only reminders and real changes send a message.

First run: sends one message if anything is already behind, so a fleet that's behind on day one doesn't go unannounced.

Failed delivery: if a Telegram message can't be delivered, the state isn't saved, so it's retried on the next run.

Exit codes: 0 when every instance is current on security fixes; 1 when one is behind or unreadable, or the feed failed; 2 on errors.

Fake-app & skill scanner (asca-skills)

Skills are markdown the model obeys and scripts it runs, so a malicious skill can steal keys without any exploit. In early 2026 hundreds of cloned ClawHub skills (ClawHavoc) did exactly that: an official-sounding name, a "prerequisite" to download, and an infostealer behind it. asca-skills looks for both halves of that playbook.

python3 -m asca.skillscan scan # auto-discovers Hermes, OpenClaw, Claude, Codex skill dirs python3 -m asca.skillscan scan ./skills ~/Downloads/new-skill --no-apps python3 -m asca.skillscan check-name openclaw-core # before you install something python3 -m asca.skillscan update-official # refresh the official list from live sources Look-alike names. Skill, plugin, MCP-server, package and app names are compared with an official list:

Hermes builtin + trusted skills, the Hermes plugin and MCP catalogs (incl. the removed-plugin kill list), OpenClaw's bundled skills and extensions, and the vendors' own packages (openclaw, @anthropic-ai/claude-code, @openai/codex, hermes-agent, …);

taken from a bundled snapshot, your local Hermes install, Hermes' cached catalog, and update-official.

Risky skill content (every file in the skill folder):

Credential access plus an outbound sink in the same skill is critical (the stealer shape).

Oversight-loosening (arXiv 2610.37734: about 1 in 17 skills carry such a directive, and open-source scanners catch at most 46%): Medium by default.

High when it's a concrete flag (--no-verify and the others) or sits in a script, and the skill also runs shell, sudo or package installs.

Low when scoped to CI/automation, or in a documentation table.

Tightening ("never use --no-verify", "never ask the user for their password", items under a "Never do these" heading) is ignored, as is UX guidance about clarifying questions.

Bytecode (PyCache Trap, arXiv 2610.10612: a swapped cache got past seven skill scanners in 94–100% of cases): asca reads each .pyc header and decides what CPython would do with it.

It compares code objects only for caches Python would actually load: it compiles the visible source and loads the cache body in a separate python -I -S helper (isolated mode, no site/.pth), never running either.

Caches Python generated itself match their source and stay quiet. Stale caches are ignored, because Python recompiles them.

Limit: caches for another Python version can't be compared and are reported low. With PYTHONPYCACHEPREFIX set, Python ignores in-tree __pycache__ folders, but asca still reports a planted one.

Context adjusts severity: Prose mentions count lower than the same text in a script.

Chat-template markers in quotes or code fences are documentation.

Negations ("never start without the user's consent") are ignored.

Hermes builtin skills and security-topic skills (which quote attacks on purpose) are lowered and labelled. Hidden-content and encoded-payload findings are never lowered.

Tested both ways. Fixtures modelled on the published ClawHavoc/AMOS samples are all caught. Hermes' official skills, scored as if their origin were unknown, produce 0 high or critical findings (re-checked for v0.3.0 on 186 skills from Hermes 0.23.0). Forged PyCache Trap caches (timestamp and unchecked-hash variants) are caught without being executed.

Reports, baselines, exit codes and --telegram never|fail|always|change work exactly like asca. It never executes anything it scans.

Warn or block: the per-rule gate. By default asca-skills only reports, because pattern rules are tripwires. --gate turns chosen rules into hard stops (exit code 3), so the same scanner can be a pre-install hook or CI step:

asca-skills gates # list presets and their rules asca-skills scan ~/Downloads/new-skill --no-apps --gate default && cp -r ~/Downloads/new-skill ~/.hermes/skills/ asca-skills scan --gate strict --gate 'skill.exfil.*:medium' # presets + your own rule globs asca-skills scan --gate default --quarantine ~/.local/state/asca/quarantine # move blocked skills out asca-skills restore --quarantine ~/.local/state/asca/quarantine # undo Preset Blocks default near-certain signals only: hidden Unicode-tag instructions, base64 that decodes to commands, decode-and-run, credential access + outbound sink in one skill, fake password dialogs, Gatekeeper/Defender tampering, reverse shells, plugins impersonating a catalog entry, bytecode that runs different code than its source strict default plus the ClawHavoc delivery tricks (password-protected archives, "run what's in this zip", capture services), keychain dumps, browser/wallet theft, concealment and override injections, bytecode with no source, and look-alike names at high or above Context still applies: a gate rule blocks only at high severity or above unless you add a suffix such as :medium. Quoted examples and security docs still only warn.

Baselines still apply: suppressed findings never block.

Quarantine is safe to undo: it moves the skill folder, never deletes it, records why in quarantine.json, and skips Hermes builtin skills (Hermes would restore them anyway).

Measured: on the ClawHavoc-style fixtures, default blocks 3 of 6 and strict blocks 5 of 6 (the one-letter typosquat stays a warning). Hermes' 210 official skills: 0 blocked with either preset.

Exit codes for asca-skills scan: 0 PASS, 1 FAIL (warnings at or above --fail-on), 2 error, 3 BLOCKED (a gated finding; takes precedence).

IDE & agent inventory (asca inventory)

Coding agents increasingly arrive as IDE extensions, and extensions auto-update. On 29 Oct 2026 the Cursor extension marketplace served a tampered Anthropic.claude-code 2.1.312/2.1.313 that added an attacker SSH key, persistence and a reverse SSH tunnel (Cursor's notice). The first questions after a notice like that are "did I have it, since when, and what else changed?" To answer them you need a record from before the incident. asca inventory keeps that record.

python3 -m asca inventory # first run learns silently; later runs diff python3 -m asca inventory --telegram change --env-file ~/.config/asca/telegram.env python3 -m asca inventory --write-approved ~/.config/asca/inventory-baseline.json # approve today's publishers python3 -m asca inventory --baseline ~/.config/asca/inventory-baseline.json What it inventories (read-only; it never runs code, npm, git or anything it finds):

Each extension and plugin is hashed over its code and manifests (JS/TS, Python, shell, native binaries, package.json, plugin.yaml…), not docs or images. Skills are hashed over all files. Budgets keep runs cheap and comparable: --item-cap-mb (64), --node-modules-cap-mb (16) and --total-mb per run (1024). Files are cut in a fixed order, so a partly hashed item is still compared like for like, and it's listed as a LOW hash-budget finding.

Approving publishers: approved_publishers in the --baseline file stops the new-publisher finding for publishers you trust. The new item itself is still reported.

Suppressing a finding: suppress entries work exactly as in asca.

Alerts: --telegram change alerts when a finding at or above --alert-on (default medium) appears that wasn't alerted before. The first run learns silently, unless it already finds a known-bad build. If delivery fails, state isn't saved, so the alert is retried next run.

Exit codes: 0 = nothing at or above --fail-on (high), 1 = something is, 2 = error (including unreadable extensions.json or agent config, which also show as HIGH parse errors).

Version-number tampering: a malicious build that ships as a new version (as the Cursor one did) shows as a routine version update until it's on the known-bad list. The inventory's job there is the record: which version you had and when it arrived.

Offline only: no marketplace lookups, so it can't tell you a version is bad before someone publishes that.

Hashing: files outside the hashed set (docs, images, beyond the caps) aren't watched.

Local edits: a change to your own or agent-edited skills is reported as an edit, not tamper, because those change legitimately all the time.

Platforms: Linux/macOS/Windows paths are covered; extension dirs on other drives need --ide-dir.

macOS (launchd): see docs/macos.md. It sets up the inventory together with the full audit and the skills scan.

Linux: scripts/asca-daily.sh, or a cron line such as 15 8 * * * cd ~/Projects/Agent_Supply_Chain_Auditor && python3 -m asca inventory --format none --telegram change --env-file ~/.config/asca/telegram.env.

Agent config tamper and Python startup hooks (part of asca)

Two checks in the main audit, both on by default (--no-agent-config, --no-python-startup to skip).

Agent configuration tamper

In Oct 2026 Symantec described an unauthorized relay service that installs the genuine Codex and Claude Code CLIs, then rewrites their config: it sets sandbox_mode = "danger-full-access", allows network access from the write sandbox, points base_url / ANTHROPIC_BASE_URL at its own servers, installs its own token as a user environment variable, and switches off telemetry and error reporting (report). HiddenLayer's "Man-in-the-Model" research shows why the endpoint matters: whoever answers the model calls can steer what a coding agent runs.

Where it looks: ~/.codex/config.toml (incl. profiles and model_providers), Claude Code settings.json / settings.local.json / managed settings (env, permissions), Hermes config.yaml (every base_url, approvals.mode), shell profiles (.zshrc, .bashrc, …) and the process environment.

Each signal alone is often a deliberate choice: a company gateway, a sandbox-less container, privacy settings. Accept those in your baseline. Official, local and private-network endpoints (Ollama, LiteLLM on your LAN) are never flagged.

Python startup hooks

Python runs every import … line in any *.pth file in site-packages, and imports sitecustomize/usercustomize, at every start, pip included. Both LiteLLM compromises used this: 1.82.8 shipped litellm_init.pth (Mar 2026), 1.107.0 shipped cook.pth + sitecustomize.py in every wheel (Oct 2026). So did Microsoft's agent-framework 1.26.1 and 1.26.2 (agent_framework_meta.pth, af_runtime_diag.pth), published from a hijacked account on Nov 17 2026 (Elastic).

Where it looks: the Hermes venv and bundled Pythons, user site-packages, pipx and uv tool environments, every virtualenv under --repos (4 levels deep), system site-packages, and --python-site DIR.

Standard hooks stay quiet when both name and content match: virtualenv, setuptools' distutils shim, editable installs (setuptools, hatch, pdm), namespace packages, pywin32, coverage. Path-only .pth files are ignored. A standard name with extra code is flagged. Files are read as text; no interpreter is started and nothing is imported.

What the .pth imports (python.pth-import-target). A standard-looking .pth line only names a module; the code that runs is that module. For every module an executable .pth imports from its own site-packages folder (or from folders the same .pth adds, like pywin32's win32\lib), asca checks:

Distro packages (Debian/Ubuntu dist-packages) have no pip RECORD. There, ownership and the "changed after install" check use dpkg's own md5 list (/var/lib/dpkg/info/*.md5sums), and failing that, the package's top_level.txt (a claim with no file hashes, as on RPM-based distros).

On the real site-packages folders of the Hermes host, Debian's own python3-setuptools package, and 12 wheels that ship executable .pth files (setuptools, coverage, pytest-cov, pywin32, namespace packages ...), this check reports nothing. Current coverage's a1_coverage.pth is now recognised by its exact line, which removes a false high.

Limits: the relay domain and bad-package lists are as published (Oct 2026). Windows user-scope environment variables in the registry aren't read. A malicious hook installed by a package you trust and named after a standard tool's file, with standard-looking content, would pass.

Repo hooks and GitHub token scopes (part of asca)

Repo-supplied agent hooks (on by default; --no-repo-hooks to skip)

A cloned repository can make your agent or editor run commands nobody typed. asca reads these files in every repo under --repos:

A file committed to the repo travels with every clone, so it's rated higher than your own uncommitted settings.local.json. asca checks this by reading .git/index as bytes; it never runs git. If the index is in v4 format, which asca can't read, files are treated as committed.

Local and private endpoints in repo settings are never flagged. A changed command gets a new fingerprint, so a hook you accepted in the baseline is reported again if it changes.

Coding agents in GitHub workflows that anyone can trigger (on by default; --no-ci-agents to skip)

A workflow that runs Claude Code, Gemini CLI, Codex or GitHub's AI action on an event that anyone with a GitHub account can cause (issues, issue_comment, pull_request_target, discussion) hands a stranger's text to an agent that holds the job's token and secrets. In 2026 researchers used this to steal keys from Claude Code, Gemini CLI and Copilot agents through issue and PR text (Comment and Control; Aikido PromptPwnd). The vendors patched related flaws in their actions (GHSA-8q5r-mmjf-575q, GHSA-wpqr-6v78-jr5g), but the workflow itself decides who can start the agent and what it can reach.

asca reads .github/workflows/*.yml as text. It never runs anything, and only parses files that use a known agent action (anthropics/claude-code-action, google-github-actions/run-gemini-cli, openai/codex-action, actions/ai-inference, …) or call an agent CLI (claude -p, gemini, codex exec, copilot …) in a run: step.

What counts as a gate: claude-code-action's default write-access check; an if: that tests author_association for OWNER/MEMBER/COLLABORATOR, a specific actor or an allow list of actors, a same-repo PR (head.repo.full_name == github.repository), or an earlier job's authorized-style output; or a step that queries the collaborator permission API. These don't limit who runs it, so they don't count: checking the repository name, the commenter being the issue's author, user.type != 'Bot', or a trigger phrase like @claude in the comment. pull_request from a fork gets no secrets and a read-only token, so it isn't flagged. codex-action keeps the OpenAI key in its own proxy, so that key isn't counted as reachable. Uncommitted workflows are one level lower.

Benchmark (Nov 2026, 794 real workflow files): the vendor examples, 18 large agent/tooling repos and 106 repos found by GitHub code search for agent actions; 188 of the files run an agent (a few repos appear in two samples). HIGH went to 6 jobs, each read by hand: 3 paste issue or PR text into an agent holding a write token or extra secrets, 2 switch the write check off with extra bot PATs in the job, and 1 does both on pull_request_target with a PR-head checkout. claude-code-action's own issue-triage.yml example is MEDIUM. asca's YAML reader now resolves anchors and aliases (&steps / *steps), which real workflows use to share steps between jobs. Over 2,069 YAML files the reader parsed 33 more than before and lost none; the 15 whose result changed differ only where an anchor is now resolved.

Install hooks and secret-dumping workflow steps (wfx) (on by default; --no-install-hooks to skip)

In November 2026 the wfx credential stealer (SafeDep, Aikido) used stolen GitHub tokens to push two payloads into thousands of repositories:

An npm hook (771 repos): a postinstall script that silently runs a hidden .ci-xxxxxx.sh, so every npm install, on CI or a laptop, sends secrets, cloud credentials and AI-tool keys out.

Workflow steps (7,309 repos): one copies the Actions runtime token into $GITHUB_ENV, the next passes ${{ toJSON(secrets) }}, every secret in the repo, to the payload.

asca reads every package.json (up to 3 folders deep, not node_modules) and every .github/workflows/*.yml in your repos, as text:

A hook or workflow that isn't committed yet is one level lower. In the daily audit only high and critical install hooks are reported, because your own prepare: husky is expected; asca check-repo lists every hook. Using the runtime token normally (requesting an OIDC token, cache tools) isn't reported.

Tested on 788 workflow files from 124 repos (vendor examples, large projects and agent workflows) plus 195 found by searching GitHub for toJSON(secrets)/toJSON(vars): 0 high. The 93 medium findings are toJSON(secrets) used on purpose, mostly with secrets-to-env actions. On 76 repos found by searching GitHub for install hooks, with the files those hooks run: 1 high, a script that really does POST to a service API during install. On 39 popular JS projects: 0 high.

Limits: wfx reverted most commits within minutes, so on disk you'll find it only in a checkout pulled in that window or where the revert failed. Its traces on GitHub (probe pull requests, deleted runs) need an online check.

GitHub token scopes (opt-in, online: --github-token-scopes)

Agents and the tools they call reuse any GitHub credentials they can find: the gh login in hosts.yml, GH_TOKEN/GITHUB_TOKEN, and ~/.git-credentials (including Hermes' $HERMES_HOME/home/.git-credentials). A prompt injection gets the token's full rights.

GitHub only reveals a classic token's scopes in the X-OAuth-Scopes response header. So this check makes one HTTPS request per distinct token, sent only to that token's own host (api.github.com, or https:///api/v3 for GitHub Enterprise Server). That's why it's off unless you ask for it. Tokens are never printed; findings show a 4-character prefix, the length and a short hash.

Keyring storage: gh's default store (macOS Keychain, OS keyring) isn't read, so on a Mac the gh login is usually invisible to asca unless GH_TOKEN is set.

Fine-grained and GitHub App tokens: their permissions can't be checked.

Secrets in agent allow lists ("don't ask again") (part of asca)

When you approve a command with "Yes, and don't ask again", Claude Code saves the literal command as a permission rule, e.g. Bash(PGPASSWORD=… psql -h db.prod…), in /.claude/settings.local.json. Claude Code excludes that file only in your global git config, never in the repo's .gitignore, so it's easy to commit. Apiiro found 104,185 public copies and 1,122 with a real secret; many were passwords next to a host that neither gitleaks nor TruffleHog flagged (Apiiro, Nov 2026).

On by default; --no-agent-allowlist to skip.

What it reads (as text; nothing is executed and git is never run):

Findings show the rule with the secret redacted (4-character prefix, length and short hash). The remediation is ordered:

Rotate first: removal doesn't clear history, forks or clones.

git rm --cached and the repo .gitignore.

Use $VAR in commands.

Approve patterns like Bash(npm run:*) instead of literal commands.

Passwords typed into commands (all secret scans)

Provider keys have recognisable prefixes; passwords don't. asca now also detects these in every secret scan (allow rules, .env/config files, MCP definitions and agent session history):

Environment variables: PGPASSWORD=, MYSQL_PWD=, REDISCLI_AUTH=, SSHPASS=.

Command options: mysql -p, --password=, sshpass -p.

Credentials in URLs: user:pass@host (postgres, mysql, mongodb, redis, amqp, http(s), ftp, smtp, ldap).

HTTP auth: curl -u user:pass, Authorization: Bearer (JWTs included).

Severity follows the host: public host is 🟧 high (secret.command-password). Loopback, private ranges, *.local/*.internal, bare compose service names (db, postgres) and documentation hosts (example.com, *.test, TEST-NET) are 🟦 low (secret.command-password-private); in an allow rule that becomes medium. A database command with no host counts as local (it uses the socket).

Variables ($PGPASSWORD, ${DB_PASS}, $(…)) and placeholders (, ***, YOUR_TOKEN).

Common example passwords (password, changeme, postgres:postgres) and URLs without a host.

Regex and sed fragments, and phrases (a%20secret).

False-positive benchmark (0 hits): 15,685 benign files, 5.2 million lines, covering 1,068 official Hermes skill files, 1,011 host skill/plugin files, 1,991 repo files and the 11,615-file Hermes site-packages. The first run had 13 hits, all fixed and kept as regression tests.

Real host: on the maintainer's Hermes host it found one genuine leak the old patterns missed. An OpenRouter token sent as Authorization: Bearer in a curl command was saved 8 times in a session transcript (since revoked: HTTP 401).

Only the Claude Code and VS Code stores above. Codex, Cursor's own allow lists, aider and other transcript formats aren't read; shared notes such as MEMORY.md go through the normal secret scan only.

Passwords for a host on another line, and passwords split across lines, aren't connected.

The .gitignore check implements the common subset of git's rules. A file re-included under an excluded directory is reported as not ignored.

Global excludes and .git/info/exclude are deliberately not counted: they protect only this machine.

A hand-made key with an impossible shape (e.g. sk-or-v1- followed by 64 letters a–f with no digit) is treated as a placeholder.

Agent takeover, workspace and response checks (part of asca)

Hermes persona and gateway tampering (on by default; --no-persona to skip)

The Carbonato botnet (ThreatDown, Sep 2026) breaks into Docker hosts and installs Hermes Agent unchanged. It then overwrites SOUL.md with a "GH0ST" persona that takes tasks over Telegram, keeps itself installed and collects AI API keys and SSH credentials. The code and version stay the same, so integrity checks see a clean install.

asca reads $HERMES_HOME/SOUL.md, memories/*.md and the same files under profiles/*/ as text. asca's skill-content rules look for payloads and hidden text, and they find nothing in a persona like that: it's plain instructions. So persona files get their own rules:

Instructions only. The harvest and persistence rules fire when the text tells the agent to do something, at the start of a sentence or list item or after "you" or "prioritise". Text that describes an attack ("a stealer collects credentials") doesn't fire, and neither do negated or prohibited lines ("never collect credentials", items under a "Never do" heading).

.env files: asca reads only variable names, plus the values of the access switches (*_ALLOWED_USERS, *_ALLOWED_CHATS, *_ALLOW_ALL_USERS, *_HOME_CHANNEL).

Changes are tracked too. asca inventory hashes each SOUL.md and the access switches, and reports inventory.persona-changed and inventory.access-changed (medium) when they change. Allow-list values are stored only as a hash. The first run after upgrading learns them silently.

Tested on a persona written from ThreatDown's description (critical), and with the IOC name removed (still critical). On 548 real Markdown files (Hermes skills, project docs, research notes) it gave 0 hits.

Persona IOC packs for hosting providers and MSPs. The persona rules read English; these personas are often French, so the IOC pack catches them in any language. --hermes-fleet DIR (repeatable) checks every Hermes home under a folder you manage, any directory holding a SOUL.md, e.g. asca --hermes-fleet /home --hermes-fleet /var/lib/docker/volumes. --persona-iocs FILE (repeatable) adds packs in the same JSON shape as examples/iocs/socradar-hermes-jailbreak.json (rules: id, strings, min; optional env). --no-persona-iocs skips it.

Docker API exposed without client certificates (on by default; --no-docker-daemon to skip)

Carbonato gets in through Docker daemons that listen on TCP without authentication. Anyone who can reach such a port controls Docker, which means root on the host. asca reads /etc/docker/daemon.json (also rootless and snap), docker's systemd units and drop-ins (ExecStart= … -H tcp://…, honouring ExecStart= resets), and /etc/default/docker / /etc/sysconfig/docker. It never contacts the daemon.

--tls without --tlsverify encrypts the traffic but still lets anyone in, so it counts as unauthenticated. Docker Desktop on macOS has no TCP option (its "expose on 2375" switch exists on Windows only), so on a Mac this check finds nothing.

Startup persistence and delete-on-revoke switches (on by default; --no-user-autostart to skip)

The testmetest/Miasma worm (Socket, Nov 2026) installs ~/.local/share/runtimes/sync.py as the systemd user service pkg-runtime or the LaunchAgent com.user.pkg-runtime. It is a backdoor that polls GitHub hourly for commands. On the GitHub-token path it also installs net-health-checker, which keeps the stolen token in plain text in ~/.config/net-health-checker/token, survives logout via loginctl enable-linger, and checks the token every 45 seconds. When GitHub answers 401/403, it deletes your home folder. Revoking the token, the usual first step, is what sets it off.

asca matches the structure, not those names or hashes. It reads these autostart places, then the code each entry starts (interpreter + script, a script run directly, or inline bash -c, python -c, cmd /c, powershell -Command/-EncodedCommand, a cron command line). Nothing is run, loaded or unloaded; the registry is only read.

"Rotate first" becomes "remove the switch first". When a host.revoke-switch is found, every finding whose fix says rotate, revoke, regenerate or deactivate (and every leaked-secret finding) gets this in front of its fix: remove that persistence first, then rotate from a clean device. The dashboard's "Leaked keys" cards say the same. The switch finding gives the order: disconnect the machine; stop and delete the unit or LaunchAgent and the script, and run loginctl disable-linger; only then revoke the token and rotate everything from a clean device; rebuild. Fingerprints don't change, so baselines still match.

On 1,143 autostart entries from 1,010 public dotfiles files (with the scripts they start, where the repo had them), there were no high or critical findings. There were 2 medium (a script in ~/.claude/ calling a ticketing API at login) and 4 low. A first draft that counted any curl as a download reported 11 high, mostly bash -c 'curl http://127.0.0.1/health' readiness probes. On 3,416 system-level entries from 885 public systemd system units, cron.d files and system crontabs (with 140 of the scripts they start), there were no high or critical findings, 1 medium (a root cron job that pipes a script from GitHub into bash every 2 minutes, which is what the rule is for) and 27 low.

Limits: distro-shipped units in /usr/lib/systemd, /etc/cron.{hourly,daily,weekly,monthly} scripts, at jobs, Windows Scheduled Tasks and services, and other users' crontabs when asca isn't root aren't read. .lnk shortcuts are parsed for their target and arguments only. A switch that fetches its handler at run time, or checks the token some other way than an HTTP status, needs a person to read the script.

Self-hosted AI gateways and apps (on by default; --no-ai-stack to skip)

In November 2026 Amazon Threat Intelligence captured the working memory of ARTEX attack agents. They look for internet-exposed LLM gateways and AI app builders (LiteLLM, One API, New API, Dify, FastGPT, Langflow, RAGFlow, Open WebUI, LobeChat, Ollama), take the provider keys those apps hold, test them and spend them on the next round of hunting. Their playbook listed unfinished installs, open management endpoints, default admin credentials such as "the LiteLLM default master key", Langflow CVE-2025-3248 and RAGFlow CVE-2026-28797. asca reads the files that configure these apps. It never starts or contacts them.

Compose ${VAR}, ${VAR:-default} and ${VAR-default} are filled in from the .env next to the file, so RAGFlow's image: ${RAGFLOW_IMAGE} is matched. Files are found under your home (4 levels deep), each --repos root and, on Linux/macOS, /opt and /srv, skipping dependency and cache folders. Example files (.env.example, docs/, tests/, examples/) and a LiteLLM source checkout are skipped. A MONAI Label service built locally is recognised by its monailabel start_server command. Veloera and Sub2API, which Amazon also names, aren't matched yet: their image names weren't verified. On 136 public files mentioning MONAI Label, 5 deployments were flagged and none of the rest. On 1,193 public compose files and LiteLLM configs, the check ran without crashes. Its compose reading matched PyYAML on 971 of 972 files; the one difference is 53:53, which PyYAML turns into a base-60 number and Compose keeps as a port.

Browser extensions and native-messaging hosts (on by default; --no-browser-extensions to skip)

Agents that work in your browser come as an extension plus a small program on your computer that the extension talks to. In our Meta Muse test install the Mac app wrote the bridge into Chrome's settings at sign-in, before the extension was installed, and the extension drove tabs through Chrome's debugger ("'Muse from Meta' started debugging this browser").

asca reads the Chromium profiles (Chrome, Chrome Beta/Canary, Chromium, Edge, Brave, Vivaldi, Arc) and the NativeMessagingHosts folders (per user, plus /Library/… and /etc/opt/… system-wide) as files:

Nothing is run; host programs are only opened to tell a script from a binary. Not covered: Windows hosts (registered in the registry), Firefox, and extensions loaded unpacked in developer mode. asca inventory records each extension (hashed like IDE extensions), each host (manifest + program bytes; a change is inventory.bridge-changed, medium) and desktop agent apps (Claude Desktop, ChatGPT, Codex, Meta Muse) with their version and signing Team ID read from the app's code signature, so an app re-signed by another developer shows as inventory.publisher-changed (high). The Team ID is recorded, not verified; macOS checks the signature at launch.

Windows executables in skills and plugins (TrojanPony) (on by default; --no-skill-binaries to skip)

TrojanPony (AIR Security, Nov 2026) hid a malicious libcurl.dll next to Notepad++'s genuine, signed updater GUP.exe (renamed vibecodecalc.exe, council-worker.exe …) in 480+ fake Claude Code and OpenClaw skills and plugins. Windows loads a DLL from the exe's own folder first, so starting the signed exe runs the DLL. Three marketplace scanners passed them. asca reads every file in the Hermes, Claude Code (skills and all of ~/.claude/plugins, including marketplaces/*/skills), Codex, ~/.agents and OpenClaw skill and plugin folders as bytes:

MCP servers run from a local clone (MIOU) (on by default; --no-local-mcp to skip)

asca's MCP checks read launch lines, but a server started as python main.py or node index.js from a git clone was never opened. Apiiro's MIOU write-up found GitHub MCP servers ("Lighter", "Aster DEX" …) carrying an encrypted 11–22 MB blob and an @bootstrap / @ensure_env decorator on main that starts the Beretta stealer before the first tool call. For every configured server whose command is an interpreter plus a local script (uv run --directory, cwd and direct scripts too), asca resolves the folder from the config text and walks it (no node_modules/.venv, capped at 3,000 files):

Loaders in build configs, fake fonts and the editor (PolinRider) (on by default; --no-build-configs to skip)

PolinRider (Apiiro, Socket), a DPRK worm in thousands of GitHub repos, appends its loader to build configs after ; and 200+ spaces so it sits off-screen, runs node public/fonts/fa-brand-400.orc from a hidden folder-open task, prefixes every npm script with node init &&, and has capacitor.config.ts decode a URL from .env and eval what it downloads. Coding agents run build, lint and dev scripts without a second look. In every --repos repo and in asca check-repo:

Tested on 35,566 real .js/.mjs/.cjs/.ts files (Hermes' install with its node_modules, and local projects): no padding or env-eval finding. On 19 local repos the .env checks found one real note (an ignored .env in an agent-configured repo with no agent deny rule).

.env files nothing guards (on by default; --no-env-guard to skip)

Apiiro saw coding agents delete the .env lines from .gitignore, .cursorignore, .qwenignore, .crushignore and Claude's permissions.deny, then read or commit the key. For each .env with secret-shaped values (templates such as .env.example skipped; values never printed), in --repos and asca check-repo:

asca inventory reports a guard line or deny rule that disappears (see the inventory table).

Who answers Claude Code's permission prompts (on by default; --no-permission-hooks to skip)

"When Answering Is Administering" (arXiv 2611.32195): whatever answers a permission prompt (a plugin's PermissionRequest hook, an SDK host, a remote relay) can attach updatedPermissions to an "allow", and Claude Code accepts updates that remove deny rules. The removal is saved to your settings, outlives the plugin and looks like your own edit. Managed settings can't be changed this way.

Local model weights and load-time code (on by default; --no-model-cache to skip)

On 24 Nov 2026 JFrog found Hugging Face models built by the ARTEX attack agent. Their config.json auto_map loads bundled Python that steals /proc/1/environ, the environment and Kubernetes tokens, and commits the loot to a Hub repo with a base64-hidden token. The same payload sat in pickles, and the chat template tried Jinja sandbox escapes. The second model had no weights at all, so pickle scanners stayed quiet, and AutoConfig.from_pretrained(..., trust_remote_code=True) alone ran it. Microsoft Research and CrowdStrike showed backdoored checkpoints and LoRA adapters; the defence they name is provenance plus comparing with the original. Both caches store files under their content hash, so asca can prove a file is still what was downloaded.

Nothing is imported, unpickled, rendered or contacted. It can't catch a backdoor the publisher uploaded itself; the inventory records who published each model and alerts when that changes. On 185 of the most-downloaded custom_code and chat models from the Hub (471 .py files, 151 chat templates, 114 auto_map configs) it gave no critical, high or medium findings; the low "no weights in the cache" notes came from the benchmark downloading text files only. On a real cache (faster-whisper, 1.9 GB) every file matched its stored hash.

Hooks in user-level and managed agent settings (on by default; --no-user-hooks to skip)

SOMBERMEME (GTIG) used a Claude Code SessionStart hook to download a backdoor at every launch. Repo hooks are covered by --repos; agent.user-hook covers the same fields in settings that apply to every project: ~/.claude/settings*.json and Claude Code managed settings (hooks, statusLine), ~/.cursor/hooks.json and ~/.gemini/settings.json. Hooks are graded by what they run: 🟧 high when a hook downloads and runs code, decodes base64 into a shell or opens a raw socket; 🟨 medium when it sends data to a non-local host; ℹ️ info for everything else, so you know it's there. On 4,234 hooks from public settings files this gave 0 high findings. The inventory stores a hash of each hook (never its text), so a new or changed hook shows up as a change.

Developer credential files (on by default; --no-dev-credentials to skip)

The agent-framework PyPI stealer collected a fixed list of files. devcred.plaintext (🟦 low) reports the ones that hold a credential in plain text: an _authToken in .npmrc, passwords in .pypirc, pip.conf index URLs and .netrc, Docker auths with no credsStore, the Azure CLI token cache, the Hugging Face token and .git-credentials. Values are shown as prefix… (len, sha256:tag). Group/other-readable files are reported like the other credential files, and devcred.summary sums up what a stealer running as you would get.

Pinned MCP servers: dependency drift and known vulnerabilities

mcp.launcher-dep-drift (ℹ️ info): npx -y pkg@1.4.2 or uvx pkg==1.4.2 pins the server but not its dependencies, which are resolved again whenever the launcher rebuilds its cache (Corelight saw one pinned server run with 15 dependency sets over 19 builds). It isn't reported when the launch line installs from constraints or a lock (--constraints, --with-requirements, --require-hashes, --locked, --frozen).

mcp.vulnerable-version: the pinned version is matched against a bundled table (awslabs.document-loader-mcp-server 1.0.10 to 1.0.20, CVE-2026-130901; mcp-server-git before 2026.11.27, GHSA-6663-fm5v-gqm5, no CVE) and, with --online-advisories, against OSV and GitHub advisories. For document-loader, a DOCUMENT_BASE_DIR set in the server's env lowers it to medium, and DOCUMENT_BASE_DIR=/ is reported on its own (mcp.document-loader-root).

MCP SDKs and servers installed as libraries (on by default; --no-mcp-sdk to skip)

If you build an MCP client, the SDK sits in a venv or node_modules, where no launch line names it. mcp.sdk-vulnerable reads the installed version from package metadata (*.dist-info/METADATA in the site-packages the startup-hook check finds, including venvs under --repos; node_modules/@modelcontextprotocol/{sdk,client}/package.json in global npm folders and every --repos repo, one nested level deep) and matches it against a bundled table, plus OSV and GitHub with --online-advisories:

Upgrading isn't enough for the OAuth flaw, and the finding says so: pass the expected issuer (issuer= in Python, expectedIssuer in TypeScript) to the client-credentials and private-key providers, clear (or add issuer to) OAuth registrations and tokens stored before the fix so they're bound to the right server, and rotate the client secret if the client may have talked to an untrusted MCP server. Only HTTP clients with OAuth are affected; servers built with the SDK and stdio clients aren't, which asca can't tell from a version alone.

Symlinks that lead out of a repo or the agent home (on by default; --no-symlinks to skip)

In CVE-2026-103916 (Endor Labs), a sandboxed agent planted a symlink in its workspace. A later copy by the operator followed it and read or wrote host files outside the sandbox. A link left behind is the trap even after the agent has gone. asca lists links with os.readlink in every repo under --repos and in the Hermes home (caches and session folders are skipped). Targets are never opened or followed.

Links inside node_modules, virtualenvs and .git are skipped, because package managers make them on purpose. Links into /tmp, /run and macOS /var/folders (sockets that get new names on every restart) are skipped unless they point at a credential.

MCP servers that are archived and will never be patched

Anthropic moved 13 of its original reference MCP servers to servers-archived: no security fixes will come. Glow Labs' MCPhantom research (Nov 2026) found coding agents still installing them from their training data. One of them, the Puppeteer server, has a prompt-injection-to-command-execution bug its maintainers declined to fix. Before this check, pinning such a server made asca's "unpinned" finding go away, even though no fixed version will ever exist.

mcp.archived-server: high for server-puppeteer, medium for the rest (server-github, -postgres, -slack, -brave-search, -google-maps, -gitlab, -gdrive, -redis, -aws-kb-retrieval, -everart, PyPI mcp-server-sentry and mcp-server-sqlite).

Where the list comes from: package names are read from each server's package.json / pyproject.toml in the archive repo. mcp-server-git isn't on it, because it went back to the maintained repo.

The fix names the vendor's own server where one exists: GitHub's github-mcp-server, Microsoft's @playwright/mcp, @brave/brave-search-mcp-server, Redis' mcp-redis, @sentry/mcp-server.

Add your own: --known-archived FILE, one package name per line.

Powerful MCP servers loaded in every session (mcp.broad-scope)

A server in a user-level config (Claude Code's top-level mcpServers in ~/.claude.json, Claude Desktop, Cursor's ~/.cursor/mcp.json, VS Code's user mcp.json, Codex, Gemini, goose, OpenCode, Hermes) starts in every project. So a prompt injection in any repo, issue, web page or document the agent reads can call its tools. asca flags four kinds:

Severity: 🟨 medium in user scope. The same server in project scope (a repo's .mcp.json, .cursor/mcp.json, .vscode/mcp.json, or a Claude Code per-project entry in ~/.claude.json) is ⬜ info: it loads only where it's needed. A browser server with --isolated (a throwaway profile without your logins) is info too.

The fix: narrow the filesystem directories to the project, move the server into the projects that need it, use a read-only database user, or add --isolated to the browser server.

Package names were checked against the npm and PyPI registries. Archived servers (mcp.archived-server) and DOCUMENT_BASE_DIR=/ (mcp.document-loader-root) are separate findings with their own fix.

asca access lists the broad servers per agent next to its MCP server count.

What to do when a key leaked: provider steps and the AWS card

Every secret finding (config, transcripts, allow rules, MCP env …) now carries the steps for its provider, instead of a generic "rotate it": where to revoke the key (Anthropic, OpenAI, OpenRouter, Cynos, GitHub, Slack, Telegram's @BotFather, Google, Stripe, Hugging Face), what to check afterwards, and for private keys and wallets what can't be revoked.

For AWS access key IDs, asca reads ~/.aws/credentials and ~/.aws/config locally and adds a blast-radius card to the finding:

which profile the key is, and whether it's a long-lived IAM user key (AKIA…) or temporary (ASIA…, which expires on its own)

which roles that profile can assume through source_profile

the aws iam commands to deactivate, replace and delete it, and the CloudTrail lookup to see what it did

AWS isn't called and the secret access key is never read into a report, so the card says what's local and leaves effective permissions to aws iam. A key that isn't in your credentials file is labelled as someone else's or an old one. ~/.aws/credentials is also checked for group or world read permissions.

What can each agent reach? (asca access)

Identity vendors (Okta's agent-identity product, 2026) make the point that standing credentials break IAM for agents. asca access shows what that looks like on your machine: per agent, every credential it can reach, whether it's long-lived, short-lived or unknown, and when it expires where the file says. It's read-only and offline, and it never prints values (names, kinds and paths only).

asca access # text; --format json or markdown; --no-env leaves out this shell's variables A local agent runs as you, so it reaches two sets:

What it's configured to use: keys and ${VAR} references in its MCP servers' env and headers, the env block of its settings (Claude Code), shell_environment_policy.set (Codex), ~/.hermes/.env, its own login and MCP OAuth token store (Claude Code ~/.claude/.credentials.json, Codex auth.json, Gemini CLI oauth_creds.json and mcp-oauth-tokens.json, OpenCode auth.json and mcp-auth.json, goose secrets.yaml, Hermes auth.json and mcp-tokens/, mcp-remote ~/.mcp-auth when it launches mcp-remote), and the environment of systemd units or LaunchAgents that start it.

What any process running as you can read: AWS profiles (AKIA… long-lived, ASIA…/SSO short-lived, the roles each can assume), the gh login, .git-credentials, .npmrc, .pypirc, .netrc, pip, Docker (or the credential store it uses), kubeconfig (exec plugins short-lived, bearer tokens and client certificates unknown), gcloud, Azure, Hugging Face, credential-looking variables exported in your shell startup files and in this shell, and other agents' token stores. Any agent that can read files or run commands reaches all of it.

Each agent ends with a summary line, e.g. Claude Code: uses 5 credential(s) (2 long-lived, 0 short-lived, 3 unknown) through 3 MCP server(s); with file access it can reach 24 (11 long-lived, 3 short-lived, 10 unknown).

How lifetimes are decided: passwords, API keys, AKIA… keys, gho_ tokens and OAuth refresh tokens are long-lived (they work until revoked); ASIA… keys, ghu_/ghs_ tokens, OAuth access tokens and JWTs with an expiry, and exec/SSO plugins are short-lived; ghp_/github_pat_ tokens (expiry set at creation), npm tokens, references and values that say nothing about themselves are unknown.

Limits: Keychain, Credential Manager and keyring contents aren't read (asca says when a tool keeps its login there); effective permissions aren't checked (no network); an agent's sandbox may stop it reading some files. The JSON output carries a sha256: tag per literal value so other tools can match credentials without seeing them.

Cutting an agent off: a plan (asca kill-switch)

Identity platforms sell a kill switch: one click and an agent loses its access. A local agent has no such switch, because it runs as you with standing credentials. asca kill-switch writes the runbook you'd follow instead. It's a plan only: asca never revokes, stops, deletes or edits anything, and runs none of the commands it prints.

asca kill-switch "Claude Code" # or: codex, hermes, … (the agent's command name works too) asca kill-switch --all --format md # a printable checklist for every agent; --format json for tools The plan is in blast-radius order, and every step cites its evidence (file and entry):

Revoke every credential the agent can reach (from asca access): long-lived ones first, because they keep working after the agent is stopped; the agent's own credentials before the ones it can merely read; AWS keys that can assume roles first among those. Short-lived ones come last, with their expiry. The steps are provider-specific (the same ones asca's secret findings use), plus the logout commands for gh, AWS SSO, gcloud, Azure and Docker.

Contain, with commands for you to run: quit it; stop the scheduled jobs that start it (LaunchAgents and LaunchDaemons, systemd units, cron lines, XDG autostart, the Windows Startup folder and Run keys); disable its MCP servers; remove standing allow rules (counted, never quoted, because a saved rule can hold a password) and unsafe modes (bypassPermissions, Codex danger-full-access / approval_policy = "never"); and move its session history out of reach after rotating, because transcripts can hold secrets it saw.

Verify: re-run asca access, the kill-switch plan (the Contain steps should be gone) and the audit, then check each provider's audit log for use after you revoked.

With --all, the revoke list is shared (any agent with file access reaches the same files), each credential says which agents use it, and containment follows per agent, starting with the one that reaches the most long-lived credentials. Same limits as asca access: no keyring contents, no effective permissions, values never shown.

Who owns each agent and MCP server? (--owners, asca owners)

Identity platforms keep a registry: every agent has an owner, a purpose and a review date. On a laptop nobody knows who added the database MCP server or whether anyone still needs it. asca can check a small registry file against what's actually on the machine. It's optional: no file, no findings.

asca owners --init # starter file (~/.config/asca/owners.json) listing what's here, owners empty asca owners # table: owner, review due, plus the findings below asca --owners ~/.config/asca/owners.json # the same findings in the full audit {"version": 1, "default_review_every_days": 90, "agents": {"Claude Code": {"owner": "bora", "purpose": "coding", "reviewed_at": "2026-12-01"}}, "mcp_servers": {"github": {"owner": "bora", "purpose": "PR review", "reviewed_at": "2026-11-20", "review_every_days": 30}, "Cursor/github": {"owner": "team-web"}}} An MCP server key is its name in the config (every agent) or Agent/name (one agent, which wins over the plain name). Keys starting with _ are notes. The file can also be YAML.

Where the owners show up:

asca inventory --owners FILE: an Owners table (kind, name, agent, owner, purpose, reviewed, review due) in the report, and owners in its JSON.

SARIF: results about an owned MCP server, or about a file in an owned agent's folder, carry owner, purpose and review_due properties.

Intune: AscaOwnersMissing and AscaReviewsOverdue (0 when the audit runs without an owners file); asca export intune --rules --require-owners adds rules that require both to be 0.

Check a repo before you open it (asca check-repo)

Fake recruiters have sent developers, crypto and fintech especially, "take-home tests" that run code the moment the repo is opened in an IDE or npm install runs. asca check-repo runs asca's repo checks on one folder, offline, and prints one verdict before you open it:

python3 -m asca check-repo ~/Downloads/take-home-test python3 -m asca check-repo ~/Downloads/take-home-test --telegram always --env-file ~/.hermes/.env # verdict on your phone ⛔ Don't open it yet: a high finding, for example a folder-open task that runs curl … | sh, an install script whose file runs commands and talks to the network, wfx's hidden .ci-*.sh hook or a workflow step that dumps every secret, a link to ~/.ssh, or an archived Puppeteer MCP server.

⚠️ Check these first: medium findings, such as a committed IDE hook, or an install script that runs a repo file you should read first.

✅ No red flags: low notes only, such as prepare: husky.

What it checks: git config that runs programs; IDE and agent hooks that run on open; project MCP configs (incl. OpenCode's); PolinRider's padded loaders, fake font scripts and node init && script prefixes; .env files that are committed or not ignored; saved allow rules; agent instruction files (AGENTS.md, CLAUDE.md, .cursorrules, Copilot instructions, .claude/ commands and skills) against the skill-content rules; coding agents in .github/workflows; symlinks; and npm lifecycle scripts:

LOW: a build tool such as husky or only-allow.

MEDIUM: runs a file from the repo, or downloads something.

HIGH: runs a hidden file or hides its output, pipes a download to a shell, decodes or evals, or the file it runs both runs commands and reaches the network, or uploads data. The last one is stricter than the daily audit, which treats it as medium in your own repos because binary downloaders look the same.

CRITICAL: wfx's published indicators.

Workflows are checked for steps that hand out every secret or the Actions runtime token, see wfx.

Nothing in the repo is executed and git is never run. A folder without .git (an unpacked zip) is treated as if every file were committed. Exit code 1 means findings at or above --fail-on (default medium); --json prints them all.

Tested on the root package.json of 39 popular JS projects (React, Next.js, VS Code, Vite, Angular, Electron …): 0 high. The 13 medium findings all run a file from the repo. On 76 repos found by searching GitHub for install hooks: 6 high, each an install hook that runs commands and reaches the network (binary downloaders, one service registration), worth reading before you install a stranger's repo.

Limits: it reads only what's in the folder. It doesn't follow dependencies (a malicious package in node_modules after install) or run code to see what it does. Its source-code checks cover install scripts, agent files, and JS/TS files for PolinRider's padding signature, not general malicious code, so the safest way to try an untrusted repo is still a throwaway VM or container with no keys in it.

In CI: SARIF and the GitHub Action

--format sarif prints SARIF 2.1.0, the format GitHub code scanning and most CI security dashboards read. It works for check-repo and for the audit:

asca check-repo . --format sarif > asca.sarif # paths relative to the repo, with line numbers asca --repos ~/Projects --format sarif > asca.sarif # the audit; keep this one private (home paths) Severity: critical and high are error, medium is warning, low and info are note. Each rule also carries GitHub's security-severity, so code scanning shows the same severity asca does.

Same finding, same fingerprint: partialFingerprints hashes the rule, the location relative to the repo and the subject, so an alert stays the same alert across CI runs, even though each runner checks out to a different folder.

Baseline: findings your baseline accepts are included as suppressed, with your reason, instead of disappearing.

No secret values: same redacted text as the JSON report (prefix, length and a sha256: tag at most).

Exit codes don't change: 1 when something is at or above --fail-on, so a CI step fails the same way.

GitHub Action. This repo is also a composite action that runs check-repo on your checkout with the runner's Python, standard library only: nothing is installed, nothing in your repo is executed, and git is never run. Pin it to a release's full commit SHA, like any third-party action (for a later release, get it with git ls-remote https://github.com/borabaysal/Agent_Supply_Chain_Auditor refs/tags/vX.Y.Z):

# .github/workflows/asca.yml name: asca on: [push, pull_request] permissions: contents: read jobs: check-repo: runs-on: ubuntu-latest permissions: contents: read security-events: write # only for the upload step steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false - id: asca uses: borabaysal/Agent_Supply_Chain_Auditor@18b36e356141b0ae10bbc0645534a1886f3e4299 # v0.7.0 with: fail-on: high # critical, high, medium (default), low or info # optional: show the findings in the repo's Security tab (code scanning) - uses: github/codeql-action/upload-sarif@915412ff23e8b7659517e607487dbeae018f2934 # v4.39.5 if: always() && steps.asca.outputs.sarif-file != '' with: sarif_file: ${{ steps.asca.outputs.sarif-file }} category: asca Inputs: path (default .), fail-on (default medium), sarif-file (default asca.sarif). Outputs: sarif-file and exit-code. The step fails when something is at or above fail-on; if: always() still uploads the report. Runners without Python 3.10+ need actions/setup-python first (GitHub's hosted runners have it). The action ships from v0.7.0 on. This repo's action-selftest workflow runs the current code on Linux, macOS and Windows for every change, and also runs the pinned v0.7.0 reference above exactly as written here.

Plugin checkouts that aren't on their pinned commit (Plugin4Shell)

On by default (--no-plugin-pins to skip). Air Security's Plugin4Shell showed Claude Code, Codex and Copilot installing a plugin with git clone + git checkout . If the upstream repo's default branch is named exactly like that SHA, git prefers the branch: the agent reports "installed at the pinned commit" while the attacker's code is on disk, and background auto-update repeats it with no click. A Gemini CLI variant uses a branch named FETCH_HEAD. GitHub rejects such branch names; Bitbucket and self-hosted git allow them.

asca reads every git checkout under ~/.claude/plugins, ~/.codex/plugins, ~/.copilot, ~/.gemini/extensions and the Hermes plugins/ folder, as text: HEAD, loose refs and packed-refs. It never runs git.

No normal workflow creates a branch named like a commit hash, so it isn't a guess. Not compared: Claude Code's gitCommitSha in installed_plugins.json, which keeps its install-time value after updates (anthropics/claude-code#54969, #56740, #52218), so a mismatch there means nothing. Your agent's own version is covered by the version check: Claude Code < 2.1.179 and Codex < 0.146.0 are flagged.

Tested by reproducing the attack with real git in the test suite (a hash-named default branch, then git clone + git checkout ): git really checks out the attacker's branch, and asca rates it critical.

Full Disk Access for terminals, IDEs and agents (macOS)

On by default on macOS (--no-tcc to skip). Apple says agents misusing Full Disk Access put "all of the data on their Mac at risk" and is tightening the prompt in macOS 27.3, but grants you already gave stay. A grant to a terminal or IDE is inherited by every CLI agent you start inside it (Claude Code, Codex, Gemini CLI, Hermes) and by every node/python script they run.

asca opens the privacy database (TCC.db, system and user) with sqlite in read-only mode, and reads MDMOverrides.plist for grants pushed by an MDM profile, which aren't in TCC.db:

Orphan grants. Deleting an app doesn't remove its privacy grants: macOS keys them to the bundle id and the developer's signing requirement, so a reinstall gets them back without asking, and System Settings keeps listing an app you think is gone. In our Meta Muse test all three grants were still on after the app and its Chrome extension were removed (research, 3d). To decide an app is gone, asca reads the Info.plist of every app, extension and helper bundle under /Applications, /System/Applications, CoreServices, /Library/Application Support and your home's Applications, Library/Application Support, Downloads and Desktop (nested helpers count). Apple's own com.apple.* clients are skipped, MDM grants are left alone, and if the scan hits its folder cap no orphan is reported rather than guessed. The fix is in the finding: tccutil reset All , or remove the entry in System Settings.

TCC.db is itself protected: only a process with Full Disk Access can read it. From a scheduled job you'll usually get the low "couldn't read" finding instead of a silent pass, with the place to check by hand. If asca can read it, whatever launched asca has Full Disk Access, and the report's stats say so. asca never asks for or changes a permission. Grants to other apps (backup tools and the like) aren't reported.

Tested against TCC.db files built with Apple's schema (current, and the pre-Big Sur allowed column) and an MDM overrides file. It hasn't run against a live Mac's database in CI.

Intune compliance (asca export intune)

Microsoft Intune's custom compliance (Windows, Linux and, since July 2026, macOS) runs a discovery script on each device and compares its JSON output with a rules file; Conditional Access can then block non-compliant devices. asca export intune is that script's payload. It reads the device's last asca report (it doesn't run an audit inside Intune's 5–10 minute limit) and prints one line:

{"AscaReportFound":true,"AscaReportAgeHours":5,"AscaCritical":0,"AscaHigh":1,"AscaMedium":2,"AscaOwnersMissing":0,"AscaReviewsOverdue":0,"AscaResult":"FAIL","AscaVersion":"0.8.0"} To set it up:

Deploy the asca checkout and the scheduled job on each device, as for any asca install.

Upload the discovery script for the platform under Endpoint security → Device compliance → Scripts: macOS: examples/intune/discovery-macos.sh (bash 3.2). Intune runs it as root, so it reads the logged-in user's asca state. Set ASCA_DIR to where you deployed asca.

Linux: discovery-linux.sh (user context). Set ASCA_DIR to where you deployed asca.

Windows (Pro, Enterprise or Education; Intune doesn't support custom compliance on Home): discovery-windows.ps1. It's pure PowerShell (5.1 or 7, 32- or 64-bit host), so it needs no Python at compliance time. It reads the report that scripts/windows/asca-daily.ps1 writes to %LOCALAPPDATA%\asca\latest.json. Intune runs it as SYSTEM by default, and it then reads the report of the user signed in at the console. With "Run this script using the logged on credentials" set to Yes, it reads that user's own report.

If nobody is signed in at the console (RDP-only sessions included), the device is non-compliant until the next check.

With several accounts signed in (fast user switching), only the report of the account currently at the console counts. Every person who uses the PC needs their own daily asca task.

Set $ReportOverride in the script to use a fixed report path instead.

Create a custom compliance policy with examples/intune/rules.json. Regenerate it with other limits: python3 -m asca export intune --rules --max-high 2 --max-medium 10 --max-age-hours 72.

The default rules require a report, at most 48 hours old, with no critical and no high findings. Fail closed: no report, an unreadable one or a stale one makes the device non-compliant, so a stopped asca job doesn't leave a device compliant forever. Baseline-accepted findings don't count, so an accepted risk doesn't block anyone. The Windows script is tested against the exporter: CI runs it in Windows PowerShell 5.1 and PowerShell 7 on 16 report variants (normal, stale, BOM, broken JSON …) and requires identical output. It was also run as SYSTEM in the 32-bit host (Intune's default) on a Windows 11 ARM64 VM, where it read the console user's report correctly.

Stolen-key spend tripwire (asca spend, opt-in, online)

Stolen AI keys (LLMjacking) usually show up first on the bill. asca spend checks your providers' usage and alerts when it jumps, so you can revoke the key the same day. Run it hourly:

python3 -m asca spend # keys from the environment or your agents' .env files python3 -m asca spend --telegram change # scheduled: one message when it starts, one when it's normal again python3 -m asca spend --max-daily-usd 20 # also a hard daily ceiling, active from the first run Provider Key it needs What it checks OpenRouter any normal key (OPENROUTER_API_KEY) GET /api/v1/key for that key's cumulative usage. asca keeps one sample per run and compares today's spend with the median of the last 7 complete days, and the last hour with a normal day. Also flags a key close to its credit limit (medium) or without one (low). Anthropic an Admin key (ANTHROPIC_ADMIN_KEY, sk-ant-admin01-…); normal API keys can't read usage Daily cost from the Cost API, compared the same way. The Usage API grouped by key and model flags an API key (high) or model (medium) used today that wasn't used in the previous 8 days, a common sign of a key being resold. A spike is spend.spike (high): today's spend is over 3× the 7-day median and at least $2 more (--factor, --min-usd), or the last hour cost more than a normal day. It needs 3 complete days of history first; until then it only reports "learning", except for --max-daily-usd.

Safe by construction: only GET requests, and each key goes only to its own provider's API host. Keys are never printed or stored. The state file (~/.local/state/asca/spend.json, mode 0600) keeps usage numbers, a short hash per key, and Anthropic API key IDs and model names, none of which are secret.

Limits: neither provider reports where requests come from (Anthropic's inference_geo is where the model ran, not the caller), so there is no "new region" alert. Anthropic cost data lags a few minutes. Spend from a key on another platform (OpenAI, Google, Bedrock) isn't covered yet.

Were your GitHub repos hit by wfx? (asca github-check, opt-in, online)

The wfx stealer (SafeDep, Aikido) pushed with stolen tokens into the victims' own repos, ran once, then reverted within a minute and deleted the workflow run with its logs. The traces are on GitHub, not on your disk, so this command checks them through the GitHub API:

python3 -m asca github-check # every repo your token's user owns (incl. private) python3 -m asca github-check --owner my-org # every repo of an org or user python3 -m asca github-check --repo me/app --json # one repo; JSON output python3 -m asca github-check --telegram change # schedule it: a message only when the result changes Finding Severity github.wfx-probe-pr: a docs: dependency audit notes PR or one from a wfx-docs branch, open or closed. SafeDep: "a probe pull request on its own means the account is compromised" critical github.wfx-payload-commit: chore: add ci helper / chore: add dependency audit workflow (high), ci: refresh build cache (medium, generic wording); critical when a ci: restore / ci: cleanup commit is there too medium to critical github.wfx-branch: wfx-docs (critical); chore/ plus 8 random characters or ci-check-NNNN (medium, could be yours) medium, critical github.deleted-runs: gaps in a workflow's run numbers since the campaign started. Aikido: "a missing run number … is the more reliable sign that the payload ran". High next to a probe PR or payload commit; on its own it's a low note, because maintainers of busy repos delete runs too low, high github.wfx-loot: a wfx-loot artifact or a wfx- cache entry critical The default branch's package.json, the file its hook runs, and its workflows, checked with the offline wfx rules as there Each repo gets a verdict: 🟥 payload pushed · 🟥 probed (account compromised) · 🟧/🟨 check · ✅ clean · ❔ couldn't check (a repo that can't be read is never called clean). The window starts on 10 Nov 2026, the first probe (--since).

Read-only. Only GET requests, only to api.github.com (or your Enterprise host). Nothing is cloned and nothing is written to GitHub. The token is found the same way as --github-token-scopes (gh login, GH_TOKEN/GITHUB_TOKEN, .git-credentials) or given with --token-env VAR, and it's never printed. Deleted runs can only be checked where the token can read Actions (fine-grained: Actions: read); the output says how many repos that skipped.

Tested on four repositories SafeDep lists as affected: it finds their probe PRs, the payload commits SafeDep cites, the cleanup commits and the deleted runs (one repo has since been deleted and is reported as "couldn't check"). On 40 busy public repos (Hermes, OpenClaw, Codex, VS Code, React, CPython …): all clean. 15 run-number gaps there are low notes only; the first version, which grouped runs by name, reported 84. On the 24 repos of a real account: clean, using 194 API calls.

Limits: GitHub keeps only what the attacker didn't delete. A force-push that rewrote history removes the commits, and a deleted branch leaves no trace. If a probe PR is there, treat the account as compromised even when nothing else shows.

Forged force-pushes (asca forged-commits, opt-in, online)

PolinRider spread by force-pushing a copy of a repo's latest commit with its loader added: same author, committer, timestamps to the second and message, so git log looks unchanged. GitHub's Activity API still records each force-push and the commit it replaced. For maintainers:

python3 -m asca forged-commits me/app me/lib # last 500 force-pushes per repo python3 -m asca forged-commits me/app --ref main --time-period month --format json Finding Severity repo.forged-commit: the new commit copies the replaced one's author, committer, both dates and message (an amend or rebase always sets a new committer date) critical repo.force-push-signature-lost: the replaced commit was verified by GitHub (e.g. a web merge), the new one isn't high on the default branch, else medium repo.force-push-backdated: the new commit was made more than an hour before it was pushed (Apiiro: 94% of PolinRider's pushes) low; medium over 7 days repo.force-push: every other force-push info Read-only GET requests to api.github.com; public repos work without a token, GITHUB_TOKEN / ASCA_GITHUB_TOKEN raises the rate limit. Exit code 1 means findings at or above --fail-on (default high), 2 an API or usage error. Calibrated on the last 100 force-pushes of anomalyco/opencode (an active repo whose maintainers amend and rebase all day): the first version, which compared only author and message, called 55 of them forged, because git commit --amend keeps both. Requiring the committer date to match too brought that to 0, leaving 3 low "backdated" notes. On NousResearch/hermes-agent all 100 recent force-pushes are info. A rebased branch pushed a few hours later is normal, so a backdated commit on its own is only a low note. Each force-push costs up to two API calls, so 100 pushes take one to three minutes.

Limits: GitHub keeps force-push events for about 90 days, and a replaced commit that has been garbage-collected can't be compared (counted as commits_unavailable).

Incident posts (asca post)

Turns an incident into a sample asca finding plus a short X post (≤280 characters, links counted as 23) and a three-line LinkedIn post, each linking the primary source. Nothing is published; it prints text to review.

asca post --list # incidents: artex, agent-framework, stealer-view, litellm-cook, # sombermeme, mcp-drift, document-loader, carbonato, # miasma-wiper asca post artex # sample from a planted setup in a temp folder asca post stealer-view --report asca-report.json # a matching finding from your real report instead asca post mcp-drift --format json -o post.json Daily agent threat cards (asca post --feeds)

asca post --feeds # new CSA, CSA AI Safety Labs, SOCRadar and Bitdefender Labs reports since the last run asca post --feeds --format json # for a scheduled job that drafts the posts asca post --feeds --all # ignore the seen-state Each new report whose title or summary fits a topic (exposed AI stacks, malicious PyPI packages, agent hooks, MCP, Docker APIs, wipers, credential stealers, jailbroken agents, malicious skills/extensions, git config, developer supply chain) becomes a card: source, link, the asca checks that illustrate it and the asca post template to start from (or a note that it needs a new incident). Reports that fit nothing are counted. Seen links are kept in ~/.config/asca/feeds-seen.json, so each report becomes a card once. Only GET requests to the four feeds; nothing is posted. A daily Hermes cron job can run it and write the drafts for review (see docs/threat-cards.md). Tested on the live feeds (1 Dec 2026): 257 reports, 36 cards; the topic match is keyword-based and lets some marketing posts through, so a person (or the drafting agent) picks what's worth a post.

The sample is real asca output. It comes from running the current check on a throwaway setup at generation time, so a rule change can't leave a stale example in a post.

Findings from a real report are cut down to their title, severity, rule, location, detail and fix. Paths keep only the file name, plus its parent when that's a dot-folder or a standard system folder, so user, project and client folder names are left out. The report's host label, subject and fingerprint are never used, and secrets are already redacted in findings. Finding titles can still name your tools (an MCP server's name, for example), so read the post before you publish it.

Dashboard (asca dashboard)

One page per host with every asca job's status and the fixes to act on, so you don't have to dig through .md reports.

python3 -m asca dashboard # reads ~/.local/state/asca, writes dashboard.html there open ~/.local/state/asca/dashboard.html # macOS; xdg-open on Linux What's on it:

One card per job (audit, skills, inventory, fleet, egress) with its status, counts, last run time and report file. A job with no new report for over 26 hours is marked STALE (--stale-hours), so a scheduled job that silently stopped is visible.

Act on these: every critical, high and medium finding, with where, why and fix. Commands in a fix are in boxes that select with one click. New findings (first seen within the last 36 hours) get a NEW badge. Lower-priority and baseline-accepted findings are folded away.

Leaked keys: where each one is. One card per leaked key instead of one finding per copy, grouped by the hash tag every report uses (never the value). Each card shows:

The provider and the masked key (4-character prefix and length).

Every place a copy was found, by agent (Hermes, Claude Code, Codex, Cursor …) and kind (config, transcripts with a file count, allow rule, MCP config, cron job …).

How many days it has been exposed, from the first-seen date in the dashboard's memory. A key that was already there when tracking started says so, rather than guessing a date.

Whether it's still your live key: the values in your agents' .env files ($HERMES_HOME/.env, ~/.hermes/.env, ~/.openclaw/.env, ~/.config/goose/.env, or --env-file) are hashed in memory and compared with the tags; values are never written or shown. A live key needs rotating; a copy of a rotated key only needs deleting. --no-live-check skips this.

The provider's revoke steps, once.

Keys accepted in a baseline ("rotated on …") are listed folded away, and flagged if a key you accepted as rotated is in fact still live.

Fixed recently: audit and skill findings that disappeared in the last 7 days. A report that's missing or unreadable never counts as a fix.

Audit trend (from history-*.json), Hermes patch level, and the egress summary.

Where the reports come from: both layouts in use are found automatically: one folder per job (audit/latest.json, skills/skills-latest.json, …, as scripts/macos/asca-run.sh writes them) or the audit report at the state root (as scripts/asca-daily.sh writes it). Use --state-dir and -o for other places, and --host-label for the page title.

Its location at the end of every report. When ASCA_DASHBOARD is set, every Markdown report and Telegram alert ends with Dashboard: , so you never have to remember where the page is. The macOS runner and scripts/asca-daily.sh set it to the page they rebuild. Set it yourself when you open the page from another machine, e.g. ASCA_DASHBOARD="myhost:~/.hermes/state/asca/dashboard.html". It's only a path: no report content or secret is added.

Safe by construction:

A file, not a server. No listening port, nothing to log in to, no network access.

Nothing in it can run. No JavaScript at all, and a strict Content-Security-Policy (default-src 'none') blocks scripts, external images, fonts and frames.

Scanned content is shown as text. Findings quote things an attacker can choose (skill names, paths, commands), so every value is HTML-escaped; the tests include a hostile skill name.

No secrets, private file. Reports never contain secret values, and the page is written atomically with mode 0600, next to dashboard-state.json (first-seen dates, also 0600).

Hub "pinning" means an upstream commit is recorded. Hermes' lock currently stores only a content hash, so every community hub skill is reported until Hermes records commits or you vendor skills into a repo you control.

Secret detection is pattern-based. It catches common providers and obvious assignments, not every possible secret.

A private-key header on its own (-----BEGIN … PRIVATE KEY----- in docs, checklists or secret-scanner regexes) isn't reported: asca needs base64 key material after the header (same line, the next lines of a file, or a quoted string in source code; encrypted PEMs included). A truncated key that shows only its header is therefore missed.

AWS access key IDs inside pre-signed URLs (AWSAccessKeyId=, X-Amz-Credential=) aren't reported: the ID is public by design and the URL's signature expires.

Session-history scanning reads plain-text and JSON transcripts plus Cursor's SQLite chat rows. It doesn't read other binary or encrypted stores, Claude Desktop or ChatGPT app history, or transcripts from agents not listed above. Each file is scanned up to the per-file cap, and the remainder of a larger file is skipped.

A secret split across two JSON lines, or longer than the 256-char window overlap, can be missed.

Stray-instruction search covers only the folders listed (plus --instructions-dir), two levels deep. It can't tell a legitimate instruction file from an extracted archive. Use a baseline for ones you accept.

Remote (URL) MCP servers can't be pinned and are reported as info.

Persona rules read instructions in English. A rewritten persona in another language, or one that only changes the agent's goals without these phrases, is caught by the inventory's SOUL.md hash, not by content.

The symlink check finds links left on disk or committed; a link created and used within one run is gone before asca looks.

The Docker check reads the host's daemon configuration. Run inside a container, it can't see the host's.

The CI-agent check reads workflow files only. It doesn't see repository or organisation settings (the default token permissions, "require approval for fork PRs", branch rules), reusable workflows in other repos, or composite actions that wrap an agent under another name. A job without a permissions: block is reported as "doesn't restrict" because the repository default may be read-write.

global core.fsmonitor=false is suggested as defence in depth only. A repo-local value still overrides it.

Version advisories cover Hermes Agent, Claude Code, Codex, Gemini CLI, goose, OpenCode and Claude Desktop. IDE extensions (Cursor, Copilot, Cline …) aren't matched: no advisory feed covers the VS Code Marketplace, so the inventory only tracks their versions. A goose or OpenCode installed with the curl script has no version on disk and isn't checked.

Issues and PRs are welcome, especially new MCP client config locations, git program-executing keys, and secret patterns. Every rule needs a test, and fixtures must build fake secrets at runtime (see tests/test_asca.py: fake()) so the repo stays clean under its own scan. Security problems in asca itself: see SECURITY.md.

uv venv .venv && uv pip install --python .venv/bin/python pytest==8.4.2 .venv/bin/python -m pytest -q License

Released: Dec 5, 2026

Both files in this release have provenance metadata.

View provenance details

MIT View SPDX License List

ai-agents mcp security secrets supply-chain audit

Development Status 4 - Beta

Intended Audience Developers

Operating System OS Independent

Programming Language Python :: 3

Release files for agent-supply-chain-auditor 0.8.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Built distribution (wheel)

Total release size: 1.3 MB

Release files / agent_supply_chain_auditor-0.8.0.tar.gz

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 5, 2026.

Security for agent-supply-chain-auditor 0.8.0

Both files in this release have been uploaded with provenance metadata.

With provenance agent_supply_chain_auditor-0.8.0.tar.gz Dec 5, 2026

Attestation for agent_supply_chain_auditor-0.8.0.tar.gz

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

Dec 5, 2026 2 release files Full provenance

Dec 4, 2026 2 release files Full provenance

Dec 3, 2026 2 release files Full provenance

"PyPI", "Python Package Index", and the blocks logos are registered trademarks of the Python Software Foundation.

© 2026 Python Software Foundation

Deployed from 4d99e05

Source Attribution: This report incorporates information referenced or syndicated from Pypi.org. Read original coverage at Pypi.org.

More from Technology →
Haldwani Times
Haldwani Times Independent News & Editorial
Login
MARKETS & FINANCE
BRENT CRUDE: $78.40 -0.52% SENSEX: 81,450.20 +0.42% NIFTY 50: 24,820.15 +0.38% GOLD (24K): ₹74,500/10g -0.18% USD/INR: ₹95.54 +0.10%

ADMINISTRATIVE LEADERSHIP

Mr. Narendra Modi
Mr. Narendra Modi
Mr. Lt. Gen. Gurmit Singh
Mr. Lt. Gen. Gurmit Singh
Mr. Pushkar S. Dhami
Mr. Pushkar S. Dhami
Mr. Lalit M. Rayal
Mr. Lalit M. Rayal
Mr. Gajraj S. Bisht
Mr. Gajraj S. Bisht

Top Headlines & Breaking Stories

View All News →
बागेश्वर में मातृशक्ति सम्मेलन, सीएम धामी ने महिलाओं के सशक्तिकरण को बताया सरकार की प्राथमिकता
Haldwani

बागेश्वर में मातृशक्ति सम्मेलन, सीएम धामी ने महिलाओं के सशक्तिकरण को बताया सरकार की प्राथमिकता

Bageshwar: CM Dhami: बागेश्वर में भव्य मातृशक्ति सम्मेलन का आयोजन किया गया, जिसमें मुख्यमंत्री पुष्कर सिंह धाम...

Haldwani Times 4 Dec

Haldwani Times – Everything in Haldwani: News, Shops, Businesses & Services

Haldwani Times is the premier digital news and commercial discovery platform built specifically for the citizens, business owners, students, professionals, and visitors of Haldwani, Nainital district, and the wider Kumaon region of Devbhoomi Uttarakhand. As the economic gateway to the Kumaon Himalayas, Haldwani is a bustling metropolis connecting the plains of northern India with the scenic mountain districts of Nainital, Almora, Pithoragarh, Bageshwar, Champawat, and Udham Singh Nagar. Haldwani Times serves as the definitive digital heartbeat of the city, bringing breaking hyperlocal news, verified commercial directories, educational updates, healthcare guides, Mandi Bhav rates, and civic announcements onto a single unified, trusted platform.

The Definitive Source for Breaking Haldwani News & Civic Updates

Haldwani stands as one of the fastest-growing urban conglomerates and commercial engines in northern India. Positioned in the fertile Terai-Bhabhar belt at the foothills of the Shivalik range, the twin cities of Haldwani and Kathgodam form the administrative and logistical nerve center for the entire Kumaon division. With rapid urbanization, expanding commercial infrastructure, flourishing educational centers, and increasing inter-state transit, the demand for fast, fact-checked, and unbiased local journalism has never been greater. Haldwani Times delivers 24/7 comprehensive news coverage built on rigorous journalistic standards: - **Hyperlocal Civic News:** Real-time coverage of municipal corporation affairs, city drainage projects, traffic management blueprints, and road widening drives across Tikonia, Mukhani, Kusumkhera, Bareilly Road, and Rampur Road. - **Administrative Directives:** Official notifications from the District Magistrate (DM) Nainital, Senior Superintendent of Police (SSP), and state secretariat decisions affecting citizen welfare. - **Kumaon Weather & Disaster Alerts:** Timely mountain rainfall warnings, landslide advisories along NH-109 (Haldwani-Nainital Highway), and emergency bulletins during the monsoon and winter seasons. - **Education & Campus News:** Timely reports on Kumaon University examination schedules, Uttarakhand Board (UBSE) results, medical college admissions, and competitive coaching updates. - **Commercial & Market Trends:** Daily wholesale Mandi Bhav rates from Haldwani Subzi Mandi, real estate trends, retail market festivals, and local business openings. - **Cultural & Pahadi Heritage:** In-depth feature stories celebrating Kumaoni folk traditions, Aipan art, Nanda Devi festivals, and local community milestones.

Everything in Haldwani on One Unified Digital Ecosystem

Beyond traditional news reporting, Haldwani Times is engineered as an exhaustive local discovery engine. Historically, finding verified local business telephone numbers, emergency hospital contacts, specialized doctors, reliable plumbers, or trusted real estate consultants in Haldwani required asking neighbors or browsing outdated social media posts. Haldwani Times eliminates this friction by organizing every commercial, professional, and civic resource into searchable, verified categories. Whether you are a newly arrived resident in Kusumkhera looking for high-speed broadband providers, a parent searching for reputable CBSE schools near Kaladhungi Road, or a tourist seeking taxi rentals to Nainital, our portal delivers accurate, verified, and actionable information in seconds.

Local Shops, Retail Hubs & Traditional Bazaars in Haldwani

The retail commerce of Haldwani spans centuries-old traditional bazaars and modern commercial complexes: - **Bada Bazaar & Mangal Parao:** The historic retail heart of Haldwani, renowned for traditional Kumaoni wedding jewelry (Pauji, Guloband, Nath), brass utensils, ethnic handlooms, and wholesale clothing. - **Nainital Road & Tikonia Commercial Corridor:** Modern multi-brand retail showrooms, electronics stores, authorized smartphone service centers, branded footwear outlets, and international apparel stores. - **Bareilly Road & Rampur Road Trade Hubs:** Major agricultural machinery dealers, hardware and building material wholesalers, furniture manufacturing units, plywood distributors, and automobile showrooms. - **Subzi Mandi & Wholesale Grain Market:** One of the largest agricultural distribution centers in North India, supplying fresh vegetables, hill fruits (apples, peaches, plums), and organic Pahadi pulses (Gahat, Bhatt, Rajma) across northern states.

Healthcare Hub of Kumaon: Hospitals & Emergency Services

Haldwani serves as the premier medical lifeline for all six hill districts of Kumaon. Patients travel from Almora, Pithoragarh, Bageshwar, and Champawat to access specialized clinical treatments in Haldwani: - **Government Healthcare Institutions:** Dr. Susheela Tiwari Government Medical College & Hospital (STGH) and Base Hospital Haldwani provide tertiary trauma care, specialized super-specialties, pediatric ICUs, and 24/7 emergency response. - **Private Multi-Specialty Hospitals:** Advanced private medical centers specializing in cardiology, joint replacements, neurology, critical care, nephrology, and advanced laparoscopic surgeries. - **Diagnostic Centers & 24/7 Pharmacies:** Fully automated pathology laboratories, high-resolution MRI/CT scan centers, and round-the-clock emergency pharmacies clustered around Medical College Road, Kaladhungi Road, and Rampur Road.

Education, Colleges, Coaching Academies & Youth Development

Haldwani is the educational capital of the Kumaon region, home to thousands of ambitious students preparing for medical, engineering, defense, and civil services careers: - **Premier Degree Colleges:** Motiram Baburam Government Post Graduate College (MBPG College) and Women's Degree College providing extensive undergraduate and postgraduate humanities, commerce, and science programs. - **Competitive Coaching Ecosystem:** Highly reputed coaching academies for NEET UG, JEE Main & Advanced, UPSC Civil Services, UKPSC/UKSSSC, NDA, CDS, and Banking examinations along Kaladhungi Road and Tikonia. - **Affiliated Schooling Infrastructure:** Esteemed CBSE, ICSE, and Uttarakhand Board schools imparting value-based holistic education with modern sports and laboratory facilities.

Real Estate, Housing Colonies & Urban Expansion Trends

Driven by rapid infrastructure expansion and high quality of life, Haldwani's real estate market is expanding outward into organized residential colonies: - **Prime Residential Localities:** Highly sought-after residential sectors in Mukhani, Kusumkhera, Kaladhungi Road, Judge Farm, Daharia, and Bhotia Parao offering planned housing, green parks, and modern civic amenities. - **Commercial Property Investments:** Thriving commercial retail complexes, office spaces, and warehouse hubs developing rapidly along the proposed Haldwani Ring Road and transport corridors. - **Property Advisory & RERA Compliance:** In-depth real estate updates, circle rate revisions by the Nainital district administration, and buyer advisory guidelines for safe property acquisitions.

Strategic Transit Gateway, Tourism Routes & Kumaon Himalayan Connectivity

Haldwani-Kathgodam is the vital transit bridge connecting the plains of Delhi NCR and Uttar Pradesh with the hill stations of Uttarakhand: - **Kathgodam Railway Terminal:** Connecting Kumaon directly to New Delhi (Shatabdi Express, Ranikhet Express), Lucknow, Kolkata, Jammu, and Dehradun. - **ISBT Haldwani:** Operating round-the-clock interstate and mountain bus routes managed by Uttarakhand Transport Corporation (UTC) and private deluxe coaches. - **Pantnagar Airport (PGH):** Located just 26 km from Haldwani, offering scheduled domestic flights to New Delhi, Dehradun, Pithoragarh, and regional hubs. - **Himalayan Tourism Hub:** The primary staging point for journeys to Nainital (34 km), Bhimtal (30 km), Mukteshwar (72 km), Kainchi Dham (42 km), Almora (90 km), Ranikhet (80 km), and Jim Corbett National Park (55 km).

Gaula River Mining, Ecological Balance & The Bhabhar Economy

The Gaula River represents the undisputed economic and hydrological lifeline of Haldwani and the broader Nainital district. Originating from the Sattal-Bhimtal catchment in the lesser Himalayas, the river flows south past Kathgodam and Haldwani before merging into the Ramganga. For generations, the Gaula riverbed has provided the foundation for both regional agriculture and the construction economy across northern India: - **Regulated Minor Mineral Extraction:** During the open mining season (typically October to May), thousands of registered tractor-trolleys and heavy dumpers harvest riverbed gravel, sand, and boulders under strict surveillance by the Uttarakhand Forest Development Corporation and the Nainital district administration. - **Livelihood Support for Over 50,000 Families:** The Gaula mining economy directly and indirectly sustains vehicle owners, drivers, mechanics, diesel pump stations, roadside eateries, and local laborers, circulating over ₹500 crore into Haldwani's local markets annually. - **Environmental Safeguards & Flood Mitigation:** In strict adherence to High Court and National Green Tribunal (NGT) directives, scientific replenishment studies, satellite GPS tracking on transport vehicles, and seasonal mining bans during the monsoon protect the river's ecological balance and prevent bank erosion along low-lying residential sectors.

Culinary Landscape: From Traditional Kumaoni Rasoi to Modern Cafes

Haldwani's gastronomic scene reflects a delightful blend of rustic mountain traditions and cosmopolitan dining: - **Authentic Kumaoni Specialties:** Local restaurants and heritage dhabas serve traditional mountain delicacies cooked in iron vessels, including Bhatt ki Churkani (black soybean curry), Gahat ke Dubke (horsegram puree), Aloo ke Gutke tempered with wild Himalayan chives (Jamboo) and Jakhiya, and refreshing cucumber Raita flavored with freshly crushed mustard seeds. - **Traditional Confectioneries:** Historic sweet shops along Bada Bazaar and Nainital Road craft Almora's world-famous Bal Mithai (roasted caramelized khoya fudge coated in sugar balls) and Singaudi (sweetened khoya wrapped in wild Malu leaves). - **Vibrant Street Food & Cafe Culture:** As dusk falls, Tikonia and Nainital Road come alive with bustling street food stalls offering steaming Tibetan momos, spiced thukpa, Kathi rolls, and hot Masala Chai, alongside modern rooftop cafes serving specialty Italian coffees and continental snacks.

Cultural Festivals, Folk Heritage & The Aipan Art of Kumaon

Beyond commercial enterprise, Haldwani is the proud cultural showcase of Devbhoomi Uttarakhand: - **Aipan Folk Art Tradition:** The sacred geometrical floor and wall art handcrafted with red ochre (Geru) and white rice paste (Biswar) adorning thresholds, altars, and chowkis during auspicious ceremonies, now preserved through local women's self-help cooperatives. - **Classical Baithki & Khadi Holi:** Unique to Kumaon, musical celebrations starting as early as the month of Paush, featuring classical Hindustani ragas sung in community courtyards followed by energetic Chholiya dance performances during spring. - **Nanda Devi & Chholiya Heritage:** Grand annual fairs celebrating the patron deity Nanda Devi, accompanied by martial sword-and-shield Chholiya dancers whose rhythmic brass trumpets (Ransingha) and hurka drums resonate through the valley.

Public Amenities, Parks & Community Spaces in Haldwani

Urban lifestyle and recreational infrastructure in the city: - **Green Parks & Walking Tracks:** Walkway projects around Daharia, Judge Farm, and Awas Vikas providing lush recreational zones for families and seniors. - **Community Centers & Sports Grounds:** Multi-purpose auditoriums and grounds hosting cultural melas, badminton tournaments, and community celebrations. - **Gaula Barrage & Forest Trails:** Scenic river viewpoints and natural birdwatching areas attracting eco-tourists and local nature enthusiasts on weekends.

Frequently Asked Questions (FAQs)

How can I access live breaking news and weather alerts for Haldwani?

Haldwani Times operates a dedicated 24/7 hyperlocal newsroom providing real-time breaking bulletins, traffic alerts, and meteorological warnings. You can access live news directly from our homepage, subscribe to instant browser push notifications, or view categorical updates on Uttarakhand, Education, and Mandi Bhav. During monsoon and winter weather events, our correspondents provide live updates on NH-109 road blockages and emergency administrative orders issued by the Nainital District Magistrate.

Is Haldwani Times completely free to read for all visitors?

Yes, Haldwani Times offers completely unrestricted, open-access reading to all users without mandatory paywalls. Readers across Haldwani, Uttarakhand, and the global diaspora can freely browse all breaking news reports, investigative articles, business directory listings, and historical archives. Our public-interest mission ensures that essential civic information, emergency hospital directories, and educational circulars remain universally accessible to everyone at zero cost.

How can local business owners list their shop or service in the Haldwani directory?

Local merchants, medical practitioners, schools, and service professionals can register their business by navigating to our 'Business Directory' page and selecting 'Add Listing'. The registration process allows you to input your business name, address, contact numbers, operational hours, services offered, and high-resolution showroom photographs. Once submitted, our local verification team verifies the physical address within 24 hours to ensure high consumer trust and top ranking on Google.

Can I read Haldwani Times articles in Hindi as well as English?

Yes, Haldwani Times features a seamless, native bilingual reading experience tailored for our regional readership. With our one-click language toggle located prominently in the navigation bar, you can instantly switch between English and pure Hindi. Both versions feature carefully crafted editorial phrasing, accurate regional terminology, and culturally resonant storytelling to ensure maximum readability for students, families, and senior citizens alike.

How do I submit news tips, event notices, or press releases to the editorial team?

Our newsroom warmly welcomes verified news tips, community event notices, civic grievances, and official press releases from citizens and local organizations. You can submit your documents, photos, or video evidence directly to our central editorial desk at editorial@haldwanitimes.com or via our Help & Support page. Our senior editors review every submission for factual authenticity, multi-source verification, and public relevance prior to publication.

Where can visitors find authentic Kumaoni Bal Mithai and Singaudi in Haldwani?

Renowned traditional sweet houses clustered along Bada Bazaar, Mangal Parao, Kathgodam Station Road, and Nainital Road specialize in daily batches of authentic Bal Mithai and fragrant Singaudi prepared with pure mountain dairy khoya and natural ingredients.

What transportation options are available for traveling from Haldwani to Nainital and Bhimtal?

Continuous state transport buses (UTC), KMOU coaches, and registered taxi union sharing cabs operate 24/7 from the Haldwani Roadways Bus Station (near Tikonia) and Kathgodam Railway Station. Fares are regulated by the transport department, with mountain travel times ranging between 1 to 1.5 hours.