acquiring-disk-image-w…
Create forensically sound bit-for-bit disk images using dd and dcfldd while preserving evidence integrity through
Performs statistical analysis of Zeek conn.log connection intervals to detect C2 beaconing patterns. Uses the
Claude Code
$ npx -y skills add Mikaru0Mystic/sectinel --skill detecting-beaconing-patterns-with-zeek --agent claude-code
Codex
$ npx skills add Mikaru0Mystic/sectinel --skill detecting-beaconing-patterns-with-zeek -a codex -y
Cursor
$ npx skills add Mikaru0Mystic/sectinel --skill detecting-beaconing-patterns-with-zeek -a cursor -y
Gemini CLI
$ npx skills add Mikaru0Mystic/sectinel --skill detecting-beaconing-patterns-with-zeek -a gemini-cli -y
GitHub Copilot
$ npx skills add Mikaru0Mystic/sectinel --skill detecting-beaconing-patterns-with-zeek -a github-copilot -y
OpenCode
$ npx skills add Mikaru0Mystic/sectinel --skill detecting-beaconing-patterns-with-zeek -a opencode -y
Windsurf
$ npx skills add Mikaru0Mystic/sectinel --skill detecting-beaconing-patterns-with-zeek -a windsurf -y
name: detecting-beaconing-patterns-with-zeek description: 'Performs statistical analysis of Zeek conn.log connection intervals to detect C2 beaconing patterns. Uses the ZAT library to load Zeek logs into Pandas DataFrames, calculates inter-arrival time standard deviation, and flags periodic connections with low jitter. Use when hunting for command-and-control callbacks in network data. ' domain: cybersecurity subdomain: security-operations tags: - detecting - beaconing - patterns - with version: '1.0' author: mahipal license: Apache-2.0 nist_csf: - DE.CM-01 - RS.MA-01 - GV.OV-01 - DE.AE-02
Load Zeek conn.log data using ZAT (Zeek Analysis Tools), group connections by source/destination pairs, and compute timing statistics to identify beaconing.
from zat.log_to_dataframe import LogToDataFrame
import numpy as np
log_to_df = LogToDataFrame()
conn_df = log_to_df.create_dataframe('/path/to/conn.log')
# Group by src/dst pair and calculate inter-arrival time
for (src, dst), group in conn_df.groupby(['id.orig_h', 'id.resp_h']):
times = group['ts'].sort_values()
intervals = times.diff().dt.total_seconds().dropna()
if len(intervals) > 10:
std_dev = np.std(intervals)
mean_interval = np.mean(intervals)
# Low std_dev relative to mean = likely beaconingKey analysis steps: 1. Parse Zeek conn.log into DataFrame with ZAT LogToDataFrame 2. Group connections by source IP and destination IP pairs 3. Calculate inter-arrival time intervals between consecutive connections 4. Compute standard deviation and coefficient of variation 5. Flag pairs with low coefficient of variation as potential beacons
from zat.log_to_dataframe import LogToDataFrame
log_to_df = LogToDataFrame()
df = log_to_df.create_dataframe('conn.log')
print(df[['id.orig_h', 'id.resp_h', 'ts', 'duration']].head())Open-source security arsenal for AI coding agents: 784 cybersecurity skills, scanner integrations, and a security MCP for Claude Code, Cursor, opencode, Gemini CLI, Cline, and any agentskills.io agent. Mapped to OWASP, MITRE ATT&CK, NIST CSF, D3FEND, ATLAS.
Create forensically sound bit-for-bit disk images using dd and dcfldd while preserving evidence integrity through
Detect dangerous ACL misconfigurations in Active Directory using ldap3 to identify GenericAll, WriteDACL, and
Perform static analysis of Android APK malware samples using apktool for decompilation, jadx for Java source
Parses API Gateway access logs (AWS API Gateway, Kong, Nginx) to detect BOLA/IDOR attacks, rate limit bypass,
Analyze advanced persistent threat (APT) group techniques using MITRE ATT&CK Navigator to create layered heatmaps
Queries Azure Monitor activity logs and sign-in logs via azure-monitor-query to detect suspicious administrative
Use for authorized security assessment of REST, GraphQL, WebSocket, or SOAP APIs, including discovery, authentication,…
Extract and decrypt Windows DPAPI-protected secrets (Credential Manager, browser logins/cookies, Wi-Fi credentials, KeePass keys)…
Clean and finalize authorized natural-language text intended for readers by auditing suspicious invisible Unicode and rewriting…