Merge pull request #1 from aayush2561/templates

ASPNET and nodejs exception templates
patch-13
aayush2561 2024-10-27 22:56:04 +05:45 committed by GitHub
commit c3b0b93947
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 56 additions and 0 deletions

View File

@ -0,0 +1,24 @@
id: aspnet-framework-exceptions
info:
name: ASP.NET Framework Exceptions
author: Aayush Dhakal
severity: medium
description: Detects suspicious ASP.NET framework exceptions that could indicate exploitation attempts
reference:
- https://docs.microsoft.com/en-us/dotnet/api/system.web.httpexception
tags: file, logs, aspnet
file:
- extensions:
- all
extractors:
- type: regex
name: exception
part: body
regex:
- 'HttpException'
- 'InvalidOperationException'
- 'UnauthorizedAccessException'
- 'NotFound'

View File

@ -0,0 +1,32 @@
id: nodejs-framework-exceptions
info:
name: Node.js Framework Exceptions
author: Aayush Dhakal
severity: medium
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'