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

Creating ip-src, ip-dst, and other attribute types beyond file, email, and domain-ip #249

Closed
hkelley opened this issue Oct 31, 2023 · 2 comments

Comments

@hkelley
Copy link

hkelley commented Oct 31, 2023

Skimming the code here:

https://github.com/remg427/misp42splunk/blob/f9a405aa2f4d6fc11d7821f5b5849188cfe46989/package/bin/misp42splunk/modalert_misp_alert_create_event_helper.py#L277C16-L277C16

we only seem to be able to create these three types of attributes:

        fo_template = init_object_template(helper, 'file')
        fo_attribute = []
        eo_template = init_object_template(helper, 'email')
        eo_attribute = []
        no_template = init_object_template(helper, 'domain-ip')
        no_attribute = []

Generic IPs can be handled by domain-ip but it would be more useful if we could also target ip-src and ip-dst, which are (at least in my experience) more commonly used in threat feeds.

@remg427
Copy link
Owner

remg427 commented Oct 31, 2023 via email

@hkelley
Copy link
Author

hkelley commented Nov 1, 2023

Terrific, that works.

| eval misp_time=round(earliest,0) 
| eval misp_to_ids="True"
| strcat ISP " ASN: " ASN " " src_ip attribute misp_comment
| rename src_ip as misp_ip_src
| sendalert misp_alert_create_event param.misp_instance=MISP_Feed param.eventid="9999" 

@hkelley hkelley closed this as completed Nov 1, 2023
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

No branches or pull requests

2 participants