Skip to content

Conversation

IndiaAce
Copy link
Member

@IndiaAce IndiaAce commented Aug 18, 2025

Description

From a runner, creating coverage for google classroom spoofing. Similar to Zoom Docs abuse.

Associated samples

Associated hunts

@IndiaAce IndiaAce requested a review from a team as a code owner August 18, 2025 15:03
@github-actions github-actions bot added the in-test-rules PR is in our testing suite to collect telemetry label Aug 18, 2025
github-actions bot added a commit that referenced this pull request Aug 18, 2025
github-actions bot added a commit that referenced this pull request Aug 21, 2025
github-actions bot added a commit that referenced this pull request Aug 21, 2025
@MSAdministrator
Copy link
Contributor

The following was supplied by a community member in Slack. Here's the MQL they provided:

type.inbound
and sender.email.email == "no-reply@classroom.google.com"
and any(file.explode(beta.message_screenshot()),
        // WhatsApp number regex
        (
          regex.icontains(.scan.ocr.raw,
                          '\+?([ilo0-9]{1}.)?\(?[ilo0-9]{3}?\)?.[ilo0-9]{3}.?[ilo0-9]{3}',
                          '\+?([ilo0-9]{1,2})?\s?\(?\d{3}\)?[\s\.\-⋅]{0,5}[ilo0-9]{3}[\s\.\-⋅]{0,5}[ilo0-9]{3}'
          )
          // phone number regex
          or regex.icontains(.scan.ocr.raw,
                             '\+?([ilo0-9]{1}.)?\(?[ilo0-9]{3}?\)?.[ilo0-9]{3}.?[ilo0-9]{4}',
                             '\+?([ilo0-9]{1,2})?\s?\(?\d{3}\)?[\s\.\-⋅]{0,5}[ilo0-9]{3}[\s\.\-⋅]{0,5}[ilo0-9]{4}'
          )
        )
)

The thread is here

@IndiaAce
Copy link
Member Author

The following was supplied by a community member in Slack. Here's the MQL they provided:

type.inbound
and sender.email.email == "no-reply@classroom.google.com"
and any(file.explode(beta.message_screenshot()),
        // WhatsApp number regex
        (
          regex.icontains(.scan.ocr.raw,
                          '\+?([ilo0-9]{1}.)?\(?[ilo0-9]{3}?\)?.[ilo0-9]{3}.?[ilo0-9]{3}',
                          '\+?([ilo0-9]{1,2})?\s?\(?\d{3}\)?[\s\.\-⋅]{0,5}[ilo0-9]{3}[\s\.\-⋅]{0,5}[ilo0-9]{3}'
          )
          // phone number regex
          or regex.icontains(.scan.ocr.raw,
                             '\+?([ilo0-9]{1}.)?\(?[ilo0-9]{3}?\)?.[ilo0-9]{3}.?[ilo0-9]{4}',
                             '\+?([ilo0-9]{1,2})?\s?\(?\d{3}\)?[\s\.\-⋅]{0,5}[ilo0-9]{3}[\s\.\-⋅]{0,5}[ilo0-9]{4}'
          )
        )
)

The thread is here

Thanks for this! Updating rule to contain the provided logic as an or statement to expand coverage.

github-actions bot added a commit that referenced this pull request Aug 25, 2025
github-actions bot added a commit that referenced this pull request Aug 25, 2025
…or phone numbers in the screenshot of attachments, specifically that mention whatapp
github-actions bot added a commit that referenced this pull request Sep 1, 2025
github-actions bot added a commit that referenced this pull request Sep 1, 2025
@IndiaAce IndiaAce added the review-needed Indicates that a PR is waiting for review label Sep 2, 2025
@aidenmitchell aidenmitchell added this pull request to the merge queue Sep 2, 2025
Merged via the queue into sublime-security:main with commit e8148e1 Sep 2, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in-test-rules PR is in our testing suite to collect telemetry review-needed Indicates that a PR is waiting for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants