Posts

PCAP Doesn't Lie Part 2

Image
Network security monitoring (NSM) is sending a copy of network traffic consisting of packets to a monitoring device, processing those packets with monitoring software, and then writing the data to storage. There are 2 enemies of network security monitoring (NSM): packet loss and encryption.  While eliminating all packet loss may be impossible as an NSM engineer, you must understand packet loss and where it occurs to minimize it. There are 4 possible locations for packet loss: in-transit, on the interface, during processing, and while writing to disk. This post will discuss the first of these four possible locations: in-transit. In-transit packet loss occurs when data packets are dropped during transmission to your NSM device. There are 2 ways send packets to your NSM device. A SPAN (Switched Port Analyzer), also called port mirroring, is a switch feature that copies network traffic. The issue with SPAN ports is that they are typically low-priority on the switch, and if the switch i...

PCAP Doesn't Lie Part 1

As an incident responder, endpoint logs are the most valuable resource for analysis; however, there are two major flaws with endpoint logs—access to endpoints' logs and anti-forensics. Some endpoints you cannot install an endpoint detection and response agent or even access the underlying OS, making it difficult to perform endpoint analysis. These endpoints are favorite targets of malicious actors due to the lack of visibility. Then, the only artifacts you may have are PCAP.  Another favorite tactic of malicious actors is to perform anti-forensics. Anti-forensics refers to techniques used to evade, disrupt, or mislead digital forensic investigations by hiding, altering, or destroying evidence. If an OS is compromised, any artifacts on it may lie to you. The only thing you can rely on is PCAP. PCAP doesn't lie.  This will be the first of several blogs discussing everything you need to know about engineering a network security monitoring (NSM) system. 

Malware Can Hide But It Must Run

Anti-forensics involves techniques that hinder digital investigations by hiding, destroying, or manipulating data and evidence. It's important not to trust the operating system because it can be compromised—malware or attackers may alter logs, timestamps, or system behavior. Relying solely on OS forensics artifacts is not sufficient. The best way to detect anti-forensics is by using memory forensics. Malware can hide, but it must run. This blog is for a Linux Bash script that uses Volatility to extract all files in the memory image, calculate unique file hashes, and then check the file hash against the VirusTotal Database. There are several prerequisites: 1) Install Volatility 3 https://github.com/volatilityfoundation/volatility3    2) Create VirusTotal API key https://docs.virustotal.com/docs/please-give-me-an-api-key  

Incident Response Checklist

The following is a checklist meant to be used by an organization to respond to a cybersecurity incident. This is intended to be a step-by-step guide on responding to an incident. This allows for consistent, thorough, and complete implementation of an organization's incident response process.    Even if one of the steps does not apply or a step is missing, the checklist allows for the due diligence that incident responders must perform. Just like processes, the checklist should be an ever-evolving document.   This list is derived from several sources, including the following.  https://www.cisa.gov/resources-tools/resources/federal-government-cybersecurity-incident-and-vulnerability-response-playbooks   https://csrc.nist.gov/pubs/sp/800/61/r3/final https://www.sans.org/media/score/504-incident-response-cycle.pdf

How Different AI Models Compare for Sigma Rule Generation

I compared 6 AI models (qwen3, gemma3, deepcoder, gpt-3.5-turbo, gpt-4, and gpt-4.1) for their ability to generate SIGMA detection rules. Spoiler gpt-4.1 did the best job, however, some of the other open-source models did as well or better than the gpt-3.5-turbo. I provide the following three prompts to all the models. Prompt 0 - In the context of cybersecurity, what is a sigma rule?  Please have your response to 5 sentences or less. Here's a link to help https://github.com/SigmaHQ/sigma Prompt 1 - Write a sigma rule for a failed user login to a Windows computer. Here's a link to help. https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-10/security/threat-protection/auditing/event-4625 Prompt 2 - Write a sigma rule for dynamic data exchange. Here's a link to help https://attack.mitre.org/techniques/T1559/002/ All the models provide a correct response for Prompt 0, however deepcoder grossly exceeded the 5-sentence limit in the prompt’s instructions. On...

AL, AI, and Sigma: BSides Jacksonville

Looking for Changes on iPhone

Image
Want to know about the files that have changed on your iPhone? Comparing iPhone backups can provide you insight into file changes. Within an iPhone backup is the SQLite database "Manifest.db" containing the table "Files." Comparing the field "fileID" across different backups can provide insight into what new and modified files are on the phone. The following Python script will do this comparison for you and output the results to the CSV file. Please note that you need the SQLite3, readline, and CSV Python modules. When prompted, provide the path to the first and second databases. Disclaimer: This tool is not meant to replace a complete forensic analysis of iPhones. It provides a high-level analysis to determine if a complete forensics analysis is required.  What's the use case? If you have user that is traveling to high-risk area take a backup before and after. Then, run this tool.