Add NewRelic insert key detection (#1417)

This commit is contained in:
danielap-ma authored and GitHub committed 2024-06-02 18:18:52 -05:00
1 parent bb4424d454
commit fe94ef9ca3
3 files changed
+32

No files matched your search

+8
View File
@@ -2367,6 +2367,14 @@ keywords = [
"nrjs-",
]
[[rules]]
id = "new-relic-insert-key"
description = "Discovered a New Relic insight insert key, compromising data injection into the platform."
regex = '''(?i)(?:new-relic|newrelic|new_relic)(?:[0-9a-z\-_\t .]{0,20})(?:[\s|']|[\s|"]){0,3}(?:=|>|:{1,3}=|\|\|:|<=|=>|:|\?=)(?:'|\"|\s|=|\x60){0,5}(NRII-[a-z0-9-]{32})(?:['|\"|\n|\r|\s|\x60|;]|$)'''
keywords = [
"nrii-",
]
[[rules]]
id = "new-relic-user-api-id"
description = "Found a New Relic user API ID, posing a risk to application monitoring services and data integrity."