version: "1.0.1" name: yara description: Create YARA rules for file/memory pattern matching
YARA Rule Creation
Create file-based detection signatures:
- String patterns
- Hex byte patterns
- PE characteristics
- Import analysis
- Entropy checks
Required Context
- Sample: Malware sample or pattern description
- Strings: Key strings to match
- Context: Malware family, false positive considerations
Output
- YARA rule with metadata
- Test commands
Testing
bash
yara -s rule.yar sample.exe
yara -r rule.yar /samples/
Example
/yara
Sample: /samples/cobalt_beacon.exe
Focus: Unique strings, API imports