ministryofjustice / modernisation-platform

A place for the core work of the Modernisation Platform • This repository is defined and managed in Terraform
https://user-guide.modernisation-platform.service.justice.gov.uk
MIT License
680 stars 289 forks source link

Enable AWS Organisations integration to link root account with Cortex XSIAM #7897

Closed richgreen-moj closed 1 month ago

richgreen-moj commented 2 months ago

User Story

As a SOC engineer I want to enrich the information in security alerts in Cortex XSIAM So that I have more detailed information e.g. can identify which application/owner is affected

Value / Purpose

Following some engagement with the SOC in https://github.com/ministryofjustice/modernisation-platform/issues/7605 it was decided that we should explore using the AWS Organisations Integration to link the root account (MOJ Master) with Cortex XSIAM as the SOC feel this would better enrich the info in the alerts they are getting for AWS accounts.

Useful Contacts

@ashwinmoj @richgreen-moj @davidkelliott

Additional Information

For more context contact Ashwin John ashwinmoj

This will also require input from the root account team #aws-root-account in slack

Definition of Done

ashwinmoj commented 1 month ago

I will be on annual leave for two weeks starting from next week and will return on September 30th. During my absence, @YasJustice/ yaasseen.aumeer@justice.gov.uk from the MIP team will be available for any assistance or inquiries related to these tickets.

richgreen-moj commented 1 month ago

Documentation has been reviewed. The guide says: "When self hosted outside the AWS environment in a remote network, the AWS Integrations should use: Access Key and Secret Key authentication option." As Cortex XSIAM is hosted outside of AWS we will need to follow this strategy.

richgreen-moj commented 1 month ago

I raised Add Cortex XSOAR Integration User ministryofjustice/aws-root-account#993 to create a user with read/list only permissions to the organizations account.

I am reaching out to yaasseen.aumeer@justice.gov.uk to discuss exchanging some access keys and creating the integration in the Cortex XSOAR app.

richgreen-moj commented 1 month ago

Having created a user with relevant permissions in the moj-master account, @ewastempel generated a set of keys so that I could share them with Yaasseen.

We set up the integration over a teams call and Yaasseen tested it by querying the org. He was able to retrieve a list of all the AWS accounts in the organisation and their respective tags etc. directly in the XSIAM app 👍

I'll raise a follow-on ticket for looking at how we approach the long-term management of identities shared with the XSIAM app going forward.

richgreen-moj commented 1 month ago

Follow-on issue raised to look at long-term management of credentials https://github.com/ministryofjustice/modernisation-platform-security/issues/24

Khatraf commented 1 month ago

Reviewed – All criteria in the definition of done have been met, and user have confirmed that everything works as intended. I have verified that their access keys were used today and that they have been assigned read-only permissions to AWS Org so I'm happy to close this.