Claude 24f816b6a3
Consolidate 22 sibling repos into layered organism structure
Place useful parts of the surrounding repos into sica-fondt by layer, per the
body model (Ada = membrane; brain/endocrine/capabilities/knowledge non-Ada):

- brain/        LLM reasoning + providers (dapr, hermes, MoMoA)
- capabilities/ REPRAG sidecars: hermes tools/skills, dapr tools, parallel
                dispatch, A51 channels, and the OSINT cluster
- knowledge/    LORAG corpus: 754 cyber-skills, agency personas, secure-coding,
                MITRE ATT&CK data
- reference/    defensive threat-reference (C3, shhbruh doc) + AdaYaml parser

License handling: AGPL sources (worldosint, advanced_evolution, mercury,
Reticulum) and GPL DeTTECT are SPEC-only clean-room/port descriptions — no
copyleft code copied. MIT/Apache/data parts copied as working trees.

Safety: shhbruh escape/persistence material and C3 covert-C2 kept as reference
only, not wired into the running organism. See CONSOLIDATION.md.

https://claude.ai/code/session_01UehUqEXXJJCsHoA4voCU5c
2026-06-10 06:53:01 +00:00

71 lines
1.9 KiB
Markdown

# API Reference: Building Cloud SIEM with Sentinel
## azure-monitor-query (KQL Queries)
```python
from azure.identity import DefaultAzureCredential
from azure.monitor.query import LogsQueryClient
from datetime import timedelta
credential = DefaultAzureCredential()
client = LogsQueryClient(credential)
response = client.query_workspace(
workspace_id="WORKSPACE_ID",
query="SigninLogs | where ResultType == 0 | take 10",
timespan=timedelta(hours=24),
)
for table in response.tables:
for row in table.rows:
print(row)
```
## azure-mgmt-securityinsight
```python
from azure.mgmt.securityinsight import SecurityInsights
client = SecurityInsights(credential, subscription_id)
# List analytics rules
for rule in client.alert_rules.list(rg, workspace):
print(rule.display_name, rule.severity)
# List incidents
for incident in client.incidents.list(rg, workspace):
print(incident.title, incident.severity)
```
## Key KQL Patterns for Sentinel
```kql
// Impossible travel
SigninLogs | where ResultType == 0
| extend Distance = geo_distance_2points(...)
// AWS credential abuse
AWSCloudTrail | where EventName == "AssumeRole"
| summarize dcount(SourceIpAddress) by UserIdentityArn
// Threat intelligence matching
let TI = ThreatIntelligenceIndicator | distinct NetworkIP;
CommonSecurityLog | where DestinationIP in (TI)
```
## Sentinel Data Connectors
| Connector | Data Table |
|-----------|-----------|
| Azure AD | `SigninLogs`, `AuditLogs` |
| AWS CloudTrail | `AWSCloudTrail` |
| Microsoft 365 | `OfficeActivity` |
| Defender for Cloud | `SecurityAlert` |
| Syslog | `Syslog` |
| CEF | `CommonSecurityLog` |
### References
- azure-monitor-query: https://pypi.org/project/azure-monitor-query/
- azure-mgmt-securityinsight: https://pypi.org/project/azure-mgmt-securityinsight/
- KQL reference: https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/