npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

solongate-audit

v2.0.0

Published

AI agent audit log tool — scans Claude Code, Gemini CLI & OpenClaw logs against OWASP Agentic Top 10

Readme

solongate-audit

AI agent audit log tool. Scans real session logs from Claude Code, Gemini CLI, and OpenClaw, then checks them against the OWASP Agentic Top 10 (2026).

npx solongate-audit
SolonGate Security Audit — OWASP Agentic Top 10

  AI Tools: Claude Code, Gemini CLI, OpenClaw
  Sessions: 33 total, 5104 tool calls
  Period: 30.12.2025 — 17.04.2026

❌ ASI01 Goal Hijacking     NOT PROTECTED
❌ ASI02 Tool Misuse        NOT PROTECTED
⚠️ ASI03 Identity Abuse     PARTIAL
...

  Security Score: 2/10
  Fix 8 critical issues → solongate.com

How it works

  1. Reads AI tool session logs from your machine (not the network)
  2. Extracts every tool call — name, arguments, result, timestamp
  3. Analyzes patterns against OWASP Agentic Top 10 (ASI01–ASI10)
  4. Reports PROTECTED / PARTIAL / NOT PROTECTED per category

What it checks

| Code | Category | What's analyzed in logs | |------|----------|------------------------| | ASI01 | Goal Hijacking | Prompt injection patterns in tool args & results | | ASI02 | Tool Misuse | Sensitive file access, destructive commands, data exfiltration | | ASI03 | Identity Abuse | Model identity, privilege escalation, multi-agent overlap | | ASI04 | Supply Chain | Unpinned package installs, unknown tools | | ASI05 | Code Execution | Shell injection, eval, sandbox detection | | ASI06 | Memory Poisoning | MINJA patterns in tool results, unscanned outputs | | ASI07 | Inter-Agent Comms | Multi-agent delegation, receipt chains, fan-out | | ASI08 | Cascading Failures | Error rates, burst patterns, retry storms | | ASI09 | Human-Agent Trust | Deploy/publish without approval, raw intent routing | | ASI10 | Rogue Agents | Volume spikes, scope escalation, behavioral anomalies |

Default log locations

These are scanned automatically — no configuration needed:

| AI Tool | Log location | |---------|-------------| | Claude Code | ~/.claude/projects/<project>/<session>.jsonl | | Gemini CLI | ~/.gemini/tmp/<project>/chats/session-*.json | | OpenClaw | ~/.openclaw/agents/main/sessions/<session>.jsonl |

Custom log directories

Add extra directories if your logs are in a non-standard location:

# Add a custom directory
npx solongate-audit --add-dir /path/to/logs

# Add multiple
npx solongate-audit --add-dir /home/other-user/.claude/projects
npx solongate-audit --add-dir /var/log/ai-agents

# Remove a directory
npx solongate-audit --remove-dir /path/to/logs

# List all directories (default + custom)
npx solongate-audit --list-dirs

# Auto-search system for AI tool logs
npx solongate-audit --search

Custom directories are saved in ~/.solongate-audit/config.json and persist across runs.

CLI

npx solongate-audit                     # Compact report
npx solongate-audit --detailed          # Detailed analysis per category
npx solongate-audit --logs              # Show last 50 tool calls (detailed)
npx solongate-audit --logs 100          # Show last N tool calls
npx solongate-audit --watch             # Live monitoring (updates every 2s)
npx solongate-audit --json              # JSON output for CI
npx solongate-audit --help              # Show all options

Export

Generate report files in multiple formats:

npx solongate-audit --export json       # Full report as JSON
npx solongate-audit --export csv        # Tool calls as CSV (Excel-compatible)
npx solongate-audit --export html       # Visual HTML report (dark theme, filterable)
npx solongate-audit --export pdf        # PDF-ready HTML (open in browser → Print → Save as PDF)
npx solongate-audit --export all        # All formats at once

What each format includes

| Format | Content | |--------|---------| | JSON | Sessions, tool calls, audit results, score, metadata | | CSV | One row per tool call: timestamp, source, session, model, tool call ID, tool name, arguments, result, error status | | HTML | Branded visual report with score card, audit table, filterable/searchable tool call log, expandable arguments & results | | PDF | Same HTML with print CSS (@page A4 landscape) — click "Export PDF" button or Ctrl+P |

CI integration

Exit code 0 if score >= 7/10, exit code 1 otherwise.

# GitHub Actions
- run: npx solongate-audit

Auto-publish

When a commit is pushed to main with a new version in package.json, GitHub Actions automatically publishes to npm. No manual npm publish needed.

To set up: add your npm token as NPM_TOKEN in GitHub repo → Settings → Secrets → Actions.

Scoring

  • PROTECTED = 1 point
  • PARTIAL = 0.5 points
  • NOT PROTECTED = 0 points

Score = sum / 10 (integer).

Install

# Run directly (no install needed)
npx solongate-audit

# Or install globally
npm install -g solongate-audit
solongate-audit

# Or add to a project
npm install --save-dev solongate-audit

Requires Node.js >= 18.

Contributing

# Clone the repo
git clone https://github.com/solongate/solongate-audit.git
cd solongate-audit

# Install dependencies
npm install

# Run in dev mode
npm run dev

# Build
npm run build

# Test locally
node dist/index.js
node dist/index.js --export html

Project structure

src/
  index.ts        CLI entry point, flag parsing
  collector.ts    Reads logs from Claude, Gemini, OpenClaw
  analyzer.ts     OWASP Agentic Top 10 checks (ASI01–ASI10)
  reporter.ts     Terminal output formatting
  export.ts       JSON, CSV, HTML, PDF export
  config.ts       Custom directory config (~/.solongate-audit/config.json)
  types.ts        TypeScript types
  spinner.ts      Loading spinner

How to contribute

  1. Fork the repo
  2. Create a branch (git checkout -b fix/something)
  3. Make your changes
  4. Build and test (npm run build && node dist/index.js)
  5. Commit and push
  6. Open a Pull Request

Issues and feature requests: github.com/solongate/solongate-audit/issues

Fix issues

Visit solongate.com for the full security platform.

License

MIT