Overview#
An endpoint detection tool quarantines a suspicious attachment from a phishing email targeting a financial institution's treasury team. The file is a heavily obfuscated loader. Static analysis of the binary yields almost nothing useful: it is packed, the strings are encrypted, and there are no recognizable signatures. Submitting it to CAPE Sandbox tells the real story. During detonation, CAPE's process injection hooks intercept the unpacking routine, extract the second-stage payload from memory, and pull the decrypted C2 configuration, including three IP addresses, a custom User-Agent string, and a campaign identifier. Those indicators seed new Suricata blocking rules within the hour and go into MISP for sharing with the sector's threat intelligence community.
CAPE (Config And Payload Extraction) is an open-source malware analysis sandbox that extends Cuckoo with specialized capabilities for extracting malware configuration data and decrypted payloads from detonated samples. Unlike general-purpose sandboxes, CAPE focuses on defeating evasive malware through process injection hooks and signature-based unpacking, automatically extracting C2 addresses, encryption keys, mutex names, and injected shellcode from samples during dynamic analysis. Argus integrates CAPE to chain sandbox results into investigation, threat intelligence, and IOC enrichment workflows.
Open Standards#
- CAPE Sandbox REST API v2: Argus submits samples to and retrieves analysis results from CAPE instances over the versioned REST API, with task IDs, machine profiles, and signature lists exchanged as JSON.
- YARA: Extracted strings, shellcode, and unpacked payloads from CAPE detonation feed directly into the YARA Engine domain, where analysts develop and refine pattern-matching rules against the raw artefacts.
- MISP (Malware Information Sharing Platform): Extracted C2 addresses, file hashes, and campaign identifiers are published to connected MISP instances as attributes within MISP events, enabling sector-wide indicator sharing.
- OASIS STIX 2.1: Indicators and malware records derived from CAPE analyses are converted to STIX 2.1
indicatorandmalwareSDOs for export or federation, with TLP marking-definition objects applied for handling controls. - MITRE ATT&CK: CAPE signature names such as
injection_runpeandinfostealer_cookiesmap to ATT&CK technique identifiers (for exampleT1055), enabling tactic and technique tagging of analysis results and cross-referencing with Sigma rule ATT&CK tags. - Sigma: CAPE signature classifications are cross-referenced against Sigma rules; the Sigma adapter translates matching rules to Suricata, Splunk, and Elasticsearch query syntax for downstream SIEM deployment.
- GraphQL: All sample submission and query operations (
submitCapeSample,capeAnalyses,capeStats) are exposed through a strongly-typed GraphQL schema with per-field authentication enforcement. - FIPS 180-4 (SHA-256, SHA-512) and RFC 1321 (MD5): File hashes exchanged with CAPE and linked MWDB records use these digest standards as primary sample identifiers, enabling deduplication and cross-tool correlation.
Last Reviewed: 2026-03-18 Last Updated: 2026-04-14
Key Features#
Sample Submission and Analysis Tracking#
Submit malware to a CAPE instance via submitCapeSample, providing the task ID, target file hash, file name, analysis machine profile, detection score (0-10), and triggered signatures. Analysis records are persisted to PostgreSQL scoped to the organisation. The score and signatures fields capture CAPE's automated detection summary without requiring Argus to re-run the analysis.
Signature-Based Detection Inventory#
Each CAPE analysis records the list of signatures triggered during detonation, for example network_cnc_http, infostealer_cookies, ransomware_file_modifications, and injection_runpe. These signatures form a machine-readable classification that can be cross-referenced against MISP malware families, Sigma rules, and YARA patterns to chain detections together across investigations.
Clearance-Level Analysis Isolation#
Analysis records carry secrecy_level tags. Classified malware samples, such as nation-state implants analysed as part of a classified incident response, can be tagged accordingly, restricting their visibility to cleared personnel only.
Cross-Domain Intelligence Linking#
CAPE analysis results feed naturally into other Argus domains: extracted C2 IP addresses become MISP indicators, file hashes link to MWDB samples, and signature names can trigger YARA rule lookups or Sigma rule correlation queries. The result is a closed loop from detection through defense, without requiring manual handoffs between tools.
Statistics and Coverage View#
The capeStats query returns aggregate analysis counts together with completed-analysis totals and average score, useful for managing sandbox throughput and understanding the overall malware composition entering the analysis pipeline.
Use Cases#
- Automated Malware Triage: Queue all samples extracted from phishing attachments, endpoint EDR quarantine exports, or MWDB downloads through CAPE to produce a fast machine classification before analyst manual review.
- C2 Indicator Extraction: After CAPE extracts C2 addresses from a ransomware configuration, automatically feed them into MISP as new indicators and into Suricata as blocking rules, closing the loop between analysis and defence in a single workflow.
- Evasive Malware Unpacking: CAPE's process injection hooks defeat many common evasion techniques used by loaders (Emotet, Qakbot, IcedID) to extract the final payload, providing the actual malicious binary for YARA rule development.
- Classified Implant Analysis: In a sensitive compartmented environment, CAPE analysis of suspected nation-state implants is tagged at appropriate classification with results restricted to cleared analysts.
Integration#
Available via GraphQL: capeAnalyses, capeStats (queries); submitCapeSample (mutation). All operations require authentication and organisation scoping.
Compatible with CAPE Sandbox REST API v2+. Works alongside MWDB (sample metadata), YARA Engine (signature rule development from extracted strings), MISP and MISP Modules (C2 indicator publishing and enrichment), and the Investigation domain (attachment to active cases).