Agent skill

Forensics Osquery

by AgentSecOps in AgentSecOps/SecOpsAgentKit

SQL-powered forensic investigation and system interrogation using osquery to query operating systems as relational databases.

Custom licenceAuto-check: notesSecurity

Install Forensics Osquery

skills CLI
$ npx skills add AgentSecOps/SecOpsAgentKit --skill forensics-osquery -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install AgentSecOps/SecOpsAgentKit forensics-osquery --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/AgentSecOps/SecOpsAgentKit.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/incident-response/forensics-osquery .claude/skills/forensics-osquery && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
forensics-osquery
GitHub stars
219
Used in
1 other repo
Token cost
~4.9k tokens
SKILL.md length
1,232 words
Files
11 (incl. references, assets)
Skills in repo
24
Repo updated
First seen
Licence
Custom licence

At a glance

SQL-powered forensic investigation and system interrogation using osquery to query operating systems as relational databases.

  • Works in 5 steps: Select Target Technique → Build Detection Query → Execute Hunt → …
  • Investigating security incidents and collecting forensic artifacts
  • SKILL.md covers Overview, Quick Start, Core Workflows and Forensic Query Patterns, plus 5 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Forensics Osquery is an agent skill from AgentSecOps/SecOpsAgentKit. SQL-powered forensic investigation and system interrogation using osquery to query operating systems as relational databases. Enables rapid evidence collection, threat hunting, and incident response across Linux, macOS, and Windows endpoints. Use when: (1) Investigating security incidents and collecting forensic artifacts, (2) Threat hunting across endpoints for suspicious activity, (3) Analyzing running processes, network connections, and persistence mechanisms, (4) Collecting system state during incident…

Its SKILL.md is about 4.9k tokens, which your agent loads only when the skill is triggered. The skill folder holds 13 other files, including reference files and assets (for example `references/mitre-attack-queries.md`, `references/osqueryd-deployment.md` and `references/platform-differences.md`).

It sits in Security, covering Security operations, Incident response and Digital forensics. It works with SQL, Linux and macOS. The repository describes itself as: Security operations toolkit for AI coding agents. Give Claude Code 25+ skills to catch vulnerabilities, scan containers, detect secrets, and enforce policies automatically.

When your agent uses it

  • Investigating security incidents and collecting forensic artifacts
  • Threat hunting across endpoints for suspicious activity
  • Analyzing running processes
  • Network connections

Example prompts

  • “/forensics-osquery”

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. Select Target Technique
  2. Build Detection Query
  3. Execute Hunt
  4. Analyze Results
  5. Pivot Investigation

What it can do on your machine

Read from SKILL.md and the folder at commit 6e25a4b. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are sql, bash and json).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • osquery.readthedocs.io
    • github.com
    • osquery.io
    • attack.mitre.org

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Forensics Osquery loads about 4.9k tokens when it runs, and up to ~16k if it reads all its reference files. Until then it costs about 176 tokens; SKILL.md has 1,232 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~176
When it runs · the whole SKILL.md, loaded when a task matches
~4.9k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~16k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NoteRuns commands with sudoSKILL.md:453
    un osqueryi with sudo/admin privileges: `sudo osqueryi`
  • NoteRuns commands with sudoSKILL.md:476
    vilege Escalation**: Find SUID binaries, sudo abuse, service creation (T1548, T1543)

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 1,232 words (~4,891 tokens).

“osquery transforms operating systems into queryable relational databases, enabling security analysts to investigate compromises using SQL rather than traditional CLI tools. This skill provides forensic investigation workflows, common detection queries, and incident response patterns for rapid evidence collection across Linux…”

— opening of SKILL.md by AgentSecOps, Custom licence
name
forensics-osquery
version
0.1.0
maintainer
SirAppSec
category
incident-response
tags
forensics, osquery, incident-response, threat-hunting, endpoint-detection, dfir, live-forensics, sql
frameworks
MITRE-ATT&CK, NIST
dependencies.tools
osquery
dependencies.platforms
linux, macos, windows
references
https://github.com/osquery/osquery, https://osquery.io/, https://osquery.readthedocs.io/

Read the full SKILL.md on GitHub

Files

