Skip to content

Instantly share code, notes, and snippets.

@shortstack
shortstack / Server.Enrichment.JsonLookup.yaml
Created May 22, 2026 09:03
Velociraptor Artifact - Allows pulling in JSON lists from an external URL to perform lookups against
name: Server.Enrichment.JsonLookup
description: Allows pulling in JSON lists from an external URL to perform lookups against
author: Whitney Champion (@shortstack)
type: SERVER
parameters:
- name: LookupUrl
type: string
default:
@shortstack
shortstack / Server.Monitor.Flows.Windows.EventLogs.Hayabusa.yaml
Created May 22, 2026 08:52
Velociraptor Artifact - Automatically collect any KAPE triage artifacts, and send them for processing with Hayabusa
name: Server.Monitor.Flows.Windows.EventLogs.Hayabusa
author: Whitney Champion - bluesky @whit.zip, Eric Capuano - bluesky @eric.zip
description: |
This server monitoring artifact will automatically collect any KAPE triage artifacts, and send them for processing with Hayabusa.
type: SERVER_EVENT
parameters:
- name: ArtifactNameRegex
default: "Windows.KapeFiles.Targets"
@shortstack
shortstack / Server.Process.Windows.EventLogs.Hayabusa.yaml
Created May 22, 2026 08:51
Velociraptor Artifact - Process evtx files server side with Hayabusa
name: Server.Process.Windows.EventLogs.Hayabusa
author: Whitney Champion - bluesky @whit.zip, Eric Capuano - bluesky @eric.zip
description: |
Process evtx files server side with Hayabusa
type: SERVER
tools:
- name: Hayabusa-Linux-3.3.0
url: https://github.com/Yamato-Security/hayabusa/releases/download/v3.3.0/hayabusa-3.3.0-lin-x64-musl.zip
@shortstack
shortstack / lookup.csv
Created May 22, 2026 08:00
velociraptor lookup.csv
1 foo
2 bar
@shortstack
shortstack / lookup.json
Last active May 22, 2026 07:27
velociraptor lookup.json
{
"list": [
{ "name": "dinesh" },
{ "name": "richard" },
{ "name": "gilfoyle" },
{ "name": "erlich" },
{ "name": "jared" },
{ "name": "jian-yang" },
{ "name": "monica" }
]
@shortstack
shortstack / velociraptor.py
Created October 9, 2024 16:12
Velociraptor API example
import json
import grpc
import app.libraries.pyvelociraptor
from app.libraries.pyvelociraptor import api_pb2
from app.libraries.pyvelociraptor import api_pb2_grpc
def query_endpoint_status(endpoint_id):
status = query_vr(
'SELECT last_seen_at as last_seen FROM clients() WHERE client_id="%s"'
@shortstack
shortstack / Windows.Application.LimaCharlieInstall.yaml
Last active October 22, 2023 20:44
Velociraptor artifact to deploy the LimaCharlie EDR sensor
name: Windows.Applications.LimaCharlieInstall
author: Whitney Champion (@shortxstack)
description: |
This artifact installs the LimaCharlie EDR sensor.
tools:
- name: LimaCharlieBinary
url: https://downloads.limacharlie.io/sensor/windows/64
serve_locally: true
@shortstack
shortstack / cylance_detections.py
Created March 16, 2023 22:51
Python Flask app to log detections from Cylance API
import requests
import json
import time
from datetime import datetime, timedelta
import jwt
import uuid
from flask import Flask
from config import Config
@shortstack
shortstack / deploy_sysmon.yml
Created February 9, 2023 23:24
Deploy Sysmon With A LimaCharlie D&R Rule
deploy_sysmon:
detect:
event: OS_SERVICES_REP
op: and
rules:
- op: is platform
name: windows
- op: contains
not: true
case sensitive: false
@shortstack
shortstack / sigma_to_limacharlie.py
Created September 21, 2022 13:29
Convert Sigma rule to LimaCharlie rule
import json
import yaml
import requests
url = "https://sigma.limacharlie.io/convert/rule"
files = {'rule': open('sigma_rule.yml', 'rb').read()}
headers = {
"Content-Type": "application/x-www-form-urlencoded"