Skip to content
Mikoshi

Docs

Agents and integrations

Mikoshi is built to be driven by other tools: your coding agent, your own MCP servers, and anything that reads JSON or SARIF.

Coding agents

Install the Mikoshi skills and agents such as Claude Code, Cursor, Codex, Gemini CLI or OpenCode learn how to run scans, read results, fix findings and set up CI. They follow the open SKILL.md standard.

shell
npx skills add usemikoshi/mikoshi                                      # all skills
npx skills add usemikoshi/mikoshi --skill penetration-testing-with-mikoshi   # just one
SkillTeaches your agent to
penetration-testing-with-mikoshiRun headless scans with budget caps and read the results.
fix-security-vulnerabilities-with-mikoshiFix findings at the root cause, then re-scan to verify.
ci-security-scanning-with-mikoshiAdd pull-request scanning to your CI.
find-security-vulnerabilities-in-codeReview a repository or working tree, white-box.
web-app-penetration-testingTest a live web app or staging site.
api-security-testingTest REST and GraphQL APIs against the OWASP API Top 10.
owasp-top-10-testingRun an OWASP Top 10 assessment with honest coverage.
application-security-testingPick the right test per asset and rank the results.

Then ask in plain language:

prompt
Pentest this repo with Mikoshi in quick mode with a $10 budget and summarise the findings.
Fix the critical and high findings from the last Mikoshi run, then re-scan to verify.
Add Mikoshi scanning to our GitHub Actions so every PR is tested.

The interfaces agents rely on are stable: headless mode (-n), exit codes 0/1/2, --max-budget and --max-turns as hard limits, and the files described below.

Give Mikoshi your MCP servers

Mikoshi can connect to MCP servers you list and give their tools to its agents. Let them read how your system is really built instead of guessing from outside: a database server shows schemas and access policies, a hosting server shows what’s deployed, an issue tracker shows risks you have already accepted, and a logging server confirms whether an exploit landed.

~/.mikoshi/mcp-servers.json
[
  {
    "name": "staging_db",
    "transport": "stdio",
    "command": "npx",
    "args": ["-y", "@your-org/postgres-mcp", "--read-only"],
    "notes": "Staging database, read-only. Prefer aggregate queries."
  },
  {
    "name": "github",
    "transport": "http",
    "url": "https://api.githubcopilot.com/mcp/",
    "auth": { "kind": "bearer", "token": "your-token" },
    "allowed_tools": ["list_issues"]
  }
]
  • allowed_tools limits which tools agents may call. Mikoshi can’t tell which tools only read, so use each server’s read-only mode where it has one.
  • Choose per run with --mcp-server NAME or --mcp-exclude NAME, and use another file with --mcp-config PATH or MIKOSHI_MCP_CONFIG.
  • A server that fails to connect is skipped; the run continues without it.

Skills for your stack

Skills are Markdown knowledge packs agents load for specialised tasks. Mikoshi ships skills for vulnerability classes (idor, sql_injection, ssrf, business_logic and more), frameworks (nextjs, fastapi), platforms (supabase, firebase), protocols (graphql) and tools. Load some at the start of a run:

shell
mikoshi -t https://api.example.com --skills idor,broken_function_level_authorization,graphql

Add your own: internal frameworks, house auth patterns, known-sensitive endpoints. Use the built-in layout, <category>/<name>.md, and keep the directory in your repository:

security/skills/custom/acme_auth.md
---
name: acme_auth
description: How Acme's session tokens and tenant isolation work, and where they break
---

# Acme auth

Sessions are signed JWTs issued by /auth/token; the tenant id is in the "tid" claim.

## Where to look
- Endpoints that read tenant id from the request body instead of the token
- ...
shell
mikoshi -t ./ --skills-dir ./security/skills --skills custom/acme_auth

A skill at the same path as a built-in one replaces it. For a methodology every agent should follow, use an instruction file instead: agents only see a skill when it matches their task.

Use the output

Everything a run produces is a plain file in mikoshi_runs/<run-name>/, so it fits into dashboards, ticketing and reporting without an API.

vulnerabilities.json

A list of findings. Fields include id, title, severity (critical, high, medium, low, info), cvss, cwe, cve, target, endpoint, method, impact, technical_analysis, poc_description, poc_script_code, remediation_steps and confidence. Treat fields as optional: not every finding has every one.

shell
RUN=mikoshi_runs/<run-name>

# Count findings by severity
jq -r 'group_by(.severity) | map("\(.[0].severity): \(length)") | .[]' $RUN/vulnerabilities.json

# One line per high or critical finding
jq -r '.[] | select(.severity == "critical" or .severity == "high") | "\(.severity)\t\(.title)\t\(.endpoint // "")"' $RUN/vulnerabilities.json

findings.sarif

SARIF 2.1.0, readable by GitHub code scanning, DefectDojo and most IDE SARIF viewers. Each result keeps Mikoshi’s full finding (proof of concept, CVSS, remediation) under properties.mikoshi. See uploading to code scanning.

run.json

The run’s status (check for stopped before trusting a clean result), targets, model cost under llm_usage, and the outcome of PR comments and the blue-team report.

detections/

Sigma and YARA rules plus Splunk, Elastic and Microsoft Sentinel queries for the techniques Mikoshi used, with a summary in blue_team.json. Review and tune them before loading them into your SIEM.