Webserver Detection: SonicWall SSL VPN Jarrewrite Exploitation URI and User-Agent Payloads

Flags web requests to /cgi-bin/jarrewrite.sh with user-agent indicators consistent with command injection exploitation.

FreeReviewedSigma · High · v5
Category
webserver
Author
Florian Roth (Nextron Systems) (SigmaHQ), DRL 1.1
Published
2021-01-25
Updated
2026-07-31
title: "Webserver Detection: SonicWall SSL VPN Jarrewrite Exploitation URI and User-Agent Payloads"
id: 99987df5-daa9-418e-8caa-f29a494fbc1e
status: test
description: This rule flags likely exploitation attempts targeting SonicWall SSL VPN via requests to the '/cgi-bin/jarrewrite.sh' endpoint combined with suspicious user-agent payload patterns. Attackers may use shell metacharacters and command execution strings (e.g., ':;', '() {', '/bin/bash -c') to trigger unauthorized script execution. The detection relies on webserver request telemetry capturing the URL query and the User-Agent value.
references:
  - https://web.archive.org/web/20210126045316/https://darrenmartyn.ie/2021/01/24/visualdoor-sonicwall-ssl-vpn-exploit/
  - https://github.com/darrenmartyn/VisualDoor
  - https://github.com/SigmaHQ/sigma/blob/master/rules-emerging-threats/2021/Exploits/VisualDoor-Exploit/web_sonicwall_jarrewrite_exploit.yml
author: Florian Roth (Nextron Systems), Huntrule Team
date: 2021-01-25
modified: 2023-04-27
tags:
  - attack.t1190
  - attack.initial-access
  - detection.emerging-threats
logsource:
  category: webserver
detection:
  selection:
    cs-uri-query|contains: /cgi-bin/jarrewrite.sh
    cs-user-agent|contains:
      - :;
      - () {
      - /bin/bash -c
  condition: selection
falsepositives:
  - Unknown
level: high
license: DRL-1.1
related:
  - id: 6f55f047-112b-4101-ad32-43913f52db46
    type: derived