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

ScanMsi #237

Merged
merged 8 commits into from
Dec 8, 2022
Merged

ScanMsi #237

merged 8 commits into from
Dec 8, 2022

Conversation

phutelmyer
Copy link
Contributor

@phutelmyer phutelmyer commented Dec 7, 2022

Describe the change
This PR attempts to collect metadata for MSI files using Exiftool. The metadata includes information such as the name, author, create date, and other metadata contained in various MSI samples.

Note: This scanner is slightly redundant if also using the general Exiftool, this will allow users to store and search based on known keys in MSI files. Use this scanner if you do not wish to have ScanExiftool running in your instance.

Describe testing procedures
Tested against several MSI samples collected from VirusTotal. PyTest was generated and tested and is available in this PR.

Sample output

...
    "msi": {
      "Author": "Sun Technology Network",
      "CodePage": "Windows Latin 1 (Western European)",
      "Comments": "This installer database contains the logic and data required to install Oracle Java SE.",
      "CreateDate": "\"1260532064\"",
      "FileType": "FPX",
      "FileTypeExtension": "fpx",
      "Keywords": "Installer",
      "MIMEType": "image/vnd.fpx",
      "Pages": 200,
      "RevisionNumber": "{43BA06D9-9F1E-45FA-9015-AE0BACE44B5A}",
      "Security": "Read-only recommended",
      "Software": "Windows Installer XML Toolset (3.11.2.4516)",
      "Subject": "Oracle Java SE",
      "Template": ";1033",
      "Title": "Installation Database",
      "elapsed": 0.183507
    },
...

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 ae887ad into master Dec 8, 2022
@phutelmyer phutelmyer deleted the ScanMsi branch December 8, 2022 13:15
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