The sunburst_decode and sunburst_stage2 custom lookups decode Sunburst encoded DNS requests.
The special lookups expect specific data that has already been cleaned and/or aggregated.
Because some data spans multiple requests, the data should be aggregated as much as possible beforehand to have the best results.
This increases the amount of SPL required to decode the DGA queries, but it provides more flexibility.
query="*.appsync-api.*.avsvmcloud.com" | lookup sunburst_decode encoded AS query OUTPUT decoded | makemv delim=";" decoded | eval guid = mvindex(decoded, 0) | eval decoded_domain = case(mvcount(decoded)=4, mvindex(decoded, 1)) | eval decode_method = case(mvcount(decoded)=4, mvindex(decoded, 2)) | eval decode_index = case(mvcount(decoded)=4, mvindex(decoded, 3)) | eval stage2_time = case(mvcount(decoded)=3, mvindex(decoded, 1)) | eval stage2_info = case(mvcount(decoded)=3, mvindex(decoded, 2)) | makemv delim="|" stage2_info | fieldformat stage2_time = strftime(stage2_time, "%c") | eval encoded_values = case(isnotnull(decode_index), substr(mvindex(split(encoded, "."), 0), 17, 64)) | eventstats values(encoded_values) as encoded_values by guid | eval subs_encoded = case(NOT match(encoded_values, "^00"), encoded_values) | eval base32_encoded = case(match(encoded_values, "^00"), encoded_values) | mvcombine delim="|" base32_encoded | nomv base32_encoded | lookup sunburst_b32_decode_list encoded AS base32_encoded OUTPUT decoded AS b32_decoded | lookup sunburst_subs_decode_list encoded AS subs_encoded OUTPUT decoded AS subs_decoded | makemv delim=";" decoded_b32 | makemv delim=";" subs_decoded
This is an open source project, no support provided, public repository available.
The modified splunklib will be removed when the related issue with leading spaces is resolved.
- Initial release
Splunk AppInspect evaluates Splunk apps against a set of Splunk-defined criteria to assess the validity and security of an app package and components.
As a Splunkbase app developer, you will have access to all Splunk development resources and receive a 10GB license to build an app that will help solve use cases for customers all over the world. Splunkbase has 1000+ apps and add-ons from Splunk, our partners and our community. Find an app or add-on for most any data source and user need, or simply create your own with help from our developer portal.