Posts

Calculating Windows Events and Logs Size

Calculating the volume and size of logs you ingest into your Security Information and Event Management (SIEM) system can be difficult. So, what we do is we make up a number. However, we can make a more accurate count by running the following PowerShell script.  By default, the script will calculate the average sizes of logs and events for the following file logs and Windows Events over the past 7 days, and write them to CSV files. Windows Events (Additional Events can be added at line 10) : "Security" "Microsoft-Windows-Sysmon/Operational" "Microsoft-Windows-PowerShell/Operational" Windows File Logs (Additional files can be added at line 67): "C:\Windows\System32\PowerShell_Transcripts" "C:\inetpub\logs\LogFiles" The output file is a CSV and sets the hostname as the prefix. You can modify the output at line 111. For example, you have the output file shared; however, the account running the script must have access to the file share.  The...

Mapping CIS Critical Controls to Gartner Markets

Center for Internet Security (CIS) Critical Controls As a security engineer, it can be hard to know where to start. So, what we tend to do is lean towards our strengths or the new cool solution. However, these solutions may not be the best for the organization. Leveraging the Center for Internet Security (CIS) Critical Controls will help us prioritize where to start securing our organization's environments.  The CIS Critical Controls are a prioritized set of 18 cybersecurity best practices designed to help organizations defend against the most common and impactful cyber threats.   Inventory and Control of Enterprise Assets Inventory and Control of Software Assets Data Protection Secure Configuration of Enterprise Assets and Software Account Management Access Control Management Continuous Vulnerability Management Audit Log Management Email and Web Browser Protections M...

PCAP Doesn't Lie Part 4

Image
It’s time for the final part of the Network Security Monitoring (NSM) series. This post will cover the last two areas where packet capture will be lost: during processing and while writing to disk. During Process Once you’re able to get packets from the network to the interface with minimal packet loss, the next problem is processing them fast enough so that packets aren't dropped while waiting to be processed. There are two ways to solve this problem: hardware and software. The most obvious factor in reducing packet loss is hardware: more CPU threads and RAM generally improve performance. However, even the best hardware has limits—real gains come from software optimization. The most effective software configuration for minimizing packet loss is PF_RING, a high-performance packet capture framework for Linux. PF_RING enhances how monitoring tools ingest and process network traffic via a custom kernel module and an optimized socket interface, thereby bypassing traditional packet-capt...

PCAP Doesn't Lie Part 3

Image
It’s time for part 3 of the Network Security Monitoring (NSM) series. Quick review: there are 4 possible locations for packet loss: in transit, on the interface, during processing, and while writing to disk. Part 2  https://alstacilauskas.blogspot.com/2026/02/pcap-doesnt-lie-part-2.html we covered in transit; in this post, we will cover the interface. We must first understand why packets are lost on the interface. The most common reason for packet loss on an interface is misconfiguration. A normal network interface (operating in standard mode) processes only network traffic intended for that specific device. Each network interface card (NIC) has a unique MAC address that identifies it on the local network. When packets travel across the network, they include a destination MAC address. The NIC examines each packet and determines whether the destination address matches its own MAC address. If it matches, the packet is accepted and passed to the operating system for processing. If th...

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