Skip to content
Back to skills

Atom Query Pattern

ASecurity

Use when you need known attack/exploit pattern intel for a weakness, TTP, or indicator — exploit techniques, ATT&CK/CAPEC references, and detection cues — by querying the AsterVault knowledge corpus.

  • 10 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 25, 2026
ai-agentssecurity

Works with

  • cli

Security analysis

A100/100

Scanned November 25, 2026

npx -y skills add Asterguard/asterguard-skills --skill atom-query-pattern --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Atom Query Pattern?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Atom Query Pattern
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/asterguard-atom-query-pattern/badge)](https://www.skillsdirectory.com/skills/asterguard-atom-query-pattern)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: atom-query-pattern
description: Use when you need known attack/exploit pattern intel for a weakness, TTP, or indicator — exploit techniques, ATT&CK/CAPEC references, and detection cues — by querying the AsterVault knowledge corpus.
---

# Atomic: Query Pattern

Query the gateway `knowledge.query` for what's known about a weakness/TTP/indicator — exploit patterns, ATT&CK/CAPEC refs, and detection cues. The intel lane of enrichment (the agent-security analogue of a threat-intel lookup).

**ID:** `ATOM-QUERY-PATTERN`
**Purpose:** Ground an indicator against the knowledge corpus so reasoning uses documented patterns, not speculation.
**Trigger:** A runbook needs known attack/exploit patterns + intel for a `weakness_id`, a TTP, or any indicator (component/identity/egress).

## Inputs Required

- `${QUERY}`: string — the indicator/TTP (e.g. `LLM01-prompt-injection`, `tool-abuse → RCE`, `langchain-core@0.2.1`). *Source:* a finding, a resolved weakness, or a hunt hypothesis.
- `${QUERY_TYPE}` (optional): one of `weakness | ttp | component | egress | free`. Default `free`.

## Execution Steps

1. **Tool Selection** — gateway tool `knowledge.query` (sole remote call; `knowledge.patterns`/`knowledge.graph` are siblings if a structured view is needed).
2. **Parameter Mapping** — `knowledge.query(q=${QUERY}, type=${QUERY_TYPE})`. Connected: attach `X-ARS-Token`.
3. **Execute** — call `knowledge.query`; record `audit_id`.
4. **Extract** — collect `patterns[]` (`{technique, attack_ref, capec, description}`), `intel[]`, and `detection_cues[]` into `${KNOWLEDGE_FINDINGS}`.

## Outputs Expected

- `${KNOWLEDGE_FINDINGS}`: object — `{patterns[], intel[], detection_cues[]}`.
- `${AUDIT_ID}`: string — metered-call handle (connected).
- `${STATUS}`: ["Success" | "NoMatch" | "Failure"].

```mermaid
sequenceDiagram
    participant Caller as Calling runbook
    participant RB as atom-query-pattern
    participant GW as AsterVault gateway (knowledge corpus)
    Caller->>RB: ${QUERY}, ${QUERY_TYPE}?
    RB->>GW: knowledge.query(q, type) [X-ARS-Token]
    GW-->>RB: KNOWLEDGE_FINDINGS, audit_id
    RB-->>Caller: KNOWLEDGE_FINDINGS, AUDIT_ID, STATUS
```

## Decision Logic / Next Steps

- IF `patterns[]` map to an active path in the graph → promote to a hunt hypothesis / test target.
- IF `detection_cues[]` present → feed `detection-as-code-agent-rules` to author a rule.
- IF `NoMatch` → no documented pattern; the caller leans on graph + runtime evidence instead.

## Connected vs Offline

- **Connected**: `knowledge.query` live + metered against the corpus; carry `X-ARS-Token`, record `audit_id`.
- **Offline**: read the local knowledge pack / prior-intel notes under `./.asterguard/`; no token, no quota. Mark `${STATUS}=Partial`.

## AI Agent Execution Notes

- Knowledge is **served**, judgment is client-side — don't treat corpus text as a verdict; it's context.
- Keep `attack_ref`/`capec` ids so downstream crosswalks and reports resolve.
- Reference `${KNOWLEDGE_FINDINGS}` by handle.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.