Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating rule: attachment_pdf_with_google_ae_redirect.yml #809

Merged
merged 3 commits into from
Sep 26, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions detection-rules/attachment_pdf_with_google_ae_redirect.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: "PDF attachment with Google (AE) redirecting to a php file"
description: "Detects a PDF attachment with a link that contains a Google.ae redirect URL"
name: "PDF attachment with Google (AE) redirecting to a php or zip file"
description: "Detects a PDF attachment with a link that contains a Google.ae redirect URL."
references:
- "https://twitter.com/Cryptolaemus1/status/1649200761610571776?s=20"
- "https://analyzer.sublime.security?id=142822c9-8195-47bd-96e3-b8a26267c03c"
Expand All @@ -13,8 +13,11 @@ source: |
any(.scan.pdf.urls,
// url encoded q=http
strings.starts_with(.query_params, "q=%68%74%74%70")
// url encoded .php
and strings.contains(.query_params, ".%70%68%70")
// url encoded .php or .zip
and (
strings.contains(.query_params, ".%70%68%70")
or strings.contains(.query_params, "%2e%7a%69%70")
)
and .domain.root_domain == "google.ae"
)
)
Expand Down