Skip to content

galyarderlabs/galyarder-framework / integrations/antigravity/generating-threat-intelligence-reports

generating-threat-intelligence-reports

Verified

Generates structured cyber threat intelligence reports at strategic, operational, and tactical levels tailored to specific audiences including executives, security operations teams, and technical analysts. Use when producing finished intelligence products from raw collection data, creating sector threat briefings, or delivering post-incident intelligence assessments. Activates for requests involving CTI report writing, threat briefings, intelligence products, finished intelligence, or executive security reporting.

FileKindSize
SKILL.mdskill md10.1 KB
references/api-reference.mdmarkdown2.8 KB
scripts/agent.pyscript8.7 KB

references/api-reference.md

View on GitHub
# API Reference: Threat Intelligence Report Generator Agent

## Dependencies

| Library | Version | Purpose |
|---------|---------|---------|
| jinja2 | >=3.1 | Template rendering for report generation |

## CLI Usage

```bash
python scripts/agent.py \
  --type operational \
  --data /cases/intel_data.json \
  --output-dir /cases/reports/ \
  --output report_meta.json
```

## Report Types

| Type | Audience | Length | Frequency |
|------|----------|--------|-----------|
| strategic | C-suite, board, risk committee | 1-3 pages | Monthly/Quarterly |
| operational | CISO, security directors, IR leads | 3-8 pages | Weekly |
| tactical | SOC analysts, threat hunters | 1-2 pages | Daily/as-needed |
| flash | All security staff | 1 page max | Urgent/as-needed |

## Functions

### `confidence_label(level) -> str`
Maps confidence levels to ICD 203 language: "high" -> "We assess with high confidence", "medium" -> "We assess", "low" -> "Evidence suggests".

### `render_report(report_type, data) -> str`
Renders a Jinja2 template with the provided data dict. Sets defaults for date, org, tlp.

### `validate_report_data(report_type, data) -> list`
Validates required fields per report type. Returns list of error strings.

### `quality_check(rendered) -> list`
Checks rendered report for: minimum length, TLP marker presence, unqualified confidence statements.

### `generate_report(report_type, data_path, output_dir) -> dict`
Full pipeline: load JSON data, validate, render template, run quality checks, save Markdown output.

## TLP Levels

| Level | Sharing Scope |
|-------|---------------|
| RED | Named recipients only |
| AMBER+STRICT | Organization only |
| AMBER | Organization and trusted partners |
| GREEN | Community-wide (ISAC, sector peers) |
| CLEAR | Public distribution |

## Input Data Schema (Operational Example)

```json
{
  "title": "APT29 Campaign Targeting Financial Sector",
  "tlp": "AMBER",
  "org": "Security Operations Center",
  "executive_summary": ["APT29 actively targeting financial institutions..."],
  "adversary": {
    "name": "APT29 / Cozy Bear",
    "motivation": "Espionage",
    "sophistication": "Advanced",
    "target_sectors": ["Financial", "Government"]
  },
  "ttps": [{"tactic": "Initial Access", "technique_id": "T1566.001", "name": "Spearphishing", "observed": "2025-03-01"}],
  "key_judgments": [{"confidence": "high", "statement": "APT29 will continue targeting...", "evidence": "..."}],
  "recommendations": [{"priority": "Critical", "description": "...", "owner": "SOC", "timeframe": "24h", "details": "..."}],
  "iocs": [{"type": "domain", "value": "evil[.]com", "context": "C2", "confidence": "high"}]
}
```

## Output

The agent produces two files:
1. `{type}_report_{date}.md` - Rendered Markdown report with TLP headers
2. `report_meta.json` - Metadata including validation errors and quality issues

---
 2026 Galyarder Labs. Galyarder Framework.
rea-analysis-optimizationmorluto/reaOptimize REA providers and shared analysis workflows for agent context, latency, CPU, and memory while preserving correctness and Evidence. Use for analysis bottlenecks and cache or query design; CI/test-suite optimization belongs to rea-ci-tests-audit.Stars: 471kUpdated Claude CodeCodexVerifiedInstall
rea-ci-tests-auditmorluto/reaAudit REA CI and test suites for correctness, fixture drift, false passes, and measured performance; use for suite or workflow investigations and efficiency changes, rather than ordinary feature testing or a single test failure.Stars: 471kUpdated Claude CodeCodexVerifiedInstall
rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics.Stars: 471kUpdated Claude CodeCodexVerifiedInstall
ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first.Stars: 194kUpdated Claude CodeCodexVerifiedInstall