0.0.1 • Published 7 years ago

attack-pattern v0.0.1

Weekly downloads
2
License
GPL-3.0
Repository
github
Last release
7 years ago

Attack Pattern

License: GPL v3 CircleCI

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