Skip to main content

Posts

Welcome to Mark Baggett - In Depth Defense



I am the course Author of SANS SEC573 Automating Information Security with Python. Check back frequently for updated tools and articles related to course material.

Senior SANS Instructor
GSE #15
Internet Storm Center Handler
Penetration Testing and Incident Response Consultant
Technical Advisor to DoD for The SANS Institute
Founding President of the Greater Augusta ISSA
Cofounder of BSidesAugusta Security Conference


Tools:
FREQ SERVER - Tool and technique for detecting Malware Command and Control domains
DOMAIN_STATES - Tool for detecting "Baby Domains" used for phishing and Malware distribution
SRUM_DUMP - Forensics tool for extracting System Resource Utilization Monitoring artifacts
LIAM_NEESON - Proof of Concept Linux Hash Protection
HONEY_HASHES - Certainly Honey Tokens have been around since 2003 but I created a cool technique for creating fake SATs in memory that was turned into Dell Secure Works DCEPT framework.
VSSOWN - Tool & Technique for Using Microsoft Volume Shadow Copies for hiding malware and extracting artifacts
SDB Hacking - Using Application Compatibility in unexpected ways.
SET-KBLED - Utility for Managing Clevo and Sager Laptop LED Backlit Keyboards
Reassembler.py - Scapy based fragement reassembly engine
eapmd5crack.py - A password cracker for the EAP protocol


and more. Most of these tools are available on my github page. Follow me on twitter @markbaggett





SRUM DUMP and SRUM DUMP CSV Updated

An issue was reported where is some conditions SRUM_DUMP would stop processing and print the following error to the screen.

UnboundLocalError: local variable 'sid_str' referenced before assignment
The issue was that sometimes the SRUM database had entries in it that were all zeros.

OrderedDict([('IdType', 3), ('IdIndex', 38127), ('IdBlob', '0000000000000000')])

I've released an update that handles the anomoly althought I do not understand the circomstances of why Windows would record all zero's for as the user SID.

The issue was fixed and new versions of both SRUM DUMP and SRUM DUMP CSV were released.






Recent posts

FREQ and FREQ-SERVER UPDATE

While sitting in SANS SEC511 I listened to @sethmisenar lament the difficulty in using existing tools to detect DGA (Dynamically Generation Algorithm) hostnames used by malware. There are lots of AI based tools out there that do this but some are rather complex. I thought I could quickly write a tool that would work. In about 30 minutes I threw together some old code I had lying around from a SQL Inction tool I worked on and I had a working proof of concept. freq.py was born and it worked pretty well. A year later @securitymapper had me wrap it in a web interface so he could query it from a SIM and then the tool took off. It turns out to be a pretty effective technique and gained some popularity and wide use! This is a rewrite of the tool that incorporates some lessons learned and performance enhancments.
Improvements: -Only one table is required for case sensitve or insensitive lookups. The tables are all case sensitive. You can turn off and on case sensitivity and the .probability l…

SRUM_DUMP_CSV Beta Test Released

I've released a BETA test of the SRUM_DUMP_CSV forensics tool.   A few people have reported crashes when SRUM_DUMP processing large Application Event logs.   The problem is resolved with the new version of the tool that produce individual CSV files instead of a single XLSX file. 

Check it out!

https://github.com/MarkBaggett/srum-dump


Use Python and Scapy to Easily Do Full Duplex Stream Reassembly!

Check out this blog on how to get scapy to do full packet reassembly in just a few lines of Python code.

https://pen-testing.sans.org/blog/2017/10/13/scapy-full-duplex-stream-reassembly


SQLMAP Tamper Scripts

Check out this article on using Python to automate SQLi with SQLMAP!


https://pen-testing.sans.org/blog/2017/10/13/sqlmap-tamper-scripts-for-the-win


New Incident Response Tool - SRUM-DUMP

I released an incident response/forensics tool to dump the valuable information stored in Microsoft's System Resource Utilization Monitoring database.   Check it out.



Read the original article posted here on the Internet Storm Center.