Unit 11 / 11

End-to-End SOC Workflow, Automation (SOAR), Quality Management and Self-Audit

Gains:

  • Ability to design an end-to-end SOC workflow consisting of collection, detection, triage, investigation, intervention, improvement, reporting and feedback, specifying the location of artificial intelligence and human gates
  • Ability to separate automation according to risk level (low-risk/reversible steps are automatic, high-risk/irreversible steps are human-controlled) and design a rollback path for each automatic action.
  • Ability to establish a self-monitoring and feedback loop that regularly measures false positive/negative rate, MTTD/MTTR, output accuracy, and model drift

This final unit combines the pieces we learned separately throughout the module—log analysis, threat hunting, vulnerability management, incident response, phishing, code review, intelligence, reporting—into a single end-to-end workflow. In a true security operations center (SOC), these steps are not disconnected; An alarm triggers an investigation, which triggers a response, which triggers a report, which triggers a remediation. Artificial intelligence is involved in every link of this chain, but it is the human who holds the chain and makes decisions at every critical door.

Additionally, this unit covers two critical topics. The first is automation: When SOAR (Security Orchestration, Automation and Response — the platform that automates and organizes security processes) and AI combine, both power and risk increase; It is necessary to distinguish between what can be automated and what can never be removed from human approval. Second, quality management and self-regulation: An AI-enabled security operation is not set up and abandoned once; it is constantly monitored, measured, fed back and corrected. Automation increases speed but does not eliminate responsibility; A security program remains safe only through regular self-monitoring.

End-to-end SOC workflow

Let's see where AI comes into play and who approves it in a typical incident lifecycle:

  1. Collection and monitoring: Logs flow to SIEM; AI reduces noise, summarizes. (Automatic, low risk.)
  2. Detection and alarm: Rule + anomaly + AI pattern detection. (Automatic production; triage is in humans.)
  3. Triage: Is the alarm real or false positive? AI suggests rationale and priority; analyst confirms. (Human door.)
  4. Investigation: AI collects evidence, establishes timeline, lists root cause; the analyst confirms with raw evidence. (Human door.)
  5. Intervention: Isolation, locking, cleaning. AI provides choice/influence; The decision is in the hands of the authorized analyst. (Critical human gate.)
  6. Remediation: Vulnerability closure, root cause elimination. AI plan draft; approval in change management. (Human + process.)
  7. Reporting: AI writes draft, adapts to audience; The expert verifies and signs the evidence. (Human door.)
  8. Lesson learning and feedback: AI extracts patterns; Updates team detection rules and playbooks. (Human + process.)

The rule of this chain: low-risk, repetitive, reversible steps can be automated; High-risk, irreversible, judgment-requiring steps pass through the human door.

Automation decision table

step

Can it be automated

condition

human approval

Log collection, normalization

Yes, exactly

not necessary

Alarm enrichment (IOC search)

Yes

Source is reliable

It is reviewed

False positive elimination (known good)

partially

strict rule

Inspected by sampling

Quarantine phishing email

partially

high precision

Review + rollback path

Automatically lock an account

careful

Only clear criteria

Fast human verification

Isolate the server

Generally no

Except for critical infrastructure

Forced human decision

Patching (production)

no

Testing + change management

Official report/notification

no

Expert + law

Quality management and self-audit

An AI-powered security operation is a living system; its performance changes over time (new attacks, changing environment, model updates). Regular measurement is required to keep it safe:

  • False positive and false negative rate: How often does AI raise alarms in vain, how often does it miss the real threat? False negatives are especially watched because they silently cause harm.
  • MTTD/MTTR: ​​Are average detection and response times improving?
  • AI output accuracy: By sampling, how much of AI's summaries/findings/citations pass validation?
  • Automation security: Do automatic actions work as expected, are there any false triggers, are the rollbacks working?
  • Feedback loop: Do actual events found become new detection rules, and raised alarms become exception lists?

Terms: MTTD (Mean Time To Detect). The feedback loop is when the operation learns from its own results and updates its rules. Model drift is when the AI ​​becomes obsolete and performance decreases as the environment changes. Self-audit is the regular, critical review of the team's own processes.

