Notes

Defanging a list of indicators with one sed line

Before pasting indicators into a ticket or chat, defang them so nobody clicks one by accident:

sh
sed -E 's/^http/hxxp/; s/\./[.]/g' iocs.txt

It’s crude: it also brackets the dots in file names. For anything going into a report, use a real defanging library and keep the raw values in a separate machine-readable file.