Security Operations
Evidence collection and handling
Section titled “Evidence collection and handling”Evidenceis information presented in a court of law to confirm or dispel a fact that’s under contention.
Types of Evidence
Section titled “Types of Evidence”- Sources of legal evidence that can be presented in a court of law generally falls into one of four major categories:
Direct Evidence: Oral testimony or a written statement based on information gathered through a witness’s five senses (in other words, an eyewitness account) that proves or disproves a specific fact or issue.Real (or physical) Evidence: Tangible objects from the actual crime, such as the tools or weapons used and any stolen or damaged property; may also include visual or audio surveillance tapes generated during or after the event. Physical evidence from a computer crime is not always available.Documentary Evidence: Includes originals and copies of business records, computer-generated and computer-stored records, manuals, policies, standards, procedures, and log files. Most evidence presented in a computer crime case is documentary evidence. The hearsay rule is an extremely important test of documentary evidence that must be understood and applied to this type of evidence.Demonstrative Evidence: Used to aid the court’s understanding of a case. Opinions are considered to be demonstrative evidence and may be expert (based on personal expertise and facts) or nonexpert (based on facts only). Other examples of demonstrative evidence includes models, simulations, charts, and illustrations.
- Other types of evidence that may fall into one or more of the major categories include:
Best evidence: Original, unaltered evidence, which courts prefer over secondary evidence.Secondary evidence: A duplicate or copy of evidence, such as a tape backup, screen capture, or photograph.Corroborative evidence: Evidence that supports os substantiates other evidence presented in a case.Conclusive evidence: Incontrovertible and irrefutable evidence.Circumstantial evidence: Relevant facts that can’t be directly or conclusively connected to other events, but about which a reasonable person can make a reasonable inference.
Rules of evidence
Section titled “Rules of evidence”Best Evidence Rule
Section titled “Best Evidence Rule”- The best evidence rule, defined in the US Federal Rules of Evidence, states that “to prove the content of a writing, recording, or photograph, the original writing, recording, or photograph is [ordinarily] required.”
- The Federal Rules of Evidence, however, define an exception to this rule as “[if] data are stored in a computer or similar device, any printout or other output readable by sight, shown to reflect the data accurately, is an ‘original’.”
- Thus, data extracted from a computer - if that data is a fair and accurate representation of the original data - satisfies the best evidence rule and may be introduced into court proceedings as such.
Hearsay Rule
Section titled “Hearsay Rule”Hearsay evidenceis evidence that’s not based on personal, firsthand knowledge of a witness but comes from other sources.- Under the Federal Rules of Evidence,
hearsay evidencenormally is notadmissiblein court. This rule exists to prevent unreliable testimony from improperly influencing the outcome of a trial. - Several courts have acknowledged that the
hearsay rulesare applicable tocomputer-stored recordscontaining human statements but are not applicable tocomputer-generated recordsuntouched by human hands. - Perhaps the most successful and commonly applied test of
admissibilityforcomputer records, in general, has been thebusiness records exception, established in theFederal Rules of Evidencefor records or regularly conducted activity that meet the following criteria:- Made at (contemporaneously) or near the time when the act occurred
- Made by a person who has knowledge of the business process or from information transmitted by a person who has knowledge of the business process
- Made and relied on during the regular conduct of business or in the furtherance of the business, as verified by the custodian or other witness who is familiar with the records’ use
- Kept for motives that tend to ensure their accuracy
- In the custody of the witness on a regular basis (as required by the chain of evidence)
- The
chain of evidenceestablishes accountability for the handling of evidence throughout the evidence life cycle.
Admissibility of Evidence
Section titled “Admissibility of Evidence”- To be admissible,
computer-generated evidencemust be:Relevant: It must tend to prove or disprove facts that are relevant and material to the case.Reliable: It must be reasonably proved that what is presented as evidence is what was originally collected and that the evidence itself is reliable. This proof is established in part through proper evidence handling and the chain of custody..Legally Permissible: It must be obtained through legal means. Evidence that’s not legally permissible may include evidence obtained through the following means:Illegal search and seizure: Law enforcement personnel must obtain a court order. But non-law enforcement personnel, such as a supervisor or system administrator, may be able to conduct an authorized search under some circumstances.Illegal wiretaps or phone taps: Anyone conducting wiretaps or phone taps must obtain a court order.EntrapmentorEnticement: Entrapment encourages a person to commit a crime that they may have had no intention of committing. Conversely, enticement lures a person toward certain evidence (e.g., honeypot) after they have already committed a crime. Enticement isn’t necessarily illegal, but it does raise certain ethical arguments and may not be admissible in court.Coercion: Coerced testimony or confessions are not legally permissible. Coercion involves compelling a person to provide evidence involuntarily through the use of threats, violence (torture), bribery, trickery, or intimidation.Unauthorized or improper monitoring: Active monitoring must be properly authorized and conducted in a standard manner; users must be notified that they may be subject to monitoring.
Chain of Custody and the Evidence Life Cycle
Section titled “Chain of Custody and the Evidence Life Cycle”- The
chain of custody(orchain of evidence) providesaccountabilityandprotectionforevidencethroughout itsentire life cycleand includes the following information, which is normally kept in anevidence log:People involved (who): Identify any and all people who discovered, collected, seized, analyzed, stored, preserved, transported, or otherwise controlled the evidence; also identify any witness or other people who were present during any of these activitiesDescription of evidence (what): Provide specific information about the evidence’s location when it was discovered, analyzed, stored, or transportedDate/time (when): Record the date and time when evidence is discovered, collected, seized, analyzed, stored, or transported; also record date-and-time information for any evidence log entires associated with the evidenceMethods used (how): Provide specific information about how evidence was discovered, collected, stored, preserved, or transported
- The
evidence life cycledescribes the various phases of evidence, from its initial discovery to its final disposition. Theevidence life cyclehas the following five stages:Collection and identificationAnalysisStorage, preservation, and transportationPresentation in courtFinal disposition, such as return to owner or destroy (for copies)
Collection and Evidence
Section titled “Collection and Evidence”Collecting evidenceinvolves taking thatevidenceinto custody.- In general, law enforcement officials can search and/or
seizecomputers and other electronic devices under any of four circumstances:VoluntaryorConsensual: The owner of the computer or electronic evidence can freely surrender the evidence.Subpoena: A court issues a subpoena to a person, ordering that person to deliver the evidence to the court.Search warrantorAnton Piller order: A search warrant is issued to a law enforcement official by the court, allowing that official to search and seize specific evidence. An Anton Piller order allows the premises to be searched and evidence seized without warning, usually to prevent possible destruction of evidence.Exigent circumstances: If possible causes exists and the destruction of evidence is imminent, that evidence may be searched or seized without a warrant.
- When evidence is
collected, it must bemarkedandidentifiedproperly to ensure that it can be presented in court properly asactual evidencegathered from the scene or incident. The collected evidence must be recorded in an evidence log with the following information:- A description of the piece of evidence, including specific information such as make, model, serial number, physical appearance, material condition, and preexisting damage
- The name(s) of the person or people who discovered and collected the evidence
- The exact date and time, specific location, and circumstances of the discovery/collection
- Additionally, the evidence must be
markedaccording to the following guidelines:Mark the evidence. If possible, without damaging the evidence, mark the piece of evidence with the collecting person’s initials, the date, and the case number (if known). Seal the evidence in an appropriate container, and again, mark the container with the same informationUse an evidence tag. If the actual evidence cannot be marked, attach an evidence tag with the information in the preceding item, seal the evidence, and tag it in an appropriate container, and mark the container with the same information.Seal the evidence. Seal the container with evidence tape, and mark the tape in a manner that will clearly indicate any tampering or altering of the evidence.Protect the evidence. Use extreme caution when collecting and marking evidence, to ensure that it’s not damaged. If you’re using plastic bags for evidence containers, make sure they’re static-free, to protect magnetic media.
Analysis
Section titled “Analysis”Analysisinvolves examining the evidence for information pertinent to the case.Analysisshould be conducted with extreme caution - and only be experienced properly trained personnel - to ensure the evidence is not altered, damaged, or destroyed.
Storage, Preservation, and Transportation
Section titled “Storage, Preservation, and Transportation”- All
evidencemust be stored properly in a secure facility and preserved to prevent damage or contamination from various hazards, including intense heat or cold, extreme humidity, water, magnetic fields, and vibration. Evidencenot properly protected may beinadmissiblein court, and the party responsible forcollectionandstoragemay be liable.- Care must be exercised during
transportationto ensure thatevidenceis notlost,temporarily misplaced,damaged, ordestroyed.
Presentation in Court
Section titled “Presentation in Court”Evidenceto be presented in court must continue to follow thechain of custodyand be handled with the same care at all other times in theevidence life cycle. This process continues throughout the trialuntil all testimony related to the evidence is completedand the trials hasconcluded, or the case is settled or dismissed.
Final Disposition
Section titled “Final Disposition”- After the conclusion of the trial or other disposition,
evidenceis normally returned to its proper owner. - Under some circumstances, however, certain
evidencemay beordered destroyed, such ascontraband,drugs, ordrug paraphernalia. - Any
evidenceobtained through asearch warrantis legally under the control of thecourt, possibly requiring theoriginal ownertopetitionthe court for its return.
Reporting and Documentation
Section titled “Reporting and Documentation”- Complete and accurate recordkeeping is critical to each investigation.
- An investigation’s report is intended to be a complete record of an investigation and usually includes:
- Incident investigators, including their qualifications and contact information
- Names of the parties interviewed, including their roles, involvement, and contact information
- List of all evidence collected, including chain(s) of custody
- Tools used to examine or process evidence, including versions
- Samples and sampling methodologies used, if applicable
- Computers used to examine, process, or store evidence, including a description of configuration
- Root-cause analysis of the incident, if applicable
- Conclusions and opinions of the investigators
- Hearings or proceedings
- Parties to whom the report is delivered
Investigative Techniques
Section titled “Investigative Techniques”- An
investigationshould begin immediately upon report of an allegedcomputer crime,policy violation, orincident. - Any
incidentshould be handled, at least initially, as acomputer crime investigationorpolicy violationuntil apreliminary investigationdetermines otherwise. - Various
investigative techniquesmay be required, depending on the goal of theinvestigationor applicable laws and regulations. - The
general stepsof theinvestigative processare:Detect and contain an incident. Early detection is critical to a successful investigation. Unfortunately,computer-related incidentsusually involvepassiveorreactivedetection techniques (such as the review ofaudit trailsandaccidental discovery), which often leave acold evidence trail. Containment minimizes further loss or damage. The computer incident response team (CIRT), normally is responsible for conducting an investigation. The CIRT should be notified or activated as quickly as possible after a computer crime is detected or suspected.Notify management. Management must be notified of any investigations as soon as possible. Knowledge of the investigations should be limited to as few people as possible and on aneed-to-knowbasis.Out-of-bandcommunication methods (reporting in person) should be used to ensure that an intruder does not intercept sensitive communications about the investigation.Conduct a preliminary investigation. This preliminary analysis determines whether an incident or crime actually occurred. Most incidents turn out to be honest mistakes rather the malicious conduct. This step includes reviewing the complaint or report, inspecting damage, interviewing witnesses, examining logs, and identifying further investigation requirements.Determine whether the organization should disclose that the crime occurred. First, and most important, determine whether laws or regulations require that organization to disclose a crime or incident. Next, by coordinating with a public relations or public affairs official of the organization, determine whether the organization wants to disclose this information.Conduct the investigation. Conducting the investigation involves three activities:Identify potential suspects. Potential suspects include organization insiders and outsiders. One standard discriminator that helps identify and eliminate potential suspects is theMOM(Motive,Opportunity, andMeans) test: Did the suspect have themotive,opportunity, andmeans?Identify potential witnesses. Determine whom can be interviewed and should conduct the interviews. One should be careful not to alert any potential suspects to the investigation; one needs to focus on obtaining facts, not opinions, in witness statements.Prepare for search and seizure. Identify the types of systems and evidence planned to be searched or seized, designate and train the search and seizure team members (normally, members of the CIRT), obtain and serve proper search warrants (if required), and determine the potential risk to the system during a search-and-seizure effort.
Report your findings. The results of the investigation, including evidence, should be reported to management and turned over to proper law enforcement officials or prosecutors as appropriate.
Digital forensics tools, tactics, and procedures
Section titled “Digital forensics tools, tactics, and procedures”Digital forensicsis the science of conducting a computer incident investigation to determine what has happened and who is responsible, and to collect legally admissible evidence for use in subsequent legal proceedings, such as criminal investigations, internal investigation, or lawsuit.- The types of
forensicdata-gathering techniquesinclude:Hard drive forensics: Specialized tools are used to create one or more forensically identical copies of a computer’s hard drive. A device called a write blocker is typically used to prevent any possible alterations to the original drive. Cryptographic checksums can be used to verify that a forensic copy is an exact duplicate of the original. Then tools are used to examine the contents of the hard drive to determine:Last known state of the computerHistory of files accessedHistory of files createdHistory of files deletedHistory of programs executedHistory of websites visited by a browserHistory of attempts by the user to remove evidence
Live forensics: Specialized tools are used to examine a running system, including:Running processesCurrently open filesContents of main storage (RAM)KeystrokesCommunications traffic in and out of the computer
Live forensicsare difficult to perform because the tools used to collect information can affect the system being examined.
Artifacts
Section titled “Artifacts”- Key
artifactsthat may be collected during an investigation may includedata,computers,mobile devices,servers(physical or virtual),network equipment(such as routers and switches), andsecurity equipment(such as firewalls). Theseartifactsmay containindicators of compromise(IoC) that can be preserved as evidence to support aninvestigation.
Conduct Logging and Monitoring Activities
Section titled “Conduct Logging and Monitoring Activities”Intrusion Detection and Prevention Systems (IDPs)
Section titled “Intrusion Detection and Prevention Systems (IDPs)”Intrusion detectionis apassive techniqueused to detectunauthorized activityon a network.- Three types of
Intrusion Detection Systems(IDSs) can be found in data centers:Network-based: Consists of a separate device attached to a network that listens to all network traffic by using various methods to detect anomalous activity.Host-based: A subset ofnetwork-basedIDS in which only the network traffic destined for a particular host is monitored.Wireless: Another type of network intrusion detection that focuses onwireless intrusionby scanning forrogue access points
- Both
network- andhost-basedIDSuse a couple of techniques:Signature-basedReputation-basedAnomaly-based
Security Information and Event Management (SIEM)
Section titled “Security Information and Event Management (SIEM)”Security Information and Event Management(SIEM) solutions providereal-timecollection, analysis, correlation, and presentation of security logs and alerts generated by various network sources.
Security Orchestration, Automation, and Response (SOAR)
Section titled “Security Orchestration, Automation, and Response (SOAR)”- A
Security Orchestration, Automation, and Response(SOAR) solution takes aSIEMone step further through the automation of repeatable tasks as a result of an event that has been detected.
Continuous Monitoring and Tuning
Section titled “Continuous Monitoring and Tuning”Egress Monitoring
Section titled “Egress Monitoring”Egress monitoring(orextrusion detection) is the process of monitoringoutbound trafficto discover potentialdata leakage(orloss).Data loss prevention(DLP) systems are often used to detect theexfiltrationofsensitive data, such asPersonally Identifiable Information(PII), orProtected Health Information(PHI) in email messages, data uploads, PNG or JPEG images, and other form of communication.DLPtechnologies performdeep packet inspection(DPI) to decrypt and inspectoutbound trafficthat isTLSencrypted.DLPsystems can be used to disable the use ofremovable media driver interfaceson servers and workstations, as well as toencrypt datawritten toremovable mediaso that only systems with the same organization’sDLPagent can read the contents of theremovable media drive.Static DLPtools are used todiscover sensitiveandproprietarydata indatabases,file servers, and otherdata storage systems.
Log Management
Section titled “Log Management”- To the greatest extent possible, log information should be synchronized to a
network time(NTP) server to ensure that log data from disparate sources can be correlated accurately. Logsshould be stored centrally and securely to ensure that the data collected is immutable and can be readily ingested into various security analytics platforms,SIEMsolutions, and other security tools forlog aggregation,analysis, andcorrelation.- Appropriate
retention periodsforlog informationshould be defined and implemented based on legal or regulatorycompliance requirements.
Threat Intelligence
Section titled “Threat Intelligence”- Security analysts may use tools to proactively search for perviously unknown
Indicators of Compromise(IoC) or ongoing (unremediated) threats in an activity known asthreat hunting. - Machine-readable
threat intel feedsuse any of several formats, includingCSV,Structured Threat Information Exchange(STIX),Extensible Markup Language(XML),JSON,Open Indicators of Compromise(OpenIOC), andTrusted Automated Exchange of Indicator Information(TAXII). Threat inteltools enable an organization to detect thetactics,techniques, andprocedures(TTPs) thatthreat actorsuse to attack networks and systems.
Perform Configuration Management (CM)
Section titled “Perform Configuration Management (CM)”- Security planning and analysis must be integral part of every organization’s resource
provisioningprocesses, as well as throughout thelife cycleof all resources. Important security considerations include:Provisioning: Security should be consulted any time the organization is considering introducing new equipment, such as a Wi-Fi access point or network router from a manufacturer whose products have not previously been deployed in the environment. This approach ensures that security can assess any known risks associated with the new equipment and its impact on the organization’s overall security posture.Asset management (or inventory): Maintaining a complete, accurateinventoryis critical to ensure that all potential vulnerabilities and risks in an environment can be identified, assessed, and addressed.Baselining: Establishing a baseline helps security teams tune security events and alerts that are received and can also be used to feeduser and entity behavior analysis/capabilities (UEBA)in security tools deployed throughout the environment.Change management: Change management processes are used to strictly control changes to systems in production environments so that only duly requested and approved changes are made.Configuration management: Configuration management processes need to be implemented and strictly enforced to ensure that information resources are operated in a safe and secure manner. Organizations typically implement anautomated configuration management database(CMDB) that is part of a system configuration management system used to manage asset inventory data. Often, this database is also used to manage the configuration history of systems.Drift: In the context of configuration management, drift is the gradual change in a system’s configuration from an established baseline or standard.Physical assets: Physical assets must be protected against loss, damage, or theft. Valuable or sensitive data stored on physical asset may far exceed the value of the asset itself.Virtual assets:VM sprawlhas increasingly become an issue for organizations with the popularity ofvirtualizationtechnology andsoftware-defined networks(SDN).Cloud assets: It is important to keep track of cloud assets, such asSaaS,PaaS, andIaaSsolutions. Ultimately, an organization is the one responsible for the security and privacy of its applications and data - not the cloud service provider. Issues of data residency and transborder data flow need to be considered.Cloud access security brokers(CASB), can detect access and use ofcloud-based services.CASBsgive an organization more visibility into its sanctioned and unsanctioned use of cloud services.Applications: This category includes commercial and custom applications, private clouds, web services, SaaS products, and the interfaces and integrations among application components. Securing the provisioning of these assets requires strict access controls; only designated administrators should be able to deploy and configure them.Automation
Apply Foundational Security Operations Concept
Section titled “Apply Foundational Security Operations Concept”q
Change Management
Section titled “Change Management”-
Common tasks within a change management process are:
Request the changeReview the changeApprove/reject the changeTest the changeSchedule and implement the changeDocument the change
Patch Management
Section titled “Patch Management”-
Common steps within an effective `patch management program:
Evaluate patchesTest patchesApprove the patchesDeploy the patchesVerify that patches are deployed
-
Patch TuesdayandExploit Wednesday
Vulnerability Management
Section titled “Vulnerability Management”- Two common elements of a
vulnerability management programareroutine vulnerability scansandperiodic vulnerability assessments.