SKILL.md and 10 other files (references, assets) in skills/incident-response/forensics-osquery of AgentSecOps/SecOpsAgentKit.

  • SKILL.md
  • assets/.gitkeep
  • assets/forensic-packs/credential-access.conf
  • assets/forensic-packs/ir-triage.conf
  • assets/forensic-packs/lateral-movement.conf
  • assets/forensic-packs/persistence-hunt.conf
  • assets/osquery.conf
  • references/mitre-attack-queries.md
  • references/osqueryd-deployment.md
  • references/platform-differences.md
  • references/table-guide.md

Open the folder on GitHubat commit 6e25a4b

Used in 1 other repository

We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in AgentSecOps/SecOpsAgentKit, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Forensics Osquery next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Forensics Osquery compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Forensics Osquery this skillAgentSecOps/SecOpsAgentKit2191 repos~4.9kAutomated safety check: NotesCustom licence
Analyzing Memory Forensics With Lime And Volatilitymukul975/Anthropic-Cybersecurity-Skills34k—~631Automated safety check: PassApache-2.0
Incident Response NetworkLeoYeAI/openclaw-master-skills2.2k—~5kAutomated safety check: PassApache-2.0
Sentinelvinayaklatthe/microsoft-security-skills175—~2.2kAutomated safety check: PassMIT
Dfirtransilienceai/communitytools559—~1.5kAutomated safety check: PassMIT
Detecting Privilege Escalation Attemptsmukul975/Anthropic-Cybersecurity-Skills34k—~922Automated safety check: PassApache-2.0

Similar skills

  • Analyzing Memory Forensics With Lime And Volatility

    mukul975/Anthropic-Cybersecurity-Skills

    Performs Linux memory acquisition using LiME (Linux Memory Extractor) kernel module and analysis with Volatility 3 framework.

    34k GitHub stars~631 tokensUpdated 1 mo ago
    SecurityAuto-check passed
  • Incident Response Network

    LeoYeAI/openclaw-master-skills

    Network forensics evidence collection and analysis during security incidents.

    2.2k GitHub stars~5k tokensUpdated 2 mo ago
    SecurityAuto-check passed
  • Sentinel

    vinayaklatthe/microsoft-security-skills

    Guidance for designing and operating Microsoft Sentinel, the cloud-native SIEM and SOAR delivered through the Defender portal.

    175 GitHub stars~2.2k tokensUpdated 3 mo ago
    SecurityAuto-check passed
  • Dfir

    transilienceai/communitytools

    Digital forensics and incident response - Windows event log analysis, PCAP forensics, filesystem artifact analysis, AD attack detection, and timeline correlation.

    559 GitHub stars~1.5k tokensUpdated 2 mo ago
    SecurityAuto-check passed
  • Detecting Privilege Escalation Attempts

    mukul975/Anthropic-Cybersecurity-Skills

    Detect privilege escalation attempts across Windows and Linux, including access token manipulation, UAC bypass, unquoted service path abuse, kernel exploits, and sudo/doas abuse.

    34k GitHub stars~922 tokensUpdated 1 mo ago
    SecurityAuto-check passed
  • Implementing Velociraptor For Ir Collection

    mukul975/Anthropic-Cybersecurity-Skills

    Deploy and configure Velociraptor for scalable endpoint forensic artifact collection during incident response using VQL queries, hunts, and pre-built artifact packs across Windows, Linux, and macOS…

    34k GitHub stars~2.3k tokensUpdated 1 mo ago
    DevOps & CloudAuto-check: notes

More from AgentSecOps/SecOpsAgentKit

