Skip to main content

file-enrichment

This Script is part of the Aggregated Scripts Pack.#

Supported versions

Supported Cortex XSOAR versions: 6.10.0 and later.

This script gathers for reputation data from multiple integrations and returns a "FileEnrichment" object with consolidated information in the context output. The script runs core-get-hash-analytics-prevalence on SHA256 values only.

Script Data#


NameDescription
Script Typepython3
Tagsbasescript
Cortex XSOAR Version6.10.0

Used In#


This script is used in the following playbooks and scripts.

  • FileEnrichment - Test

Inputs#


Argument NameDescription
file_hashA comma-separated list of File hashes to enrich. Supported types are: MD5, SHA1, SHA256, and SHA512.
external_enrichment"Whether to call external integrations for enrichment:
- 'true': enrich using all enabled integrations (e.g., VirusTotal (API v3), AlienVault OTX v2).
- 'false': Will enrich using only WildFire-v2 if available; skip external integrations.
If the 'brands' argument is provided, this flag is ignored and enrichment is run only on the brands provided."
verboseRetrieve a human-readable entry for each command; if false, only the final result is summarized.
brandsA list of integration brands to run enrichment against.
Example: `"AlienVault OTX v2", "WildFire-v2"`.
- If provided, only the selected brands are used.
- If left empty, the script runs enrichment on all enabled integrations,
depending on the `external_enrichment` flag.
- In order to run core-get-hash-analytics-prevalence, add Cortex Core - IR to the brands list (will run only on SHA256 values).
To see the available brands for the `file` command, run: `!ProvidesCommand command=file`.
additional_fieldsWhen set to true, the output includes an `AdditionalFields` object
for each of the indicator results.
`AdditionalFields` contains all fields returned by TIM or the integrations
that are not part of the standard output keys: `MD5`, `SHA1`, `SHA256`, `SHA512`, `CRC32`, `CTPH`, `SSDeep`, `ImpHash`,
`SourceTimeStamp`, `Modified`, `Path`, `Size`, `FileExtension`, `AssociatedFileNames`, `Brand`, `Score`.
When set to false, only the standard keys are returned.

Outputs#


