Alert.png The wiki is deprecated and due to be decommissioned by the end of September 2022.
The content is being migrated to other supports, new updates will be ignored and lost.
If needed you can get in touch with EGI SDIS team using operations @ egi.eu.

Difference between revisions of "SEC01"

From EGIWiki
Jump to navigation Jump to search
(Deprecate page, content moved to EGIPP space in confluence)
Tag: Replaced
 
(22 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{Template:Op menubar}}
{{Template:Op menubar}}
{{Template:Doc_menubar}}
{{Template:Doc_menubar}}
{{Template:Under_construction}}
{{TOC_right}}  
{{TOC_right}}  
[[Category:Operations Procedures]]
[[Category:Operations Procedures]]


{{Ops_procedures
{{DeprecatedAndMovedTo|new_location=https://confluence.egi.eu/display/EGIPP/SEC01+EGI+CSIRT+Security+Incident+Handling+Procedure}}
|Doc_title = EGI CSIRTSecurity Incident Handling Procedure
|Doc_link = https://documents.egi.eu/public/ShowDocument?docid=710
|Version = V5
|Policy_acronym = EGI-CSIRT
|Policy_name = EGI-CSIRT
|Contact_group = irtf@mailman.egi.eu
|Doc_status = DRAFT
|Approval_date =
|Procedure_statement =
}}
 
= Overview =
 
This procedure is aimed at minimising the impact of security incidents by encouraging post-mortem analysis and promoting cooperation between Resource Centers.<br />
It is based on the [https://documents.egi.eu/public/ShowDocument?docid=82 Security Incident Response Policy].
 
This incident response procedure is aiming at complementing local security procedures. Unless specified otherwise in separate service level agreements, all times in this document refer to normal local working hours.
 
This document is intended for Resource Center security contacts and administrators and is primarily aimed at reporting, investigating and resolving security incidents.
 
= Definitions =
 
Please refer to the [[Glossary|EGI Glossary]] for the definitions of the terms used in this procedure.
 
The key words &quot;MUST&quot;, &quot;MUST NOT&quot;, &quot;REQUIRED&quot;, &quot;SHALL&quot;, &quot;SHALL NOT&quot;, &quot;SHOULD&quot;, &quot;SHOULD NOT&quot;, &quot;RECOMMENDED&quot;, “MAY&quot;, and &quot;OPTIONAL&quot; in this document are to be interpreted as described in RFC 2119.
 
= Contact points =
 
* '''abuse at egi.eu''': Address to be used for reporting security Incident (In case of TLP:RED data, use GPG: A97F 3BDD F0EE 01A1 176C C13A 93BF 7F91 5696 F750)
* '''site-security-contacts at mailman.egi.eu''': Mailing list containing all Resource Center &quot;CSIRT E-Mail&quot; as defined in GOC-DB
 
= Entities involved in the procedure =
 
* '''EGI-CSIRT Security Officer on Duty''': irtf at mailman.egi.eu
* '''NGI Security Officer''': NGI Security E-Mail as defined in GOC-DB
* '''Resource Center''': RC CSIRT E-Mail as defined in GOC-DB
 
= Resource Center Responsibilities =
 
The following table describes the actions to be taken when an incident potentially affecting EGI users, data, services, infrastructure is '''suspected'''. Administrators are recommended to take note of every action (with timestamp) they take, for later analysis or legal cases.
[[Image:SEC01-RC.jpg|thumb|right]]
 
{| class="wikitable"
!Step
!Action
!Deadline
|-
|1
|Inform your local security team, your NGI Security Officer and the EGI CSIRT via [mailto:abuse@egi.eu abuse@egi.eu]. You are encouraged to use the [[EGI_CSIRT:Incident_reporting|recommended templates]].
|Within 4 hours of discovery
|-
|2
|Contain the incident while as far as possible preserving forensic data: Do NOT reboot or power off hosts. Do NOT destroy VMs. Isolate the compromised systems. Do NOT disconnect them from the network, unless you have to. If possible take a snapshot of the compromised systems. Consult with your local security team and the EGI CSIRT.
|Within 1 day of discovery
|-
|3
|Together with your local security team and the EGI CSIRT decide if it is an incident that requires further investigation or action.
|
|-
|4
|If applicable, announce downtime for the affected services in accordance with the [https://documents.egi.eu/public/ShowDocument?docid=15 EGI Operational Procedures]
|Within 1 day of isolation
|-
|5
|Perform appropriate analysis and take necessary corrective actions, see [[SEC01#Incident_Analysis_Guideline|Incident Analysis Guideline]]
|within 4 working hours of any EGI CSIRT request
|-
|6
|Coordinate with your local security team and the EGI CSIRT to send an incident closure report within 1 month of incident resolution to the EGI CSIRT via [mailto:abuse@egi.eu abuse@egi.eu], including lessons learnt and resolution. This report should be labelled AMBER or RED, according to the [[EGI_CSIRT:TLP|Traffic Light Protocol]].
|within 1 month of incident resolution
|-
|7
|Restore the service and, if needed, update the service documentation and procedures to prevent recurrence as necessary.
|
|}
 
= EGI-CSIRT Responsabilities =
 
== EGI-CSIRT Security Officer on Duty ==
The EGI-CSIRT Security Officer on Duty tasks are:
 
* Evaluate the initial incident report and determine whether it appears to be part of an incident covering multiple RCs, in particular, whether it is related to a previously known incident (e.g. do the same attacking IP addresses appear, are the attacker's tools and methodology strongly similar):
** If this is a new, unrelated incident, assign an identifying tag (of the format [EGI-YYYYMMDD-NN]) to the incident and announce it to all RCs via [mailto:site-security-contacts@mailman.egi.eu site-security-contacts@mailman.egi.eu], all NGIs via <INSERT NGI MAIL HERE> and the EGI CSIRT via csirt@egi.eu using the [[EGI_CSIRT:Incident_reporting|recommended templates]].
** If the incident is part of an incident covering multiple RCs, the incident coordinator MAY choose not to announce each incident separately, but instead issue regular updates on the overall incident.
* When appropriate, send updated:
** Summary reports to all RCs ([mailto:site-security-contacts@mailman.egi.eu site-security-contacts@mailman.egi.eu]) <AND ALL>, containing the status of the incident and indicators of compromise that can be used by RCs to evaluate their implication
** detailed reports to the RCs directly involved and affected by the incident, containing interesting findings or possible leads that could be used to resolve the incident
* If malicious behaviour or a policy violation can be linked to a user account or identity:
** Add the account or identity to the emergency suspension list following the [[SEC04|appropriate procedure]].
** If applicable, report the incident to the VO providing access. Contact information can be found here:  https://operations-portal.egi.eu/vo/security
** Without hindering the investigation, verify the legitimacy or otherwise of the activity with the owner of the account or identity
* If user credentials have been exposed or compromised, report it to the relevant credential provider. In particular, CA contacts are available on https://www.eugridpma.org/showca.
* When suspended accounts or identities no longer represent a threat, typically when the incident is resolved and compromised credentials have been re-issued, remove them from the emergency suspension list
* When a virtual appliance is identified as being vulnerable or malicious, ensure that:
** Its endorsement is revoked <LINK>
** All instantiated and running VMs using this virtual appliance are properly handled
* Based on the incident closure report received from the affected RC, send a closure report with the relevant information to all partners.
* Take any appropriate actions in order to:
** Actively stimulate and probe the affected parties to obtain accurate information at an appropriate level of detail and in a timely manner.
** Investigate to determine the cause and extent of the incident, what assets have been compromised (credentials etc.), and how to resolve the incident.
** Help involved RCs to resolve the incident by providing recommendations, promoting collaboration with other RCs and periodically checking their statuses.
** Maintain communications with any other involved parties inside and outside EGI.
 
== EGI-CSIRT Security Incident Coordinator ==
 
In addition, the EGI CSIRT appoints a security incident coordinator for each incident, responsible for:
 
* Ensuring that the investigation does not stall
* Ensuring that information is properly logged
* Conducting a debriefing after the investigation is complete.
 
= Incident Analysis Guideline =
 
As part of the security incident resolution process, RCs are expected to produce the following information:
 
* Who/how detected or reported the incident
* Host(s) affected (ex: compromised hosts, hosts running suspicious user code)
* Evidence of the compromise, including timestamps (ex: suspicious files,log entry or network activity)
* The actions taken to resolve the incident
* When applicable/available:
** Possibly affected X509 certificate DNs of the user(s), operator(s), consumer(s)
** Host(s) used as a local entry point to the RC (ex: UI or WMS IP address)
** Remote IP address(es) of the attacker
** The virtual appliance used to instantiate any affected virtual machine.
** What was lost, details of the attack (ex: compromised credentials, (root) compromised host)
** Any remote IP you suspect to be affected
** Vulnerabilities possibly exploited by the attacker
 
RCs are also expected to:
* Report any action taken to the EGI CSIRT as often as necessary
* Identify and kill suspicious process(es) as appropriate, but aim at preserving the information they could have generated, both in memory and on disk by dumping them beforehand, see [[Forensic_Howto|Forensic_Howto]]
* If it is suspected that any credentials have been abused or compromised, you MUST inform the EGI CSIRT who take appropriate action. Inform the EGI CSIRT of any direct contact with the involved VO, CA or any other credential provider.
* If it is suspected that a virtual appliance used to instantiate an affected virtual machine is vulnerable or malicious, you MUST report it to the EGI CSIRT.
* Seek help from your local security team, from your NGI Security Officer or from the EGI CSIRT
* If relevant, additional reports containing suspicious patterns, IP addresses, files or evidence that may be of use to other infrastructure parties SHOULD be sent to the EGI CSIRT.
 
 
As part of the investigations, RCs MUST be able to provide the relevant logging information produced by local services. Logging information such as IP addresses, timestamps and identities involved etc., concerning the source of any suspicious successful connection, must meet the following minimal requirements, if possible according to local laws:
 
* 6 months prior to the discovery of the incident for successful SSH connections against EGI services, and for the originating submission host for grid jobs or virtual machines
* 3 months prior to the discovery of the incident for all other EGI related services.
 
= Revision History =
 
{| class="wikitable"
!Version
!Authors
!Date
!Comments
|-
|1
|Mingchao Ma/STFC
|28/06/2011
|First Draft based on MS405, a few minor update, added appendix C and appendix D
|-
|2
|Mingchao Ma/STFC
|28/07/2011
|Addressed comments from Dorine
|-
|3
|Mingchao Ma/STFC
|11/10/2011
|Corrected a reference in the incident response check list (appendix D)
|-
|4
|Sven Gabriel/Nikhef/FOM
|26/05/2015
|Adjustments for IR in EGI Cloud environments
|-
|5
|Vincent Brillault/CERN
|Ongoing
|Adapted to the wiki format, several adjustment
|}

Latest revision as of 10:41, 10 December 2021