Posts

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. 

You Don't Need Fancy Tools to Detect Evil

Image
Some Threat Hunters believe you need a big budget and fancy tools to perform effective threat hunting. If that's the case, the tool is the Threat Hunter, not the person. Here, I will guide you on how to hunt for persistence on Windows hosts using the tools you already have at your disposal. One of my go-to tools to detect persistence is Microsoft Sysinternals Autoruns. This free utility from Microsoft has the most comprehensive knowledge of the auto-starting locations of any startup monitor. It displays the programs configured to run during system bootup or login and when you start various built-in Windows applications . Link to Autroruns: https://learn.microsoft.com/en-us/sysinternals/downloads/autoruns   The competent we will use within this zip file is autorunsc64.exe, or if you have a 32-bit version of Windows, autorunsc.exe. This is a command line interface (CLI) for autoruns. We need to get into the detail of autorunsc. However, we will use the -a switch for "autostart e...

AL, AI, and Sigma: Automating Threat Hunting With OpenAI

Image
Traditional threat hunting involves taking some threat intelligence, such as Palo Alto Unit 42 (https://unit42.paloaltonetworks.com/), and searching for malicious activity. More often than not, we find nothing and then forget how we searched for the malicious activity. This is why one of the products of any threat hunt should be a Sigma rule.  A Sigma rule is a standardized format for creating rules to detect suspicious activities or anomalies in log data across various security information and event management (SIEM) systems. What sets Sigma apart is its normalization to YAML format, making it SIEM-agnostic and allowing for seamless conversion to the querying language of your preferred SIEM, giving you the freedom to use it in the system that best suits your needs.  Reading through article after article, and extracting the necessary details to write a Sigma rule can be time-consuming and tedious. I remember a quote from a system administrator when I worked at the service desk...

sigma2sclogscale

Sigma detection rules are great for portability from Security Information and Event Management (SIEM) with Sigma CLI (  https://github.com/SigmaHQ/sigma-cli ). While it's true that Sigma CLI doesn't support all SIEMs, including Crowdstrike Logscale, the silver lining is that Sigma rules are structured as YAML data, making them a breeze to parse.   Below is my first attempt at writing a Python script to create  a  Crowdstrike Logscale query. You'll need to change the <BASE_URL>  and <REPO_NAME>in line 105 to your Logscale site and the repo you want to query. You will also need to change  the <ACCESS_TOKEN> in line 106. (Note: I use a static token.) The usage is as follows. python sigma2sclogscale.py <folder_to_search_for_sigma_rules> The output is a text file with a tuple of Sigma rule title and Crowdstrike Logscale query.

Mobile Fake USPS Credential Card Harvesting Site

Image
This morning, I received a group text message from a phone number in the Philippines informing me that my USPS package does not have a house number. The message then provides a convenient link to help me update my information.        Two additional phone numbers were in the group chat. Both had the same area and first three numbers as mine.  I received the text message about one hour after it was registered with a Cloud provider in China.      When I attempted to analyze the link in Windows 10, the website checked to see if my browser was running a mobile version, and since it was not, it redirected me to the real USPS website. Instead of changing my user agent, I created a new Android 12 device in Android Studio. This time, I was welcome with a page that allowed me to update my information. Please note that it was not redirected to a different website. This would be more difficult to burn the domain if needed. I was then taken to a page that aske...