three mini cases

Case 1 — Correct automation. A SOC automates the step of “automatically enriching and prioritizing alerts that match known malicious IOCs and are in a low-risk category”; but always leaves the "isolating a server" step for human approval. The result: analysts are freed from 400 routine alarms a day, freeing up time for real investigations, leaving critical decisions up to the human. The right part of the chain is automatic, the right place is human.

Case 2 — Automation backfires. Another SOC defines the "autolock account on suspicious login" rule very broadly. One day, due to a configuration error, the rule locks out 1,200 legitimate users at once and the work stops; Moreover, the recovery path is not defined. Lesson: high-impact automation must have strict criteria, gradual deployment, and a rollback path. Automation should be reversible and monitored through self-regulation.

Case 3 — The slippage caught by self-control. In a three-month self-audit, a team notices that the AI's phishing detection accuracy is decreasing: a new phishing wave is missed because it does not fit old patterns (pattern drift). The team collects samples, updates the detection rules, and refreshes the context given to the AI. Without regular self-control, this silent evasion could have continued for months. Lesson: just because performance is good once, it doesn't always stay good; measurement and feedback are essential.

Weak prompt / Strong prompt

Weak prompt:

Fully automate our SOC and let the AI handle everything.

This request demands automation without discrimination of risk, ignores human doors, and does not consider rollback and control. If implemented, high-risk decisions will become automated without supervision and turn into disaster at the first mistake.

Powerful prompt:

Your role: Consultant in SOC process design. [List] these event lifecycle steps into three based on risk level: (A) fully automated (low risk, reversible, repetitive), (B) AI recommends + human approves, (C) always human decision (high risk, irreversible). Suggest a mandatory rollback path and a tracking metric for each (A) and (B). Also draft a quarterly self-audit checklist: false positive/negative rate, MTTD/MTTR, AI output accuracy sampling, signs of pattern drift.

Strong demand separates automation by risk level, requires rollback and monitoring, and establishes a self-regulation framework.

Copiable prompt templates

AUTOMATION RISK SEPARATION TEMPLATE Separate these security workflow steps into three: (A) fully automated appropriate, (B) Recommends human approves, (C) always human decision. Write justification, reversibility, and business impact for each step. Recommend mandatory rollback path for high impact steps. Steps: [list]

ROLLBACK DESIGN TEMPLATE for automatic action [e.g. account lockout] propose a secure design: trigger criteria (narrow), gradual deployment, false trigger rollback step, warning and human verification point. Design to avoid blind automation. Action: [write]

SELF-AUDIT CHECKLIST TEMPLATE Draft a quarterly self-audit checklist for an AI-powered SOC: false positive/negative rate, MTTD/MTTR bias, AI output accuracy sampling, automation false triggers, signs of pattern drift, feedback loop operation, privacy/anonymization compliance. For each item, write how it will be measured.

FEEDBACK LOOP TEMPLATEDraw what is learned from the actual event / alarm that fails: (1) the pattern that will become a new detection rule, (2) the false positive that will be added to the exception list, (3) the playbook step that will be updated, (4) the new context that will be given to the AI. Event/alarm summary: [paste]

Common mistakes

  • Automating the high-risk step. Irreversible steps such as server isolation, production patching, official notification are not removed from the human door.
  • Not devising a path to retrieval. It is possible for any automatic action to trigger incorrectly; Automation without a point of undo and confirmation is dangerous.
  • Set and forget. AI performance shifts as the environment changes; Without regular self-monitoring and measurement, silent evasions accumulate.
  • Just tracking the false positive. A false negative (the real threat that is missed) is more dangerous but harder to see; Watch it privately.
  • Neglecting feedback. If the detected events do not turn into a new rule and the failed alarms do not turn into an exception, the operation does not learn and repeats the same mistake.
Hint: The golden question in automation decision: “Can this action be undone if triggered incorrectly and what is the business impact?” If the answer is “easily undone, low impact,” automate; If "irreversible or high impact" keep at human door.
Caution: Automation does not eliminate responsibility, it only speeds it up. An ill-conceived automatic action causes damage much faster and more widely than a human could. Every automation is surrounded by narrow criteria, rollback path and regular inspection; The ultimate responsibility always lies with the human being.

