Detections

Explore public detection logic contributed by the community across SIEM and rule languages.

4 detections

Detects Ghostscript or ImageMagick (magick, convert, mogrify, montage, identify, including the Debian/Ubuntu versioned binaries such as convert-im6.q16 and magick-im7.q16hdri) creating or modifying a file that a document renderer should never write: server-side scripts (.php/.phtml/.phar/.jsp/.aspx/.cgi/.pl/.py/.sh), shared objects, SSH authorized_keys, cron and systemd units, shell profiles, or /etc/ld.so.preload. It also matches the /var/tmp/GS_CUPS_PIPE_RCE marker path from the public Debian CUPS proof chain, written by any process.

After the Upload2Shell -dSAFER escape, Ghostscript can write files as the rendering account. In pwn.ai's WordPress renderer test it wrote a PHP file as www-data, which gives a persistent web shell. Equixly's guidance is to alert on gs processes run by a web, mail or print account that write outside their temporary directory. This rule also covers cases where Ghostscript is embedded as a library in ImageMagick, so the write is attributed to magick/convert instead of a separate gs process.

Data source: file creation/modification events with process attribution (auditd, Sysmon for Linux EID 11, EDR) normalized to UDM.

Validated with regex unit tests: 9 writer-process cases (including symlink-resolved IM6/IM7 binary names) and 10 target-path cases, all passing.
GlassDiceBearhttps://www.dicebear.comhttps://creativecommons.org/publicdomain/zero/1.0/„Glass” (https://www.dicebear.com) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)
Tim Peck@timpeck
GlassDiceBearhttps://www.dicebear.comhttps://creativecommons.org/publicdomain/zero/1.0/„Glass” (https://www.dicebear.com) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)
Detections.ai Community
1 day ago
209
Detects a Ghostscript process (gs, gsc, gsx, gswin32c/gswin64c) launching a shell, a scripting interpreter, a network tool or a recon command.

Upload2Shell (CVE-2026-125396, Ghostscript before 10.08.0) is a use-after-free in the Type 1 font loader (.putgstringcopy / .forceput). A crafted PostScript, EPS or PDF file uses it to clear the native path_control_active flag and the PermitFileWriting/LockFilePermissions controls, which turns off -dSAFER from inside the interpreter. It then opens a %pipe% file, which Ghostscript runs through popen(), so a /bin/sh -c child appears as the rendering account. pwn.ai demonstrated command execution as www-data (WordPress, Roundcube, MediaWiki, DokuWiki), lp (Debian 13 CUPS via an anonymous IPP Print-Job) and application container users. The file doesn't need a PostScript extension: a .jpg/.png whose bytes are PostScript reaches gs through ImageMagick or Pillow.

Legitimate %pipe% printing is excluded only when the shell command is a bare lp/lpr call with no shell metacharacters (; | & ` $ ( ) < >), so a payload chained after a legitimate-looking lpr still alerts. Data source: Linux process telemetry (auditd execve, Sysmon for Linux, EDR) or Windows process creation normalized to UDM PROCESS_LAUNCH. This rule doesn't cover deployments where Ghostscript is linked into ImageMagick as a library and no gs process exists; use the companion file-write rule for those.

Validated with regex unit tests: 7 parent-path cases, 10 child-path cases and 10 exclusion cases (including chained-payload bypass attempts), all passing.
GlassDiceBearhttps://www.dicebear.comhttps://creativecommons.org/publicdomain/zero/1.0/„Glass” (https://www.dicebear.com) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)
Tim Peck@timpeck
GlassDiceBearhttps://www.dicebear.comhttps://creativecommons.org/publicdomain/zero/1.0/„Glass” (https://www.dicebear.com) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)
Detections.ai Community
1 day ago
308
This analytic finds a suspicious web request followed by shell or process execution on the same server within 15 minutes.
It combines a web signal with an endpoint signal. Investigate the request, the child process, and whether the application normally launches that process.
GlassDiceBearhttps://www.dicebear.comhttps://creativecommons.org/publicdomain/zero/1.0/„Glass” (https://www.dicebear.com) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)
Splunk Security@SplunkSecurity
GlassDiceBearhttps://www.dicebear.comhttps://creativecommons.org/publicdomain/zero/1.0/„Glass” (https://www.dicebear.com) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)
Splunk Security Content
1 day ago
005
This analytic identifies files uploaded over HTTP where Zeek reports PostScript content but the filename uses a common image or PDF extension. This content and filename mismatch can precede server-side document rendering. It does not establish exploitation; review nearby renderer and process activity.
GlassDiceBearhttps://www.dicebear.comhttps://creativecommons.org/publicdomain/zero/1.0/„Glass” (https://www.dicebear.com) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)
Splunk Security@SplunkSecurity
GlassDiceBearhttps://www.dicebear.comhttps://creativecommons.org/publicdomain/zero/1.0/„Glass” (https://www.dicebear.com) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)
Splunk Security Content
1 day ago
002
Page 1 of 1