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

Adding XL4MA Scanner #227

Merged
merged 1 commit into from
Sep 23, 2022
Merged

Adding XL4MA Scanner #227

merged 1 commit into from
Sep 23, 2022

Conversation

phutelmyer
Copy link
Contributor

@phutelmyer phutelmyer commented Sep 23, 2022

Describe the change
Add in XL4MA scanner which attempts to parse and extract Excel 4 macros.
Attempts to extract IOCs (e.g., IPs, Domains) from observed macros.

Describe testing procedures
Tested against several benign and malicious XLSX files with Excel macros.

Sample output

{
  "file": {
    "depth": 0,
    "flavors": {
      "mime": [
        "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
      ],
      "yara": [
        "zip_file",
        "excel4_file"
      ]
...
    "xl4ma": {
      "decoded": [
        "[REDACTED] ",
        "regsvr32.exe",
        "e",
        "empty",
        "mon, URLD",
        "=RETURN()",
        "101",
        "[REDACTED]",
        "[REDACTED] ",
        "False",
        "F",
        "O",
        "X",
        "ownloadToFil",
        "-",
        "i",
        "[REDACTED], ",
        "=",
        "x",
        "<",
        "U",
        "s",
        "C",
        "c",
        "d",
        ", JJCCBB",
        "114",
        ", ",
        "2",
        "D",
        "67",
        "..\\si.ocx",
        "#REF!",
        "3",
        "I",
        "111",
        ":",
        "=IF(FGTA6<0, CLOSE(0), )",
        "[REDACTED], ",
        "o",
        "w",
        "/",
        "B",
        "(",
        "R",
        "(url",
        "=EXEC(C:\\Windows\\SysWow64\\regsvr32.exe -s ..\\si.ocx)",
        "T",
        "\\",
        "SysWow64\\",
        "n",
        "-s",
        "\\Windows\\",
        "&",
        "E",
        "G",
        ".",
        "0",
        "J",
        "u",
        ")",
        "!",
        "61",
        "r",
        "1",
        "A",
        "L",
        "a",
        "8",
        "l",
        "m",
        "S",
        "[REDACTED], ",
        "..\\si.ocx",
        ", 0, 0)",
        "N",
        ", 0, "
      ],
      "elapsed": 0.291986,
      "iocs": [
        "http://[REDACTED]",
        "http://[REDACTED]",
        "http://[REDACTED]",
      ]
    }
...

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of and tested my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings

@phutelmyer phutelmyer merged commit d638b8d into master Sep 23, 2022
@phutelmyer phutelmyer deleted the scanner-xl4ma branch September 23, 2022 11:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant