attack-pattern
v0.0.1
Published
Attack Pattern is a npm ES2015+ package for detecting attack patterns in url's
Readme
Attack Pattern
Attack Pattern is a npm package which detects attack patterns. This is used in the Warning Bot Extensions and Warning Bot webapp. The first version only checks certain attack pattern for url's, but this will be improved over time with more attacks and different attack surfaces.
import 'attackPattern' from 'attackPattern'
attackPattern.url.hasScriptInLink('https://www.warningbot.com/') // false
attackPattern.url.hasScriptInLink('https://www.warningbot.com/analyzer/<script>alert("xss")</script>') // true