All 24 skills in this repo
  • Sast Semgrep

    AgentSecOps/SecOpsAgentKit

    Static application security testing (SAST) using Semgrep for vulnerability detection, security code review, and secure coding guidance with OWASP and CWE framework mapping.

    219 GitHub starsUsed in 2 repos~2.4k tokens
    Auto-check passed
  • Secrets Gitleaks

    AgentSecOps/SecOpsAgentKit

    Hardcoded secret detection and prevention in git repositories and codebases using Gitleaks.

    219 GitHub starsUsed in 2 repos~4.1k tokens
    Auto-check passed
  • DefectDojo Vulnerability Management

    AgentSecOps/SecOpsAgentKit

    Aggregates scanner results into DefectDojo, deduplicates findings, tracks remediation SLAs and prepares compliance reports across products and pipelines.

    219 GitHub stars~2.3k tokensUpdated 5 mo ago
    Auto-check passed
  • TShark Traffic Analysis

    AgentSecOps/SecOpsAgentKit

    Guides authorized packet capture and analysis with TShark, Wireshark's command-line tool, for security investigations, malware detection and forensic examination of network traffic.

    219 GitHub starsUsed in 1 repo~4.8k tokens
    Auto-check: notes
  • Container Scanning with Grype

    AgentSecOps/SecOpsAgentKit

    Scans container images, filesystems and SBOMs with Grype for known vulnerabilities, ranks them by CVSS, EPSS and CISA KEV, and wires scans into CI/CD thresholds.

    219 GitHub starsUsed in 1 repo~2.5k tokens
    Auto-check passed
  • Hadolint Dockerfile Security Linting

    AgentSecOps/SecOpsAgentKit

    Lints Dockerfiles with Hadolint for security misconfigurations and best-practice violations, locally and in CI, with strict, balanced and permissive rule templates.

    219 GitHub starsUsed in 1 repo~4.4k tokens
    Auto-check passed

Works with

Questions about Forensics Osquery

What does Forensics Osquery do?

SQL-powered forensic investigation and system interrogation using osquery to query operating systems as relational databases. Forensics Osquery is an agent skill from AgentSecOps/SecOpsAgentKit. SQL-powered forensic investigation and system interrogation using osquery to query operating systems as relational databases.

When should I use Forensics Osquery?

Forensics Osquery fits situations like: investigating security incidents and collecting forensic artifacts; threat hunting across endpoints for suspicious activity; analyzing running processes; network connections.

How do I install Forensics Osquery in Claude Code?

Run `npx skills add AgentSecOps/SecOpsAgentKit --skill forensics-osquery -a claude-code`. Or copy the skill folder (skills/incident-response/forensics-osquery in AgentSecOps/SecOpsAgentKit) into .claude/skills/forensics-osquery in your project. Claude Code loads it when a task matches its description.

How do I install Forensics Osquery in Codex?

Run `npx skills add AgentSecOps/SecOpsAgentKit --skill forensics-osquery -a codex`. Or copy the skill folder (skills/incident-response/forensics-osquery in AgentSecOps/SecOpsAgentKit) into .agents/skills/forensics-osquery in your project. Codex loads it when a task matches its description.

Can I use Forensics Osquery in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add AgentSecOps/SecOpsAgentKit --skill forensics-osquery -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/forensics-osquery, .gemini/skills/forensics-osquery, .github/skills/forensics-osquery and .opencode/skills/forensics-osquery in your project.

What does Forensics Osquery need to run?

SKILL.md names no scripts, command-line tools or credentials: Forensics Osquery is instructions for the agent only.

Does Forensics Osquery access the network?

SKILL.md names 4 domains. As links in the text: osquery.readthedocs.io, github.com, osquery.io and attack.mitre.org. This is read from the text; nothing was executed.

Is Forensics Osquery safe to install?

Our automated static check of SKILL.md found notes only (runs commands with sudo), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Forensics Osquery use?

Forensics Osquery has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does Forensics Osquery use?

About 4.9k tokens (SKILL.md is roughly 20k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 11k tokens, read only when the agent opens those files.

What are the alternatives to Forensics Osquery?

Skills that share tags, products or a category with Forensics Osquery: Analyzing Memory Forensics With Lime And Volatility (mukul975/Anthropic-Cybersecurity-Skills, 34k stars), Incident Response Network (LeoYeAI/openclaw-master-skills, 2.2k stars), Sentinel (vinayaklatthe/microsoft-security-skills, 175 stars) and Dfir (transilienceai/communitytools, 559 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Forensics Osquery?

AgentSecOps (a GitHub organization) maintains it in AgentSecOps/SecOpsAgentKit, which has 219 GitHub stars. The repository holds 24 skills in this directory. The repository was last updated on April 15, 2026.

Source: AgentSecOps/SecOpsAgentKit on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.