In summary

This unit combined all parts of the module into an end-to-end SOC workflow: collection, detection, triage, investigation, response, remediation, reporting and feedback. AI is involved in every link, but it is the human who holds the chain and makes decisions at every critical door. Automation (SOAR + AI) increases power; The rule is clear: low-risk, reversible, repetitive steps become automated, high-risk, irreversible steps pass through the human door, and every automation has a way of undoing. Finally, an AI-powered security program is live: false positives/negatives, MTTD/MTTR, output accuracy, and pattern drift are measured regularly; What is found turns into rules and playbooks in a feedback loop. Automation accelerates responsibility, not removes it; Self-control keeps security alive.

Application task

Write out your own organization's (or a sample SOC's) incident lifecycle. Classify each step as A/B/C with the “Automation Risk Separation” template and derive a safe automation design with the “Rollback Design” template for at least one “high impact” step. Then create a quarterly checklist with the “Self-Audit Checklist” template and determine how you will measure each metric in your environment.

checklist

  • [ ] I divided each step of the incident lifecycle into A/B/C risk class.
  • [ ] I kept high-risk, irreversible steps at the human door.
  • [ ] I designed narrow criteria and undo path for each automatic action.
  • [ ] I have planned to monitor the rate of false positives and especially false negatives.
  • [ ] I planned to measure MTTD/MTTR and AI output accuracy regularly.
  • [ ] I established a quarterly self-monitoring checklist for pattern drift.
  • [ ] I connected the found events and thrown alarms to the feedback loop.

Module Exam

1. A SIEM triage AI flagged an alarm as 'low priority, likely false positive' and pushed it to the bottom of the list. What should the analyst do about this alarm?

  • A) Still independently checks the alarm and verifies it with raw evidence; The analyst makes the closure decision and records it ✔
  • B) Artificial intelligence automatically turns off the alarm without examining it because it says it is low priority.
  • C) Transfers the alarm to the next shift as is.
  • D) Just look at the summary given by artificial intelligence and pass the report

Explanation: AI prioritization is a recommendation, not a diagnosis; The 'low priority' flag may cover a real attack (false negative). The analyst must still independently check the alert, verify it with raw evidence, and make the decision to close it himself. A negative AI output is no guarantee of 'no threat'.

2. What combination of risks is the AI ​​labeling a real attack as 'normal' and the analyst trusting this and relaxing his own analysis?

  • A) False positive and alarm fatigue only
  • B) False negative and automation bias (over-reliance on AI) ✔
  • C) Lack of log source only
  • D) SIEM rule error only

Explanation: It is a false negative if the model misses the real threat; Automation bias is when the analyst over-trusts artificial intelligence and abandons independent review. When the two combine, the raison d'être of human control disappears and the attack can be bypassed entirely. That's why areas that artificial intelligence calls 'clean' are also examined.

3. The AI ​​said 'CVE-2024-88888, CVSS 9.8, patch immediately' during a triage. What should the analyst do first?

  • A) Considers the CVE trustworthy and initiates the patching plan immediately
  • B) Just because CVSS is 9.8, it puts it first without looking at any other vulnerabilities
  • C) Verifies the CVE number and score in the NVD/vendor record; ✔ If there is no record, it will not be listed knowing that it may be fake.
  • D) Without verifying the CVE, the administrator writes it in the report as 'critical threat'

Description: Language models can fluently fit a non-existent CVE number and score (hallucinate). The analyst must verify the CVE in the NVD/vendor log and confirm its authenticity and score before committing to the patching schedule. An unverified CVE first connects to the resource; Otherwise, the team will waste time chasing a patch that doesn't exist.

4. To speed up an incident investigation, an expert pastes the raw firewall log along with actual internal IPs, usernames, and VPN server names into a publicly available AI tool. What is the main problem here?

  • A) AI cannot read the log format, so analysis is useless
  • B) If the log is too long, it slows down the model.
  • C) Firewall logs are not suitable for analysis anyway
  • D) Real IP, user and server names are shared without anonymization; This is both a violation of KVKK and the leakage of the organization's network map ✔

