Skip to content

Commit dc8ed47

Browse files
committed
Extras module update.
1 parent b697562 commit dc8ed47

2 files changed

Lines changed: 11 additions & 11 deletions

File tree

modules/module_extras.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* License: GNU/GPLv2
99
* @see LICENSE.txt
1010
*
11-
* This file: Optional security extras module (last modified: 2025.04.17).
11+
* This file: Optional security extras module (last modified: 2025.04.28).
1212
*
1313
* False positive risk (an approximate, rough estimate only): « [ ]Low [x]Medium [ ]High »
1414
*/
@@ -153,16 +153,16 @@
153153

154154
/** Probing for webshells/backdoors. */
155155
if ($Trigger(preg_match(
156-
'~(?:^|[/?])(?:[1-9cefimnptuwx]{27}\.jsp$)~',
156+
'~(?:^|[/?])(?:[1-9cefimnptuwx]{27}\.jsp|(?:send-)?ses\.sh)(?:$|[/?])~',
157157
$LCNrURI
158158
), 'Probing for webshells/backdoors')) {
159159
$CIDRAM['Reporter']->report([15, 20], ['Caught probing for webshells/backdoors. Host might be compromised.'], $CIDRAM['BlockInfo']['IPAddr']);
160-
} // 2024.02.18
160+
} // 2024.02.18 mod 2025.04.28
161161

162162
/** Probing for exposed Git data. */
163-
if ($Trigger(preg_match('~\.git(?:$|\W)~', $LCNrURI), 'Probing for exposed git data')) {
163+
if ($Trigger(preg_match('~\.git(?:config)?(?:$|\W)~', $LCNrURI), 'Probing for exposed git data')) {
164164
$CIDRAM['Reporter']->report([15, 21], ['Caught probing for exposed git data.'], $CIDRAM['BlockInfo']['IPAddr']);
165-
} // 2022.06.05 mod 2023.09.04
165+
} // 2022.06.05 mod 2025.04.28
166166

167167
/** Probing for exposed VSCode data. */
168168
if ($Trigger(preg_match('~(?:^|[/?])\.vscode(?:$|\W)~', $LCNrURI), 'Probing for exposed VSCode data')) {
@@ -175,9 +175,9 @@
175175
} // 2022.06.05 mod 2023.09.04
176176

177177
/** Probing for exposed AWS credentials. */
178-
if ($Trigger(preg_match('~(?:^|[/?])(?:\.aws/credentials?|aws\.yml)(?:$|\W)~', $LCNrURI), 'Probing for exposed AWS credentials')) {
178+
if ($Trigger(preg_match('~(?:^|[/?])(?:\.aws_?/credentials?|aws\.yml)(?:$|\W)~', $LCNrURI), 'Probing for exposed AWS credentials')) {
179179
$CIDRAM['Reporter']->report([15, 21], ['Caught probing for exposed AWS credentials.'], $CIDRAM['BlockInfo']['IPAddr']);
180-
} // 2023.09.04 mod 2024.05.14
180+
} // 2023.09.04 mod 2025.04.28
181181

182182
/** Probing for exposed FTP credentials. */
183183
if ($Trigger(preg_match('~(?:^|[/?])\.?s?ftp-(?:config|sync)\.json(?:$|[/?])~', $LCNrURI), 'Probing for exposed FTP credentials')) {
@@ -200,9 +200,9 @@
200200
} // 2024.05.02 mod 2025.03.18
201201

202202
/** Probing for env file. */
203-
if ($Trigger(preg_match('~(?:^|[/?])\.env(?:\.(?:production|example))?(?:$|[/?])~', $LCNrURI), 'Probing for env file')) {
203+
if ($Trigger(preg_match('~(?:^|[/?])(?:config)?\.env(?:\.(?:example|local|production|save))?(?:$|[/?])~', $LCNrURI), 'Probing for env file')) {
204204
$CIDRAM['Reporter']->report([15, 21], ['Caught probing for env file.'], $CIDRAM['BlockInfo']['IPAddr']);
205-
} // 2025.03.18
205+
} // 2025.03.18 mod 2025.04.28
206206

207207
/** Attempts by broken bot to incorrectly access ReCaptcha files (treating reference to remote resource as local). */
208208
$Trigger(preg_match('~/www\.google\.com/recaptcha/api\.js(?:$|[/?])~', $LCNrURI), 'Bad request'); // 2025.03.03

modules/modules.dat

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ module_cookies.php:
239239
module_extras.php:
240240
Name: "Optional security extras module"
241241
False Positive Risk: "Medium"
242-
Version: "2025.106.0"
242+
Version: "2025.117.0"
243243
Dependencies:
244244
PHP: "^5.4|^7|^8"
245245
CIDRAM Core: "^1.13.1|^2.0.1"
@@ -254,7 +254,7 @@ module_extras.php:
254254
- "module_extras.php"
255255
- "module_extras.yaml"
256256
Checksum:
257-
- "5997220ae3d4aa9995ac56cee3795aa8ed37c0d95cf697e610c0313095c9968f:30658"
257+
- "2083205265631b783a5b8c738cca97e6319dfcd8d13add72fc4afae1ef563fec:30750"
258258
- "7b891d1fa4b1c52c410220bc758e8cb7064bd6040430fb149a5b60e9ae2e0838:890"
259259
Used with: "modules"
260260
Reannotate: "modules.dat"

0 commit comments

Comments
 (0)