PathDescriptionType
FileEnrichment.ValueThe File hash from the input Value.String
FileEnrichment.Hashes.MD5The file MD5 hash if exists.String
FileEnrichment.Hashes.SHA1The file SHA1 hash if exists.String
FileEnrichment.Hashes.SHA256The file SHA256 hash if exists.String
FileEnrichment.Hashes.SHA512The file SHA512 hash if exists.String
FileEnrichment.Hashes.CRC32The file CRC32 hash if exists.String
FileEnrichment.Hashes.CTPHThe file CTPH hash if exists.String
FileEnrichment.Hashes.SSDeepThe file SSDeep hash if exists.String
FileEnrichment.Hashes.ImpHashThe file ImpHash hash if exists.String
FileEnrichment.MaxScoreThe max score of all the indicators found.Number
FileEnrichment.MaxVerdictThe max verdict of all the indicators found.String
FileEnrichment.ResultsList of all indicators found for the URL.Array
FileEnrichment.TIMScoreThe TIM score of the URL.Number
FileEnrichment.StatusThe status of the indicator: "Manual" if the score was changed manually, "Fresh" if modified within the last week, "Stale" if modified more than a week ago, and "None" if never modified.String
FileEnrichment.ModifiedTimeThe time the indicator was last modified.Date
FileEnrichment.Results.BrandThe brand of the indicator.String
FileEnrichment.Results.ScoreThe score of the indicator.Number
FileEnrichment.Results.VerdictThe verdict of the indicator.String
FileEnrichment.Results.DetectionEnginesThe detection engines of the indicator.Number
FileEnrichment.Results.PositiveDetectionsThe positive detections of the indicator.Number
FileEnrichment.Results.MD5The file MD5 hash if exists.String
FileEnrichment.Results.SHA1The file SHA1 hash if exists.String
FileEnrichment.Results.SHA256The file SHA256 hash if exists.String
FileEnrichment.Results.SHA512The file SHA512 hash if exists.String
FileEnrichment.Results.CRC32The file CRC32 hash if exists.String
FileEnrichment.Results.CTPHThe file CTPH hash if exists.String
FileEnrichment.Results.SSDeepThe file SSDeep hash if exists.String
FileEnrichment.Results.ImpHashThe file ImpHash hash if exists.String
FileEnrichment.Results.ReliabilityThe reliability of the Brand.String
FileEnrichment.Results.AdditionalFields.NameThe name of the file including its extension.String
FileEnrichment.Results.AdditionalFields.EntryIDThe identifier used to locate the file in the Incident War Room.String
FileEnrichment.Results.AdditionalFields.ActorThe threat actor associated with the file, if applicable.String
FileEnrichment.Results.AdditionalFields.behavior.detailsA brief description of the behavior exhibited by the file.String
FileEnrichment.Results.AdditionalFields.behavior.titleA brief description of the behavior exhibited by the file.String
FileEnrichment.Results.AdditionalFields.CampaignThe identified campaign associated with the file, if applicable.String
FileEnrichment.Results.AdditionalFields.CommunityNotes.noteCommunity-contributed notes regarding observations or findings related to the file.String
FileEnrichment.Results.AdditionalFields.CommunityNotes.timestampThe timestamp when the community note was added.Date
FileEnrichment.Results.AdditionalFields.CompanyThe name of the company that released a binary.String
FileEnrichment.Results.AdditionalFields.DigitalSignature.PublisherThe entity that issued the digital signature of the file.String
FileEnrichment.Results.AdditionalFields.ExtensionThe file extension, indicating the type of file format, for example, 'exe'.String
FileEnrichment.Results.AdditionalFields.FeedRelatedIndicators.valueShows other indicators associated with the file.String
FileEnrichment.Results.AdditionalFields.FeedRelatedIndicators.typeIdentifies the types of associated indicators.String
FileEnrichment.Results.AdditionalFields.FeedRelatedIndicators.descriptionDescribes the associated indicators providing context or relevance.String
FileEnrichment.Results.AdditionalFields.FirstSeenBySourceThe first time seen by the source brand.Date
FileEnrichment.Results.AdditionalFields.GlobalPrevalenceThe global prevalence of the file hash.Number
FileEnrichment.Results.AdditionalFields.HostnameThe hostname of the device where the file was found.String
FileEnrichment.Results.AdditionalFields.LastSeenBySourceThe last time seed by the source brand.Date
FileEnrichment.Results.AdditionalFields.Malicious.VendorSpecifies the vendor that identified the file as malicious.String
FileEnrichment.Results.AdditionalFields.Malicious.DescriptionFor malicious files, the reason that the vendor made the decision.Unknown
FileEnrichment.Results.AdditionalFields.Malicious.DetectionsFor malicious files, the total number of detections.Unknown
FileEnrichment.Results.AdditionalFields.Malicious.TotalEnginesFor malicious files, the total number of engines that checked the file hash.Unknown
FileEnrichment.Results.AdditionalFields.VTVendors.EngineDetectionsNumber of VT vendors that flagged the file as malicious.Unknown
FileEnrichment.Results.AdditionalFields.VTVendors.EngineVendorsVT vendors who flagged the file as malicious.Unknown
FileEnrichment.Results.AdditionalFields.VTVendors.EngineDetectionNamesVT detection names that flagged the file as malicious.Unknown
FileEnrichment.Results.AdditionalFields.MalwareFamilyNames the malware family associated with the file, if known.String
FileEnrichment.Results.AdditionalFields.OrganizationThe organization to which the file is attributed.String
FileEnrichment.Results.AdditionalFields.OrganizationFirstSeenThe date and time when the indicator was first seen in the organization.Date
FileEnrichment.Results.AdditionalFields.OrganizationLastSeenThe date and time when the indicator was last seen in the organization.Date
FileEnrichment.Results.AdditionalFields.OrganizationPrevalenceThe number of times the indicator is detected in the organization.Number
FileEnrichment.Results.AdditionalFields.ProductNameThe file product name.String
FileEnrichment.Results.AdditionalFields.Publications.sourceIdentifies the publishing source of an article relating to the file.String
FileEnrichment.Results.AdditionalFields.Publications.titleIdentifies the publishing source of an article relating to the file.String
FileEnrichment.Results.AdditionalFields.Publications.linkProvides a hyperlink to the full article or publication for detailed information.String
FileEnrichment.Results.AdditionalFields.Publications.timestampPublications.timestampDate
FileEnrichment.Results.AdditionalFields.QuarantinedIndicates whether the file has been quarantined to prevent potential harm.Bool
FileEnrichment.Results.AdditionalFields.Relationships.EntityAThe initiating entity in a relationship involving the file.String
FileEnrichment.Results.AdditionalFields.Relationships.EntityBThe recipient or target entity in a relationship involving the file.String
FileEnrichment.Results.AdditionalFields.Relationships.RelationshipDefines the type or nature of the relationship between entities.String
FileEnrichment.Results.AdditionalFields.Relationships.EntityATypeThe type or classification of the initiating entity.String
FileEnrichment.Results.AdditionalFields.Relationships.EntityBTypeThe type or classification of the recipient entity.String
FileEnrichment.Results.AdditionalFields.Signature.AuthentihashThe Authentihash, a cryptographic hash, used for verifying the file's authenticity.String
FileEnrichment.Results.AdditionalFields.Signature.DescriptionDescribes the file signature data relevant to identification.String
FileEnrichment.Results.AdditionalFields.Signature.FileVersionIndicates the version number of the file.String
FileEnrichment.Results.AdditionalFields.Signature.InternalNameThe internal name of the file as designated by the creators.String
FileEnrichment.Results.AdditionalFields.Signature.OriginalNameThe original name of the file before any changes or renames.String
FileEnrichment.Results.AdditionalFields.TagsTags assigned to the file for categorization or identification.Array
FileEnrichment.Results.AdditionalFields.ThreatTypesThreat types associated with the file.Unknown
FileEnrichment.Results.AdditionalFields.TrafficLightProtocolSpecifies the TLP color designation suitable for handling the file.String
FileEnrichment.Results.AdditionalFields.TypeThe file type determined by libmagic.String
Core.AnalyticsPrevalence.Hash.valueWhether the hash is prevalent or not.Boolean
Core.AnalyticsPrevalence.Hash.data.global_prevalence.valueThe global prevalence of the hash.Number
Core.AnalyticsPrevalence.Hash.data.local_prevalence.valueThe local prevalence of the hash.Number
Core.AnalyticsPrevalence.Hash.data.prevalence.valueThe prevalence of the hash.Number