mirror of
https://github.com/SHOGGOTH-SECTOR/sica-fondt.git
synced 2026-08-02 17:03:25 +00:00
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
55 lines
1.6 KiB
Markdown
55 lines
1.6 KiB
Markdown
# API Reference: Analyzing Azure Activity Logs for Threats
|
|
|
|
## azure-monitor-query
|
|
|
|
```python
|
|
from azure.identity import DefaultAzureCredential
|
|
from azure.monitor.query import LogsQueryClient, LogsQueryStatus
|
|
from datetime import timedelta
|
|
|
|
credential = DefaultAzureCredential()
|
|
client = LogsQueryClient(credential)
|
|
|
|
response = client.query_workspace(
|
|
workspace_id="WORKSPACE_ID",
|
|
query="AzureActivity | take 10",
|
|
timespan=timedelta(hours=24),
|
|
)
|
|
if response.status == LogsQueryStatus.SUCCESS:
|
|
for table in response.tables:
|
|
columns = [col.name for col in table.columns]
|
|
for row in table.rows:
|
|
print(dict(zip(columns, row)))
|
|
```
|
|
|
|
## Key Azure Log Tables
|
|
|
|
| Table | Content |
|
|
|-------|---------|
|
|
| `AzureActivity` | Control plane operations (ARM) |
|
|
| `SigninLogs` | Azure AD sign-in events |
|
|
| `AuditLogs` | Azure AD audit trail |
|
|
| `AzureDiagnostics` | Resource diagnostics (Key Vault, NSG) |
|
|
| `SecurityAlert` | Defender for Cloud alerts |
|
|
|
|
## Threat Detection KQL Patterns
|
|
|
|
```kql
|
|
// Privilege escalation
|
|
AzureActivity | where OperationNameValue has "ROLEASSIGNMENTS/WRITE"
|
|
|
|
// Impossible travel
|
|
SigninLogs | where ResultType == 0
|
|
| extend Distance = geo_distance_2points(...)
|
|
|
|
// Mass deletion
|
|
AzureActivity | where OperationNameValue endswith "/DELETE"
|
|
| summarize count() by Caller, bin(TimeGenerated, 1h)
|
|
```
|
|
|
|
### References
|
|
|
|
- azure-monitor-query: https://pypi.org/project/azure-monitor-query/
|
|
- KQL reference: https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/
|
|
- Azure Activity Log schema: https://learn.microsoft.com/en-us/azure/azure-monitor/essentials/activity-log-schema
|