Skip to content

SSZcreate/Pentab_server / .agents/skills/cybersecurity/skills/implementing-continuous-security-validation-with-bas

implementing-continuous-security-validation-with-bas

Verified

Deploys Breach and Attack Simulation (BAS) platforms such as SafeBreach, AttackIQ, Picus, Cymulate, Pentera, or SCYTHE to continuously validate endpoint, network, email-gateway, SIEM, and incident-response effectiveness by safely emulating MITRE ATT&CK techniques. Use when moving beyond point-in-time pentesting to continuous control validation, or standing up automated adversary emulation.

FileKindSize
LICENSEother11.0 KB
SKILL.mdskill md9.7 KB
assets/template.mdmarkdown864 B
references/api-reference.mdmarkdown1.6 KB
references/standards.mdmarkdown1.0 KB
references/workflows.mdmarkdown1.7 KB
scripts/agent.pyscript5.8 KB
scripts/process.pyscript4.6 KB

references/api-reference.md

View on GitHub
# API Reference: Breach and Attack Simulation Agent

## Dependencies

| Library | Version | Purpose |
|---------|---------|---------|
| requests | >=2.28 | HTTP client for SIEM detection validation |

## CLI Usage

```bash
python scripts/agent.py \
  --target 10.0.1.50 \
  --siem-url https://siem.example.com \
  --siem-key YOUR_KEY \
  --output-dir /reports/
```

## Functions

### `simulate_technique(technique, target) -> dict`
Simulates a MITRE ATT&CK technique and records detection/blocked status.

### `check_siem_detection(siem_url, api_key, technique_id, time_window) -> dict`
Queries SIEM API for alerts matching the simulated technique within time window.

### `compute_detection_coverage(results) -> dict`
Calculates overall detection rate and per-tactic coverage breakdown.

### `generate_report(target, siem_url, siem_key) -> dict`
Runs 7 ATT&CK technique simulations and generates detection gap report.

## ATT&CK Techniques Tested

| ID | Name | Tactic |
|----|------|--------|
| T1566.001 | Spearphishing Attachment | Initial Access |
| T1059.001 | PowerShell | Execution |
| T1003.001 | LSASS Memory | Credential Access |
| T1021.002 | SMB Admin Shares | Lateral Movement |
| T1486 | Data Encrypted for Impact | Impact |
| T1071.001 | Web Protocols | C2 |
| T1048.003 | Exfiltration Over Unencrypted | Exfiltration |

## Output Schema

```json
{
  "coverage": {"total_tests": 7, "detected": 5, "missed": 2, "detection_rate_pct": 71.4},
  "gaps": [{"technique_id": "T1003.001", "technique_name": "LSASS Memory"}],
  "recommendations": ["Create detection rule for T1003.001"]
}
```
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: 465kUpdated 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: 465kUpdated Claude CodeCodexVerifiedInstall
rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics.Stars: 465kUpdated 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: 192kUpdated Claude CodeCodexVerifiedInstall