Skip to content

Instantly share code, notes, and snippets.

View defensivedepth's full-sized avatar

Josh Brower defensivedepth

View GitHub Profile
@defensivedepth
defensivedepth / zeek_svcctl.yaml
Created April 27, 2021 00:12
Sigma rule for Zeek - Detects when a Windows service has been changed or started with svcctl remotely (using DCE/RPC).
title: Windows service changed or started remotely with svcctl
status: experimental
description: Detects when a Windows service has been changed or started with svcctl remotely (using DCE/RPC).
references:
- https://github.com/juliourena/SharpNoPSExec
author: 'Josh Brower, @Defensivedepth'
logsource:
product: zeek
service: dce_rpc
detection:
event.dataset: "dce_rpc" | groupby source.ip destination.ip event.module event.dataset dce_rpc.operation
@defensivedepth
defensivedepth / CIS-Benchmark-diff.py
Created November 22, 2023 12:15
CIS-Benchmark-Diff
# This script takes two CIS Benchmark PDFs as input and diffs them
# For example: It will generate a diff of the Win10 & W11 benchmarks
import fitz # PyMuPDF
import re
import difflib
import sys
from datetime import datetime
def is_start_of_new_item(line):