TroubleShooting Qradar

Not something I intentionally wanted to test, but in experience working with Qradar in almost every single ; the regex engine would fail to capture for following given payload



<132>Sep 13 11:33:40 ossec-server ossec: Alert Level: 7; Rule: 50118 - Access attempt blocked by Mod Security.; Location: (WebServer) 10.10.81.169->/usr/local/apache2/logs/error_log; [Fri Sep 13 11:35:12.023246 2013] [:error] [pid 2668:tid 140049152734976] [client 10.10.80.21] ModSecurity: Access denied with code 403 (phase 1). Match of "rx ^%{tx.allowed_request_content_type}$" against "TX:0" required. [file "/usr/local/apache2/conf/modsecurity-crs/activated_rules/modsecurity_crs_30_http_policy.conf"] [line "64"] [id "960010"] [rev "2"] [msg "Request content type is not allowed by policy"] [data "application/octet-stream"] [severity "CRITICAL"] [ver "OWASP_CRS/2.2.8"] [maturity "9"] [accuracy "9"] [tag "OWASP_CRS/POLICY/ENCODING_NOT_ALLOWED"] [tag "WASCTC/WASC-20"] [tag "OWASP_TOP_10/A1"] [tag "OWASP_AppSensor/EE2"] [tag "PCI/12.1"] [hostname "test.solutions.com"] [uri "/"] [unique_id "UjKyIAoKUakAAApsvc4AAADA"]



rx ^%{tx.allowed_request_content_type}$
Given the text in bold payload writing regex to extract text in between special chars is NOT Possible at least in my own attempts. The payload extraction works here but you copy the same to extract property window it will FAIL.

Sample test.

EHLO h-67-102-43-6.nycm.ny.megapath.net
MAIL FROM: ameslano@heattreatmentchina.ru
RCPT TO:<hp_printer@test.gov.pk>
RCPT TO:<m.zafar@test.gov.pk>
RCPT TO:<poc@test.gov.pk>
DATA
Received:  from &nbsp;(192.168.1.207) by heattreatmentchina.ru (67.102.43.6) with  Microsoft SMTP Server id 8.0.685.24; Tue, 20 Aug 2013 08:47:14 -0500
Message-ID: <521370EC.205060@heattreatmentchina.ru

Regex:RCPT\sTO\:\s?\x3c(.*)(?=\x3e)

This regex will only match first extraction and fail at others. Such there is no way possible to extract to more then copy / matches.












7 comments:

  1. How to re-open closed offenses in QRadar?
    Reply

    ReplyDelete
  2. I don't think this can be done; a closed offense is purged from the offense table at the back-end DB (postgreSQL).

    Also, there is exists offense life-cycle (which is maximum 5 days) after which inactive offenses would be automatically purged or closed.

    ReplyDelete
  3. Thank you very much

    ReplyDelete
  4. I need help in integrating Symentac Dlp with Qradar, my packets are captured from symentac but unable to show in Qradar. I am unable to trouble shoot as well what is the main issue please help.

    ReplyDelete
  5. I need helpb to integrated TMG with QRadar, my packet are captured from TMG but I am not able to rcv URL kindly help

    ReplyDelete
  6. I need help to integrated TMG with QRadar, my packet are captured from TMG but I am not able to rcv URL kindly help

    ReplyDelete
  7. How do you troubleshoot Risk Manager Module on console? What are the main services on QRM? Whenever i try to access Risks tab, it will affect the whole GUI and i have to restart tomcat service on the console server.

    ReplyDelete