Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Splunk SPL Detection Library

Splunk Enterprise Security MITRE ATT&CK Detections

Production-Ready Detection Logic & Engineering Toolkit

Curated by Mathan | Senior Security Engineer

πŸš€ Quick Start β€’ πŸ“ Categories β€’ πŸ“– Documentation β€’ 🀝 Contributing


πŸ“‹ Overview

This repository provides production-ready detection rules and detection engineering methodology:

  1. πŸ“š Production Detection Library: 50+ battle-tested SPL correlation searches ready for immediate deployment in your Splunk environment.
  2. πŸ› οΈ Detection Engineering Reference:

Repository Value: Deploy our detection logic as-is, adapt it to your environment, or use our proven patterns as references when building your own custom detections.

Key Features

βœ… Battle-tested - Validated across enterprise environments
βœ… Low noise - Tuned for <5% false positive rate
βœ… MITRE-mapped - Aligned to ATT&CK framework
βœ… Response-ready - Includes investigation playbooks
βœ… CIM-Compatible - Aligned with Common Information Model (Best Practice)


πŸ“ Detection Categories

Organized into 8 practical categories covering the full attack lifecycle:

πŸ” Authentication

Login Attacks & Access Abuse
Brute Force β€’ Password Spray β€’ MFA Bypass

πŸ’» Endpoint

Host-Based Threats
Malware β€’ Persistence β€’ Process Injection

🌐 Network

Network-Based Threats
C2 β€’ Lateral Movement β€’ Port Scanning

☁️ Cloud

Cloud Platform Security
AWS β€’ Azure β€’ GCP Misconfigs

πŸ“§ Mail

Email-Based Threats
Phishing β€’ BEC β€’ Malicious Attachments

🌍 Web

Web Application Attacks
SQLi β€’ Web Shells β€’ XSS

πŸ“Š Data

Data Loss & Exfiltration
DLP β€’ Insider Threats β€’ Mass Downloads

πŸ‘€ Identity

IAM & Privilege Abuse
Privilege Escalation β€’ Role Changes

πŸš€ Quick Start

Prerequisites

  • Splunk Enterprise Security 7.0+
  • Required Technical Add-ons (TAs) for your data sources
  • Accelerated CIM data models (Authentication, Endpoint, Network Traffic) (Optional)

How to Use This Library

Option A: Deploy Production Rules (Recommended) ⚑

  1. Browse the detection categories above (e.g., Authentication/T1110_Brute_Force.spl).
  2. Copy the production-ready SPL query.
  3. Test in your Splunk environment to validate data visibility.
  4. Deploy as a Correlation Search in Enterprise Security.

Option B: Adapt for Your Environment (Flexible) πŸ› οΈ

  1. Start with a production rule from the library.
  2. Customize for your environment:
    • Adjust thresholds based on your baseline
    • Add environment-specific exclusions
    • Modify field names to match your data model
  3. Reference the templates/ directory for detection pattern examples.

Option C: Contribute Back (Community) 🀝

  1. Fork this repository.
  2. Improve existing rules or add new detection logic.
  3. Submit a Pull Request to share your work with the community.

πŸ“– Detection Engineering Workflow

Whether you are using our rules or building your own, we recommend this standard workflow:

graph TD
    A[1. Select Logic] --> B{Source?}
    B -->|Our Library| C[3. Test with Data]
    B -->|Custom Template| D[2. Write SPL Query]
    D --> C
    C --> E{FP Rate?}
    E -->|>5%| F[4. Tune Filters]
    F --> C
    E -->|<5%| G[5. Document FPs]
    G --> H[6. Peer Review]
    H --> I[7. Deploy to Production]
    I --> J[8. Monitor 48hrs]
    
    style A fill:#2563eb,color:#fff,stroke:#1e40af,stroke-width:3px
    style I fill:#16a34a,color:#fff,stroke:#15803d,stroke-width:3px
    style E fill:#ea580c,color:#fff,stroke:#c2410c,stroke-width:3px
Loading

1. The Logic Core (SPL)

Our rules are built for Search Efficiency. We prioritize filtering by index and sourcetype early in the pipeline to ensure speed without relying on accelerated data models.

Example Logic:

index=security sourcetype=WinEventLog:Security EventCode IN (4625, 4624)
| eval action=case(
    EventCode=4625, "failure",
    EventCode=4624, "success",
    1=1, "unknown"
)
| stats 
    count(eval(action="failure")) as failed_attempts,
    count(eval(action="success")) as successful_attempts
    by user, dest
| where failed_attempts >= 5 AND successful_attempts >= 1

2. Testing & Validation

Before deploying, validate the logic using Event-Horizon.

Recommended Tool: Event-Horizon

Use Event-Horizon to generate production-quality security logs for validation:

  • Realistic Data: Generate logs for 80+ technologies (Palo Alto, Windows, AWS, etc.).
  • Golden Master Templates: Ensure 100% format accuracy for testing field extractions.
  • AI Attack Simulation: Orchestrate coordinated kill chains to validate correlation rules.


🀝 Contributing

We welcome contributions! If you've created a rule using our templates or optimized one of ours:

  1. Fork this repository.
  2. Create a feature branch.
  3. Submit a Pull Request with your detection logic and testing results.

πŸ‘€ About

Implementation & Maintenance

PrototypePrime (Mathan Subbiah)
Senior Security Engineer | Detection Engineering Specialist

Focused on building scalable detection systems and security tooling that accelerate threat detection, validation, and training workflows.

GitHub LinkedIn Email

Related Projects


πŸ“„ License

MIT License - see LICENSE file for details.

⭐ Star This Repository!

If these detections help your SOC, please star this repo and share with the community.

Visitors

About

In this Repo I will be sharing all the rules/reports/Dashboard/APP created

Resources

Contributing

Stars

Watchers

Forks

Releases

Packages

Contributors