Description: Security data is both personal data (user, IP) and corporate intelligence that reveals the attack surface of the organization (network topology, server names). Giving this to an external tool without anonymizing it is both a violation of KVKK and reveals a network map that will be useful to the attacker. First, the actual values ​​are masked with consistent placeholders.

5. What makes a threat hunt considered well-designed?

  • A) It starts with a concrete, testable hypothesis and the trace found is confirmed by raw evidence ✔
  • B) It starts by telling the artificial intelligence 'find if there is an attacker in my network'
  • C) Automatically declares every abnormal/rare event found as an attack
  • D) It only works when an alarm arrives, it is not proactive

Explanation: A good threat hunt starts not with an alarm, but with a concrete and testable hypothesis that may or may not turn out to be true (e.g. 'Did account X connect to more than 50 internal IPs during non-business hours'). A vague question like 'Is there something bad on my network' cannot be tested and leaves the AI ​​guessing. The trace found is not considered a threat until it is verified with raw evidence.

6. A vulnerability has a CVSS score of 9.1 on an isolated test server on the internal network; In the same list, CVSS 7.5 on a server open to the internet, but there is another vulnerability in the KEV list (which is actually exploited). What is correct prioritization?

  • A) The one with the highest CVSS (9.1) is always patched first
  • B) The vulnerability of 7.5 on the Internet and KEV list is taken forward; CVSS is not the only criterion, exposure and actual abuse are decisive ✔
  • C) Both are patched at the same time and with the same priority, distinction is unnecessary
  • D) None of them are patched because there is a vulnerability in the test server

Explanation: CVSS does not set priorities alone; actual risk is determined by EPSS (probability of exploitation), KEV (actual exploitation) and organizational context (exposure, criticality, compensatory control). Internet-exposed and actually exploited (KEV) vulnerability prevents isolated and low-probability high-CVSS vulnerability.

7. In an incident response, artificial intelligence says 'Traffic originating from IC_HOST_7 is suspicious, isolate this server'. IC_HOST_7 is the main authentication server of the institution. What should the analyst do?

  • A) Artificial intelligence immediately isolates the server because it says so
  • B) Leaves the isolation decision entirely to artificial intelligence
  • C) First evaluate the business impact and cause of traffic; It does not isolate critical infrastructure without measuring its impact and makes the decision as an analyst ✔
  • D) Isolates the server and then deletes all logs

Description: Isolation is a critical decision that is difficult to reverse and can lead to business interruption; cannot be transferred to artificial intelligence. Isolating the authentication server can stop all employees from logging in. The analyst must first evaluate the business impact and the cause of the traffic (may be a legitimate transaction), make the decision himself; The suggestion of artificial intelligence should not be implemented as an order.

8. In a ransomware incident, the team wants to rebuild an affected machine to quickly clean it; but there is forensic evidence (memory dump, attacker tools) on the machine that has not yet been collected. What is the right approach?

  • A) The machine is immediately reinstalled; evidence is irrelevant
  • B) Artificial intelligence is asked for 'fastest cleaning' and the instruction is applied blindly.
  • C) The machine is turned off and thrown away because the evidence is already in the log.
  • D) First, the forensic image and memory dump are taken and the evidence is preserved, then cleaning/recovery is performed ✔

Explanation: Speed ​​of recovery cannot trump evidence preservation. Reinstalling the machine without collecting evidence destroys the chain of custody and cripples the judicial process. First, a forensic image and memory dump are taken, then cleaning/recovery is performed. Forensic steps are not delegated to AI.

9. What is one of the most reliable layers of technical verification when analyzing a suspected phishing email and how should it be confirmed?

  • A) SPF/DKIM/DMARC results in email headers; Confirmed from the raw title, not from the AI's summary ✔
  • B) Color and font of the email; decided by visual design
  • C) Click on the suspicious link on the live system and look at the page that opens.
  • D) Artificial intelligence saying 'phishing' alone is sufficient evidence

Explanation: SPF/DKIM/DMARC results in email headers are strong indicators of whether the email actually comes from the domain it claims to; If all three fail and the sender spoofs the domain, suspicion becomes stronger. However, this should be confirmed from the raw title and not from the summary of the AI. Additionally, suspicious links are never clicked on the live system.

