PyPanther Detections Style Guide
Repository structure recommendations
# Recommended repository structure
.
├── README.md
├── content
│ ├── __init__.py
│ ├── helpers
│ │ ├── __init__.py
│ │ ├── cloud.py
│ │ └── custom_log_types.py
│ ├── overrides
│ │ ├── __init__.py
│ │ ├── aws_cloudtrail.py
│ │ └── aws_guardduty.py
│ └── rules
│ ├── __init__.py
│ ├── my_custom_rule.py
│ └── my_inherited_rule.py
└── main.pymain.py content recommendations
main.py content recommendationsCall apply_overrides()
apply_overrides()Best practices for PyPanther Detection writing
Use filters instead of overriding rule()
rule()Use upgrade() or downgrade() in severity()
upgrade() or downgrade() in severity()Using upgrade() instead of hard-coding a Severity
upgrade() instead of hard-coding a SeverityLast updated
Was this helpful?

