Skip to content
This repository was archived by the owner on Aug 1, 2019. It is now read-only.

Conversation

@jack1902
Copy link

corrected verify_required_parameters so that it checks for all properties correctly, if a single property is missing, then it returns false immediately to log out the message from this if/else block:

if verify_required_properties(deep_security_event):
    forward_event = evaluate_deep_security_event(deep_security_event)
    if forward_event:
        print("Important security event detected, queuing to send to AWS Security Hub")
        aff_event = convert_deep_security_event_to_aff(deep_security_event)
        aff_events.append(aff_event)
        forwarded_events += 1
    else:
        print("Security event does not meet the criteria to send to AWS Security Hub")
else:
    print("Specified event does not have the required properties to properly process it")

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant