Detection Engineering Weekly Issue 112: Threat Hunting and Kubernetes Security

Listen to this Post

Featured Image
Source: Detection Engineering Weekly Issue 112

You Should Know:

1. Building an MCP Server for Threat Hunting

Eito Tamura discusses constructing a Malware Configuration Parser (MCP) server from scratch. This tool helps in extracting IOCs (Indicators of Compromise) from malware samples.

Key Commands & Steps:

 Install required dependencies 
sudo apt-get install -y python3-pip git

Clone MCP repository 
git clone https://github.com/example/mcp-server.git 
cd mcp-server

Install Python requirements 
pip3 install -r requirements.txt

Run the MCP server 
python3 mcp_server.py --port 8080 

2. Hardening Kubernetes & Container Environments

Microsoft’s Threat Intel team provides guidelines for securing Kubernetes clusters.

Key Security Practices:

 Enable Kubernetes Pod Security Policies (PSP) 
kubectl apply -f pod-security-policy.yaml

Check for misconfigured pods 
kubectl get pods --all-namespaces -o json | jq '.items[] | select(.spec.securityContext.privileged==true)'

Enable Network Policies 
kubectl apply -f network-policy.yaml 

3. Detecting Malicious Parent-Child Processes

Paritosh Bhatt explains detecting suspicious process relationships.

Example Detection Command (Linux):

 Monitor process creation with auditd 
sudo auditctl -a always,exit -F arch=b64 -S execve -k process_monitor

Search for suspicious parent-child relationships 
ausearch -k process_monitor | grep -E "ppid=|pid=" 

4. SentinelOne Threat Actor Detection

Tom Hegel & team analyze how attackers bypass SentinelOne.

Detection Technique:

 Check for kernel module tampering (Linux) 
lsmod | grep -i "sentinel|unusual_module"

Windows: Check for unsigned drivers 
Get-WmiObject Win32_PnPSignedDriver | Where-Object {$_.IsSigned -eq $false} 

5. Phishing Kit Analysis (Japanese Targets)

URLScan.io’s research highlights phishing kits.

Investigation Steps:

 Download phishing page for analysis 
wget --mirror --convert-links --adjust-extension https://malicious-site.com

Analyze JavaScript obfuscation 
grep -r "eval(" phishing-site-dir/ 

What Undercode Say:

Detection Engineering is evolving with automated threat hunting, Kubernetes security hardening, and malware behavior analysis. Key takeaways:

  • Linux Commands for Threat Hunting:
    Check for hidden processes 
    ps -ef | grep -i "[bash]"
    
    Monitor network connections 
    netstat -tulnp | grep -E "ESTABLISHED|LISTEN"
    
    Analyze memory for malware 
    volatility -f memory.dump --profile=LinuxUbuntu_5x pslist 
    

  • Windows Commands for Incident Response:

    List scheduled tasks (malware persistence) 
    Get-ScheduledTask | Where-Object {$_.State -ne "Disabled"}
    
    Check for lateral movement via WMI 
    Get-WinEvent -LogName "Microsoft-Windows-WMI-Activity/Operational" | Where-Object {$_.Id -eq 5861} 
    

  • Kubernetes Security:

    Check for exposed dashboard 
    kubectl get services --all-namespaces | grep -i "dashboard"
    
    Scan for vulnerabilities with kube-hunter 
    docker run -it aquasec/kube-hunter --remote <cluster-IP> 
    

Prediction:

As attackers refine container escapes and living-off-the-land (LOL) techniques, detection engineers will focus more on runtime behavior analysis and threat intelligence automation.

Expected Output:

A structured guide on threat detection techniques, Kubernetes security, and malware analysis with actionable commands.

References:

Reported By: Zack Allen – Hackers Feeds
Extra Hub: Undercode MoN
Basic Verification: Pass ✅

Join Our Cyber World:

💬 Whatsapp | 💬 Telegram