Skip to content

Instantly share code, notes, and snippets.

View FrankHassanabad's full-sized avatar
🎧
Eat Sleep Code Repeat

Frank Hassanabad FrankHassanabad

🎧
Eat Sleep Code Repeat
  • https://radicl.com/
  • Boulder, Co
View GitHub Profile
@FrankHassanabad
FrankHassanabad / yj_wrapper.sh
Created January 13, 2020 20:18
Converts rules from json to yaml to toml and back again
#!/bin/sh
# Download yj from:
# https://github.com/sclevine/yj/releases
# such as wget https://github.com/sclevine/yj/releases/download/v4.0.0/yj-macos
#
# Then chmod 755 ./yj-wrapper
# Go to your pre-packaged rules and run this:
# yj-wrapper.sh
@FrankHassanabad
FrankHassanabad / example_processors.yml
Created August 29, 2019 22:30
Processors For Beats Example
processors:
- add_host_metadata:
netinfo.enabled: true
- add_cloud_metadata: ~
- add_fields:
when.network.source.ip: 10.128.0.21/32
fields:
source.geo.location:
lat: 42
lon: -93
@FrankHassanabad
FrankHassanabad / example_processors.yml
Created August 29, 2019 22:30
Processors For Beats Example
processors:
- add_host_metadata:
netinfo.enabled: true
- add_cloud_metadata: ~
- add_fields:
when.network.source.ip: 10.128.0.21/32
fields:
source.geo.location:
lat: 42
lon: -93
@FrankHassanabad
FrankHassanabad / example_processors.yml
Created August 29, 2019 22:30
Processors For Beats Example
processors:
- add_host_metadata:
netinfo.enabled: true
- add_cloud_metadata: ~
- add_fields:
when.network.source.ip: 10.128.0.21/32
fields:
source.geo.location:
lat: 42
lon: -93
@FrankHassanabad
FrankHassanabad / url-notes.txt
Created June 17, 2019 04:39
Links for ML jobs examples
## Generic links from ML back to SIEM Application
#
# Several tests runs with each and adding/removing
# them to see which ones were effective
#
Network Overview Links
---
# Network Overview By User Name (KQL Query: user.name $user.name$)
@FrankHassanabad
FrankHassanabad / output.txt
Created April 22, 2019 11:34
Run Tests Repeatedly
running test for the 1 time with total 0 errors so far
running test for the 2 time with total 0 errors so far
running test for the 3 time with total 0 errors so far
running test for the 4 time with total 0 errors so far
running test for the 5 time with total 0 errors so far
running test for the 6 time with total 0 errors so far
running test for the 7 time with total 0 errors so far
running test for the 8 time with total 0 errors so far
running test for the 9 time with total 0 errors so far
running test for the 10 time with total 0 errors so far
#
# Full text queries
#
# Match all
GET /auditbeat-*/_search
{
"query": {
"match_all": {}
}
@FrankHassanabad
FrankHassanabad / aliases.sh
Last active January 10, 2019 16:48
Helpful aliases I use for kibana
export PLUGIN_NAME=secops
# Start kibana
alias start-kibana='cd $HOME/projects/kibana && yarn start --no-base-path'
# Start bootstrap
alias start-bootstrap='cd $HOME/projects/kibana && yarn kbn bootstrap'
# Start typecheck
alias start-type-check='cd $HOME/projects/kibana && node scripts/type_check.js'

Keybase proof

I hereby claim:

  • I am frankhassanabad on github.
  • I am frankhassanabad (https://keybase.io/frankhassanabad) on keybase.
  • I have a public key ASCNJL2XvQ2jA2QIWsLLIbAz1Loxl3DzoUlhZ6TaFZDFjQo

To claim this, I am signing this object:

@FrankHassanabad
FrankHassanabad / rust_futures_examples.rs
Last active July 29, 2018 01:49
Rust futures examples
extern crate futures;
use futures::{future, Future};
use std::*;
/// Returns an empty future, empty error
fn return_empty_result() -> impl Future<Item = (), Error = ()> {
future::lazy(|| future::ok::<(), ()>(()))
}