{"slug": "from-an-8-host-raspberry-pi-soc-lab-to-aws-mapping-our-hybrid-siem-onto-managed", "title": "From an 8-host Raspberry Pi SOC lab to AWS: mapping our hybrid SIEM onto managed security services", "summary": "A student startup in Istanbul has mapped its hybrid SIEM — an 8-host Raspberry Pi lab combining Sigma rules with 4 ML classifiers (Logistic Regression, SGD, SVM and LightGBM) and gateway IP blocking — onto AWS managed services, starting with Amazon Security Lake for OCSF-normalized storage, Amazon OpenSearch Service Security Analytics for over 2,200 prepackaged Sigma rules, Amazon GuardDuty for managed threat detection, Amazon SageMaker AI for the models, and EventBridge plus Lambda for response. The team said GuardDuty severity is \"an input, not the verdict,\" keeping its own hybrid risk score as the tunable per-site component, and it plans to block via an AWS WAF IP set before moving to AWS Network Firewall, which bills per endpoint-hour. The mapping matters because the 8-host lab can generate and label traffic but cannot serve customers with many endpoints and cloud workloads.", "body_md": "# From an 8-host Raspberry Pi SOC lab to AWS: mapping our hybrid SIEM onto managed security services\n\nWe built a hybrid SIEM that combines Sigma rules with 4 ML classifiers and blocks attackers at the gateway. This article maps each layer to an AWS managed service, lists what stays custom, and gives a test plan that fits inside the AWS free trials.\n\nStudent\n\n## Context\n\nWe are building a hybrid SIEM as a student startup in Istanbul. It combines rule-based detection with machine learning and responds by blocking IP addresses at the network gateway. The testbed is an 8-host lab on Raspberry Pis, a 10G switch and a gateway router. The lab is enough to generate and label traffic. It is not enough for customers with many endpoints and cloud workloads.\n\nBefore we move any part of the system, we mapped each layer to an AWS managed service and marked what we still build ourselves. This article is that map, plus the test plan we use to check it.\n\n## The system today\n\n| Layer | Lab implementation | \n|---|---|\n| Collection | Host and network logs from 8 lab hosts, stored on 1 central server | \n| Rule detection | Rule engine with Sigma rules mapped to MITRE ATT&CK | \n| ML detection | 4 classifiers (Logistic Regression, SGD, SVM, LightGBM) trained under 1 protocol | \n| Scoring | Hybrid risk score that combines rule hits and model output | \n| Response | IP blocking at the gateway | \n| Interface | Flask dashboard | \n\n## The AWS mapping\n\n| Layer | AWS service | What it gives us | \n|---|---|---|\n| Collection and storage | Amazon Security Lake | Normalizes AWS logs and findings to OCSF and stores them as Parquet in our own S3 bucket. Lab hosts join as a custom source. | \n| Rule detection | Amazon OpenSearch Service, Security Analytics | Over 2,200 prepackaged Sigma rules, custom rule import, MITRE ATT&CK mapping. Needs OpenSearch 2.5 or later. | \n| Managed threat detection | Amazon GuardDuty | A new layer with no lab equivalent. Extended Threat Detection correlates weak signals into attack sequence findings at no extra cost. | \n| ML detection | Amazon SageMaker AI | Built-in Linear Learner covers our 2 linear models, built-in LightGBM covers the third. SVM runs as a script in the scikit-learn container. | \n| Response | Amazon EventBridge and AWS Lambda | GuardDuty emits 1 event per finding. Lambda updates an AWS WAF IP set, a network ACL or an AWS Network Firewall rule group. | \n| Interface | OpenSearch Dashboards | Findings, alerts and rules in one view. Replaces the Flask dashboard for analysts. | \n\n## Three decisions from the mapping\n\n1. **OCSF comes first.** Every later layer reads normalized events. Security Lake accepts custom sources only as OCSF 1.3 or earlier, in Parquet, with its partitioning rules. We write and validate the converter for our lab logs before anything else.\n\n1. **GuardDuty severity is an input, not the verdict.** We feed GuardDuty findings into our hybrid risk score next to Sigma hits and model output. The score stays our own code, because it is the part we tune per site.\n\n1. **The block path stays small.** The lab blocks at 1 gateway. On AWS the equivalent is 1 Lambda function behind 1 EventBridge rule. We start with a WAF IP set for web-facing targets and move to Network Firewall only when we need stateful inspection, since Network Firewall bills per endpoint-hour.\n\n## The block path\n\nEventBridge rule for High and Critical GuardDuty findings:\n\n```\n{\n  \"source\": [\"aws.guardduty\"],\n  \"detail-type\": [\"GuardDuty Finding\"],\n  \"detail\": { \"severity\": [{ \"numeric\": [\">=\", 7] }] }\n}\n```\n\nLambda function that adds the remote IPs from a finding to a WAF IP set:\n\n``` python\nimport boto3\n\nwaf = boto3.client(\"wafv2\")\nIP_SET = {\"Name\": \"blocked-ips\", \"Scope\": \"REGIONAL\", \"Id\": \"<ip-set-id>\"}\n\ndef remote_ips(finding):\n    action = finding.get(\"service\", {}).get(\"action\", {})\n    details = [action.get(\"networkConnectionAction\", {}).get(\"remoteIpDetails\", {})]\n    details += [p.get(\"remoteIpDetails\", {})\n                for p in action.get(\"portProbeAction\", {}).get(\"portProbeDetails\", [])]\n    return {f\"{d['ipAddressV4']}/32\" for d in details if d.get(\"ipAddressV4\")}\n\ndef handler(event, context):\n    new = remote_ips(event[\"detail\"])\n    if not new:\n        return\n    current = waf.get_ip_set(**IP_SET)\n    addresses = set(current[\"IPSet\"][\"Addresses\"]) | new\n    waf.update_ip_set(**IP_SET, Addresses=sorted(addresses),\n                      LockToken=current[\"LockToken\"])\n```\n\nBefore production we add 2 controls: an allowlist so the function never blocks our own addresses, and an expiry so each block lifts after a fixed time.\n\n## Test plan inside the free trials\n\nGuardDuty gives new accounts 30 days at no cost per Region. Security Lake gives 15 days from the moment it is enabled. We fit the test into the shorter window, in 1 sandbox account and 1 Region.\n\n| Days | Step | \n|---|---|\n| 1 | Enable GuardDuty and Security Lake | \n| 2 to 5 | Write the OCSF converter for lab logs and register it as a custom source | \n| 6 to 10 | Connect OpenSearch Security Analytics, load our Sigma rules, run them on the same events as the lab engine | \n| 11 to 14 | Deploy the EventBridge rule and Lambda function, generate GuardDuty sample findings, measure the block path | \n| 15 | Read the cost estimates on the usage pages, then delete the OpenSearch domain and any firewall resources | \n\nOpenSearch Service is not part of either trial, so we run the smallest domain that supports Security Analytics and delete it on day 15.\n\n## What we measure\n\n- **Rule agreement:** share of lab Sigma matches that Security Analytics also flags on the same events, in %.\n\n- **Block latency:** time from GuardDuty finding to IP set update, in seconds.\n\n- **Noise:** false positives per day per detector.\n\n- **Cost:** estimated monthly cost for 8 hosts, from the trial usage pages.\n\n## Summary\n\nThe mapping keeps 2 parts of our system custom: the OCSF converter for on-premises logs and the hybrid risk score. Every other layer runs on a managed AWS service. We will publish the 4 measured values after the test window.\n\n**Enjoyed reading this content? Let the author know!**\n\nYour likes, comments, shares, and saves help creators reach more builders.\n\nLoading recommendations", "url": "https://wpnews.pro/news/from-an-8-host-raspberry-pi-soc-lab-to-aws-mapping-our-hybrid-siem-onto-managed", "canonical_source": "https://builder.aws.com/content/3N1tuX607fV5dubycG8vDvlHWSl/from-an-8-host-raspberry-pi-soc-lab-to-aws-mapping-our-hybrid-siem-onto-managed-security-services", "published_at": "2026-12-04 23:29:33+00:00", "updated_at": "2026-12-05 02:13:11.194674+00:00", "lang": "en", "topics": ["ai-safety", "machine-learning", "mlops", "ai-infrastructure"], "entities": ["Amazon Web Services", "Amazon Security Lake", "Amazon OpenSearch Service", "Amazon GuardDuty", "Amazon SageMaker AI", "AWS Lambda", "Amazon EventBridge", "AWS WAF"], "also_reported_by": [], "takeaway": "Normalize lab logs to OCSF 1.3 or earlier in Parquet before building detection layers, since Security Lake accepts custom sources only in that format, and keep the hybrid risk score as custom code while feeding GuardDuty findings in as one input.", "recommendation": {"advice": "Write and validate the OCSF converter before anything else, then trigger blocking from an EventBridge rule on GuardDuty severity >= 7 into a single Lambda that updates a WAF IP set.", "playbook": "production-ops", "playbook_url": "https://wpnews.pro/playbooks/production-ops"}, "alternates": {"html": "https://wpnews.pro/news/from-an-8-host-raspberry-pi-soc-lab-to-aws-mapping-our-hybrid-siem-onto-managed", "markdown": "https://wpnews.pro/news/from-an-8-host-raspberry-pi-soc-lab-to-aws-mapping-our-hybrid-siem-onto-managed.md", "text": "https://wpnews.pro/news/from-an-8-host-raspberry-pi-soc-lab-to-aws-mapping-our-hybrid-siem-onto-managed.txt", "jsonld": "https://wpnews.pro/news/from-an-8-host-raspberry-pi-soc-lab-to-aws-mapping-our-hybrid-siem-onto-managed.jsonld"}}