A threat hunter wants to enrich firewall events with asset ownership data stored in a CSV lookup named asset_owners.csv, which maps dest_ip to owner and department. The lookup is already defined in transforms.conf. The hunter needs the owner and department fields added to each event. Which SPL search accomplishes this?
The lookup command matches the dest_ip field in the events against the lookup table's key field and outputs the owner and department fields. Because the lookup is defined in transforms.conf, the filename reference works and the OUTPUT clause specifies exactly which fields to add. This is the correct way to enrich events with the asset ownership data.
Why this answer
Field enrichment from a lookup table is performed with the lookup command, which matches a key field in the events to the lookup's key and adds specified output fields. Referencing the CSV filename works when the lookup is defined in transforms.conf, and the OUTPUT clause limits the added fields to owner and department. This is the standard, efficient method for enriching events with asset ownership data.
Exam trap
The trap here is using inputlookup or append to bring lookup data into the search, which reads the table as events instead of enriching the existing events with the lookup command.