Skip to content
Mikoshi

Docs

Skills

Specialized knowledge packages that enhance agent capabilities

Skills are structured knowledge packages that give Mikoshi agents deep expertise in specific vulnerability types, technologies, and testing methodologies.

The Idea

LLMs have broad but shallow security knowledge. They know about SQL injection, but lack the nuanced techniques that experienced pentesters use—parser quirks, bypass methods, validation tricks, and chain attacks.

Skills inject this deep, specialized knowledge directly into the agent's context, transforming it from a generalist into a specialist for the task at hand.

How They Work

When Mikoshi spawns an agent for a specific task, it selects up to 5 relevant skills based on the context:

python
# Agent created for JWT testing automatically loads relevant skills
create_agent(
    task="Test authentication mechanisms",
    skills=["authentication_jwt", "business_logic"]
)

The skills are injected into the agent's system prompt, giving it access to:

  • Advanced techniques — Non-obvious methods beyond standard testing
  • Working payloads — Practical examples with variations
  • Validation methods — How to confirm findings and avoid false positives

Skill Categories

Vulnerabilities

Core vulnerability classes with deep exploitation techniques.

SkillCoverage
authentication_jwtJWT attacks, algorithm confusion, claim tampering
idorObject reference attacks, horizontal/vertical access
sql_injectionSQL injection variants, WAF bypasses, blind techniques
xssXSS types, filter bypasses, DOM exploitation
ssrfServer-side request forgery, protocol handlers
csrfCross-site request forgery, token bypasses
xxeXML external entities, OOB exfiltration
rceRemote code execution vectors
business_logicLogic flaws, state manipulation, race conditions
race_conditionsTOCTOU, parallel request attacks
path_traversal_lfi_rfiFile inclusion, path traversal
open_redirectRedirect bypasses, URL parsing tricks
mass_assignmentAttribute injection, hidden parameter pollution
insecure_file_uploadsUpload bypasses, extension tricks
information_disclosureData leakage, error-based enumeration
subdomain_takeoverDangling DNS, cloud resource claims
broken_function_level_authorizationPrivilege escalation, role bypasses

Frameworks

Framework-specific testing patterns.

SkillCoverage
fastapiFastAPI security patterns, Pydantic bypasses
nextjsNext.js SSR/SSG issues, API route security

Technologies

Third-party service and platform security.

SkillCoverage
supabaseSupabase RLS bypasses, auth issues
firebaseFirebase Firestore, Storage rules, Auth, and Functions

Protocols

Protocol-specific testing techniques.

SkillCoverage
graphqlGraphQL introspection, batching, resolver issues

Reconnaissance

Asset discovery and network assessment workflows.

SkillCoverage
asset_discoveryCT, TLS SAN pivoting, passive DNS, and ASN/IP asset enumeration
internal_networkCorporate network discovery, AD infrastructure, file shares, management interfaces, lateral trust paths, and segmentation

Tooling

Sandbox CLI playbooks for core recon and scanning tools.

SkillCoverage
nmapPort/service scan syntax and high-signal scan patterns
nucleiTemplate selection, severity filtering, and rate tuning
httpxHTTP probing and fingerprint output patterns
ffufWordlist fuzzing, matcher/filter strategy, recursion
subfinderPassive subdomain enumeration and source control
naabuFast port scanning with explicit rate/verify controls
katanaCrawl depth/JS/known-files behavior and pitfalls
sqlmapSQLi workflow for enumeration and controlled extraction

Skill Structure

Each skill is a Markdown file with YAML frontmatter for metadata:

markdown
---
name: skill_name
description: Brief description of the skill's coverage
---

# Skill Title

Key insight about this vulnerability or technique.

## Attack Surface
What this skill covers and where to look.

## Methodology
Step-by-step testing approach.

## Techniques
How to discover and exploit the vulnerability.

## Bypass Methods
How to bypass common protections.

## Validation
How to confirm findings and avoid false positives.

Load skills yourself

Agents pick skills from a catalog of names and one-line descriptions. The pick depends on the subtask the agent was given. To make sure the root agent starts with a skill, name it on the command line:

bash
mikoshi --target https://api.example.com --skills idor,mass_assignment
mikoshi --target https://api.example.com --skills vulnerabilities/idor,custom/my_method

Mikoshi loads the named skills into the root agent's system prompt before the scan starts. The root agent can still pass them to child agents with create_agent(skills=[...]). An unknown name stops the run and prints the available skills. A resumed scan keeps the skills of the original run.

Add your own skills

Point Mikoshi at a directory that uses the same <category>/<name>.md layout as the built-in skills:

bash
mikoshi --target https://app.com --skills-dir ./my-skills --skills custom/my_method
text
my-skills/
├── custom/
│   └── my_method.md
└── vulnerabilities/
    └── idor.md        # replaces the built-in idor skill

Repeat --skills-dir for more directories, or set MIKOSHI_SKILLS_DIR to a list of directories separated by the OS path separator. Mikoshi searches these directories before the packaged skills. A file with the same path as a built-in skill replaces it. This works for installed builds too, so you do not have to rebuild the package to add a skill.

Mikoshi lists your skills first in the catalog, before the built-in skills, and marks them as operator skills. When one of your skills fits a task, agents load it or assign it before a built-in skill. Mikoshi does not load your skills into an agent automatically. To do that for the root agent, use --skills.

Each file needs the frontmatter description field. Agents only see the name and this description in the catalog, so write the description for the subtask that should trigger the skill.

Skills or instructions?

A cross-cutting methodology that spans the whole engagement belongs in an instruction file. If the methodology also needs knowledge that the built-in skills do not have, put that part in a custom skill and name it from the instruction file.

Writing Good Skills

Built-in skills are maintained by the Mikoshi team; to suggest one, contact us. For your own skills, create a .md file with YAML frontmatter (name and description fields) and load it with --skills-dir. Good skills include:

  1. Real-world techniques — Methods that work in practice
  2. Practical payloads — Working examples with variations
  3. Validation steps — How to confirm without false positives
  4. Context awareness — Version/environment-specific behavior