fullcourtdefense-cli 1.34.18 → 1.34.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actionPolicyEngine.js +2 -0
- package/dist/version.json +1 -1
- package/package.json +1 -1
|
@@ -7424,6 +7424,8 @@ function provenCompoundDownload(command, detectedUrl) {
|
|
|
7424
7424
|
const segments = splitShellSegments(command).filter((segment) => /\b(?:https?|s3|gs|ftp|sftp|smb):\/\//i.test(segment));
|
|
7425
7425
|
if (!segments.length || !command.includes(detectedUrl)) return false;
|
|
7426
7426
|
return segments.every((segment) => {
|
|
7427
|
+
const statusRead = /^\(((?:Invoke-WebRequest|iwr)\s+[^\r\n]+)\)\.(?:StatusCode|StatusDescription|RawContentLength)$/i.exec(segment);
|
|
7428
|
+
if (statusRead) segment = statusRead[1];
|
|
7427
7429
|
if (/[$`{}()<>;&]/.test(segment)) return false;
|
|
7428
7430
|
const pipeline = splitShellSegments(segment, true);
|
|
7429
7431
|
if (pipeline.slice(1).some((part) => !/^(?:Select-Object|Format-Table|Format-List)\s+[\w., *-]+$|^Out-Null$/i.test(part))) return false;
|
package/dist/version.json
CHANGED