Open source security data lake for threat hunting, detection & response, and cybersecurity analytics at petabyte scale on AWS
Open source security data lake for threat hunting, detection & response, and cybersecurity analytics at petabyte scale on AWS
<a href="https://discord.gg/YSYfHMbfZQ" target="_blank"></a>
<a href="#"></a>
Matano Open Source Security data lake is an open source cloud-native security data lake, built for security teams on AWS.
[!NOTE] Matano offers a commercial managed Cloud SIEM for a complete enterprise Security Operations platform. Learn more.
View the complete installation instructions
Install the matano CLI to deploy Matano into your AWS account, and manage your deployment.
Linux
curl -OL https://github.com/matanolabs/matano/releases/download/nightly/matano-linux-x64.sh
chmod +x matano-linux-x64.sh
sudo ./matano-linux-x64.shmacOS
curl -OL https://github.com/matanolabs/matano/releases/download/nightly/matano-macos-x64.sh
chmod +x matano-macos-x64.sh
sudo ./matano-macos-x64.shRead the complete docs on getting started
To get started, run the matano init command.
Once initialized, your Matano directory is used to control & manage all resources in your project e.g. log sources, detections, and other configuration. It is structured as follows:
➜ example-matano-dir git:(main) tree
├── detections
│ └── aws_root_credentials
│ ├── detect.py
│ └── detection.yml
├── log_sources
│ ├── cloudtrail
│ │ ├── log_source.yml
│ │ └── tables
│ │ └── default.yml
│ └── zeek
│ ├── log_source.yml
│ └── tables
│ └── dns.yml
├── matano.config.yml
└── matano.context.jsonWhen onboarding a new log source or authoring a detection, run matano deploy from anywhere in your project to deploy the changes to your account.
Read the complete docs on configuring custom log sources
Vector Remap Language (VRL), allows you to easily onboard custom log sources and encourages you to normalize fields according to the Elastic Common Schema (ECS) to enable enhanced pivoting and bulk search for IOCs across your security data lake.
Users can define custom VRL programs to parse and transform unstructured logs as they are being ingested through one of the supported mechanisms for a log source (e.g. S3, SQS).
VRL is an expression-oriented language designed for transforming observability data (e.g. logs) in a safe and performant manner. It features a simple syntax and a rich set of built-in functions tailored specifically to observability use cases.
Let's have a look at a simple example. Imagine that you're working with HTTP log events that look like this:
{
"line": "{\"status\":200,\"srcIpAddress\":\"1.1.1.1\",\"message\":\"SUCCESS\",\"username\":\"ub40fan4life\"}"
}You want to apply these changes to each event:
line string into JSON, and explode the fields to the top levelsrcIpAddress to the source.ip ECS fieldusername fieldmessage to lowercaseAdding this VRL program to your log source as a transform step would accomplish all of that:
transform: |
. = object!(parse_json!(string!(.json.line)))
.source.ip = del(.srcIpAddress)
del(.username)
.message = downcase(string!(.message))
schema:
ecs_field_names:
- source.ip
- http.statusThe resulting event :
{
"message": "success",
"status": 200,
"source": {
"ip": "1.1.1.1"
}
}Read the complete docs on detections
Use detections to define rules that can alert on threats in your security logs. A detection is a Python program that is invoked with data from a log source in realtime and can create an alert.
def detect(record):
return (
record.deepget("event.action") == "CreateInstanceExportTask"
and record.deepget("event.provider") == "ec2.amazonaws.com"
and record.deepget("event.outcome") == "failure"
)def detect(r):
return (
"authentication" in r.deepget("event.category", [])
and r.deepget("event.outcome") == "failure"
)
def title(r):
return f"Multiple failed logins from {r.deepget('user.full_name')} - {r.deepget('source.ip')}"
def dedupe(r):
return r.deepget("source.ip")---
tables:
- aws_cloudtrail
- okta_system
- o365_audit
alert:
severity: medium
threshold: 5
deduplication_window_minutes: 15
destinations:
- slack_my_team…Read the complete docs on alerting
All alerts are automatically stored in a Matano table named matano_alerts. The alerts and rule matches are normalized to ECS and contain context about the original event that triggered the rule match, along with the alert and rule data.
Example Queries
Summarize alerts in the last week that are activated (exceeded the threshold)
…You can deliver alerts to external systems. You can use the alerting SNS topic to deliver alerts to Email, Slack, and other services.
For general help on usage, please refer to the official documentation. For additional help, feel free to use one of these channels to ask a question:
Thanks go to these wonderful people (emoji key):
Shaeq Ahmed |
Samrose < |
No open issues yet, or sync has not completed.