33 lines
1.0 KiB
YAML
33 lines
1.0 KiB
YAML
id: nodejs-framework-exceptions
|
|
|
|
info:
|
|
name: Node.js Framework Exceptions
|
|
author: Aayush Dhakal
|
|
severity: info
|
|
description: Detects suspicious Node.js framework exceptions that could indicate exploitation attempts
|
|
reference:
|
|
- https://expressjs.com/en/guide/error-handling.html
|
|
- https://nodejs.org/en/docs/guides
|
|
tags: file,logs,nodejs
|
|
|
|
file:
|
|
- extensions:
|
|
- all
|
|
|
|
extractors:
|
|
- type: regex
|
|
name: exception
|
|
part: body
|
|
regex:
|
|
- 'TypeError'
|
|
- 'ReferenceError'
|
|
- 'SyntaxError'
|
|
- 'ValidationError'
|
|
- 'UnauthorizedError'
|
|
- 'ForbiddenError'
|
|
- 'NotFoundError'
|
|
- 'InternalServerError'
|
|
- 'BadRequestError'
|
|
- 'MongoError'
|
|
- 'SequelizeDatabaseError'
|
|
# digest: 4a0a00473045022100dfb7b88c5cb9ad7083402500e5e1682a8d2febf50a3618300a8a3d9a08a4c85f02204eb93f08c3ab66243cf40936fb8a83c1ab0c79412ce1e3a9c7fdd4965aab1718:922c64590222798bb761d5b6d8e72950 |