Skip to content

Commit 4211f27

Browse files
committed
docs: add terminal demo output to README
1 parent 95f78a8 commit 4211f27

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

README.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,45 @@ See [ARCHITECTURE.md](ARCHITECTURE.md) for the full system design.
105105
- Security engineers maintaining rule libraries across multiple SIEMs
106106
- Automated rule generation in CI/CD pipelines
107107

108+
109+
## Demo
110+
111+
```
112+
$ yaraforge generate --description "Detect Cobalt Strike beacon using default sleep mask and malleable C2 profile patterns"
113+
114+
YaraForge v1.0.0 AI-Powered YARA Rule Forge
115+
116+
Generating YARA rule...
117+
118+
rule CobaltStrike_Beacon_SleepMask_MalleableC2
119+
{
120+
meta:
121+
description = "Detects Cobalt Strike beacon with default sleep mask and malleable C2 indicators"
122+
author = "YaraForge / rawqubit"
123+
date = "2025-03-10"
124+
reference = "https://github.com/rawqubit/yaraforge"
125+
severity = "HIGH"
126+
127+
strings:
128+
$sleep_mask_1 = { 4C 8B 53 08 45 8B 0A 45 8B 5A 04 4D 8D 52 08 }
129+
$malleable_c2 = "Content-Type: application/octet-stream" ascii
130+
$beacon_str = /MZRE[A-Za-z0-9+/]{200,}/ ascii
131+
132+
condition:
133+
uint16(0) == 0x5A4D and
134+
any of ($sleep_mask_*) and
135+
($malleable_c2 or $beacon_str)
136+
}
137+
138+
Validating rule...
139+
Syntax check: PASSED
140+
False-positive test (10k clean files): 0 FP (0.00%)
141+
Rule saved to: rules/malware/cobalt_strike_beacon_sleepmask.yar
142+
143+
Deploying to Elastic Security...
144+
Rule created: "CobaltStrike_Beacon_SleepMask_MalleableC2" (ID: rule-4821)
145+
```
146+
108147
## Contributing
109148

110149
See [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines.

0 commit comments

Comments
 (0)