dfir-iris / iris-web

Collaborative Incident Response platform
GNU Lesser General Public License v3.0
1.04k stars 164 forks source link

[IMP] Added owner email to Alert class. #598

Closed gbyx3 closed 1 day ago

gbyx3 commented 1 day ago

Available via association proxy so might be a bit unclear code wise. Also added a short comment.

Alert object

dir(alert[0])=['__abstract__', '__annotations__', '__class__', '__delattr__', '__dict__', '__dir__', '__doc__', '__eq__', '__format__', '__fsa__', '__ge__', '__getattribute__', '__gt__', '__hash__', '__init__', '__init_subclass__', '__le__', '__lt__', '__mapper__', '__module__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__slotnames__', '__str__', '__subclasshook__', '__table__', '__tablename__', '__weakref__', '_sa_class_manager', '_sa_instance_state', '_sa_registry', 'alert_classification_id', 'alert_context', 'alert_creation_time', 'alert_customer_id', 'alert_description', 'alert_id', 'alert_note', 'alert_owner_id', 'alert_resolution_status_id', 'alert_severity_id', 'alert_source', 'alert_source_content', 'alert_source_event_time', 'alert_source_link', 'alert_source_ref', 'alert_status_id', 'alert_tags', 'alert_title', 'alert_uuid', 'assets', 'cases', 'classification', 'comments', 'customer', 'iocs', 'metadata', 'modification_history', 'owner', 'query', 'query_class', 'registry', 'resolution_status', 'severity', 'status']

Owner

dir(alert[0].owner)=['__abstract__', '__annotations__', '__class__', '__delattr__', '__dict__', '__dir__', '__doc__', '__eq__', '__format__', '__fsa__', '__ge__', '__getattribute__', '__gt__', '__hash__', '__init__', '__init_subclass__', '__le__', '__lt__', '__mapper__', '__module__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__table__', '__tablename__', '__weakref__', '_sa_class_manager', '_sa_instance_state', '_sa_registry', 'active', 'api_key', 'ctx_case', 'ctx_human_case', 'email', 'external_id', 'get_id', 'has_deletion_confirmation', 'has_mini_sidebar', 'id', 'in_dark_mode', 'is_active', 'is_anonymous', 'is_authenticated', 'is_service_account', 'metadata', 'mfa_secrets', 'mfa_setup_complete', 'name', 'password', 'query', 'query_class', 'registry', 'save', 'user', 'uuid', 'webauthn_credentials']

Email alert[0].owner.email='administrator@localhost'

gbyx3 commented 1 day ago

This was a unnecessary change that did not add any thing new.