10. In a code review, the AI ​​suggested a fix for an XSS vulnerability and said 'it closes the vulnerability'. What should the analyst/developer do?

  • A) Considers the fix reliable and puts it directly into production
  • B) Reviews the fix, confirms that it actually closes the vulnerability and does not introduce new vulnerabilities/bugs, and writes a test; Only then does it get into storage ✔
  • C) Since he is not sure, he rewrites the entire file to the artificial intelligence and uses it.
  • D) Applies the fix but passes without writing any tests

Explanation: The fix suggested by the AI is not automatically safe; It may not close the vulnerability completely, it may clean the wrong layer, or it may introduce a new vulnerability/functional error. Each patch is reviewed, evaluated whether it actually closes the vulnerability and whether it introduces new problems, and positive and negative test cases are written; Only then does it enter the warehouse.

11. When analyzing an attack, the artificial intelligence said 'this is definitely the work of the APT-Dark Eagle group'. What is the right approach in terms of threat intelligence?

  • A) Accept the reference as it is and write it in the report as the 'definite perpetrator'
  • B) He builds his entire defense based on that group without ever questioning the group name.
  • C) Uses 'consistent with techniques' language rather than precise attribution, verifies the group in known sources and takes into account the possibility of fabrication ✔
  • D) Citation is always unnecessary, it is not taken into consideration at all

Explanation: Group attribution is the most difficult and most inaccurate area of intelligence; AI can even make up a band name that doesn't exist. Instead of an exact reference, the language 'compatible with these techniques' is used and the group name is confirmed in known intelligence sources. Additionally, the defense is not based on short-lived IOCs but on permanent TTP detection.

12. In a draft incident report, the AI ​​wrote the sentence 'the attacker was most likely inside for three weeks and exfiltrated customer data'; whereas there is no conclusive log evidence to support these claims. What should the analyst do?

  • A) Leaves the sentence as it is because it is dramatic and impressive
  • B) Leaves the sentence but adds 'artificial intelligence wrote' at the end
  • C) Reprints the entire report to the artificial intelligence and signs it without verifying it.
  • D) Corrects claims based on evidence; Makes the distinction between 'possible/proven/under investigation' and extracts the definitive statement without evidence ✔

Comment: In a formal security report, every claim should be substantiated and 'probable' should never be confused with 'proven'. A claim without evidence has legal, financial and reputational consequences. The analyst should correct the sentence according to the evidence (for example, write the date of first access detected and say 'no conclusive evidence found, investigation is ongoing' for the data leak).

13. A manager wants to profile all the activity of an employee from security logs with artificial intelligence in order to understand whether he is 'loyal' or not. What should a security professional do?

  • A) Rejects the request and refers it to the appropriate channel (HR/legal/defined investigation); security data is not a means of personal surveillance ✔
  • B) Creates and delivers the profile because the manager requests it
  • C) It only extracts some logs and gives a partial profile
  • D) Have the profile created by artificial intelligence because the responsibility passes to artificial intelligence

Description: Security data is collected for security purposes; Tracking/profiling a person is misuse, turns into personal surveillance and violates KVKK. The expert should reject this request and refer it to the appropriate channel (HR, legal, a defined and legitimate investigative framework). Goodwill or the manager's desire does not justify this limit.

14. A SOC decides which steps of the security workflow to automate. Which is the best principle for automation?

  • A) The highest risk decisions should be automated first so there is no human involvement
  • B) Low-risk/reversible steps are automated; high risk/irreversible steps remain at the human door and every automation has a way of undoing ✔
  • C) All SOC should be fully automated and self-auditing is unnecessary
  • D) Automated actions do not need to be undone because AI does not make mistakes

Explanation: Low-risk, repetitive and reversible steps (log collection, alarm enrichment) can be automated; High-risk, irreversible and judgment-requiring steps (server isolation, production patching, official notification) pass through the human door. Additionally, every automatic action must have narrow criteria and a way to undo. Automation doesn't remove responsibility, it just speeds it up.