Skip to content

Commit

Permalink
Special project (#499)
Browse files Browse the repository at this point in the history
* Special commit

* Attempted fix

* fix the game view

* link to full page play mode

* Cleaner experience

* Updates

* Refactor

* Move mobile box message up

* Add full coverage

---------

Co-authored-by: adpare <[email protected]>
  • Loading branch information
jondricek and adpare authored Apr 1, 2024
1 parent ba6348e commit 209fd37
Show file tree
Hide file tree
Showing 7 changed files with 1,915 additions and 5 deletions.
333 changes: 333 additions & 0 deletions attack-theme/static/scripts/attack-game-data.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,333 @@
const reconnaissanceTechniques = [
"Active Scanning",
"Gather Victim Host Information",
"Gather Victim Identity Information",
"Gather Victim Network Information",
"Gather Victim Org Information",
"Phishing for Information",
"Search Closed Sources",
"Search Open Technical Databases",
"Search Open Websites/Domains",
"Search Victim-Owned Websites",
];

const resourceDevelopmentTechniques = [
"Acquire Infrastructure",
"Compromise Accounts",
"Compromise Infrastructure",
"Develop Capabilities",
"Establish Accounts",
"Obtain Capabilities",
"Stage Capabilities",
];

const initialAccessTechniques = [
"Content Injection",
"Drive-by Compromise",
"Exploit Public-Facing Application",
"External Remote Services",
"Hardware Additions",
"Phishing",
"Replication Through Removable Media",
"Supply Chain Compromise",
"Trusted Relationship",
"Valid Accounts",
];

const executionTechniques = [
"Cloud Administration Command",
"Command and Scripting Interpreter",
"Container Administration Command",
"Deploy Container",
"Exploitation for Client Execution",
"Inter-Process Communication",
"Native API",
"Scheduled Task/Job",
"Serverless Execution",
"Shared Modules",
"Software Deployment Tools",
"System Services",
"User Execution",
"Windows Management Instrumentation",
];

const persistenceTechniques = [
"Account Manipulation",
"BITS Jobs",
"Boot or Logon Autostart Execution",
"Boot or Logon Initialization Scripts",
"Browser Extensions",
"Compromise Client Software Binary",
"Create Account",
"Create or Modify System Process",
"Event Triggered Execution",
"External Remote Services",
"Hijack Execution Flow",
"Implant Internal Image",
"Modify Authentication Process",
"Office Application Startup",
"Power Settings",
"Pre-OS Boot",
"Scheduled Task/Job",
"Server Software Component",
"Traffic Signaling",
"Valid Accounts",
];

const privilegeEscalationTechniques = [
"Abuse Elevation Control Mechanism",
"Access Token Manipulation",
"Account Manipulation",
"Boot or Logon Autostart Execution",
"Boot or Logon Initialization Scripts",
"Create or Modify System Process",
"Domain Policy Modification",
"Escape to Host",
"Event Triggered Execution",
"Exploitation for Privilege Escalation",
"Hijack Execution Flow",
"Process Injection",
"Scheduled Task/Job",
"Valid Accounts",
];

const defenseEvasionTechniques = [
"Abuse Elevation Control Mechanism",
"Access Token Manipulation",
"BITS Jobs",
"Build Image on Host",
"Debugger Evasion",
"Deobfuscate/Decode Files or Information",
"Deploy Container",
"Direct Volume Access",
"Domain Policy Modification",
"Execution Guardrails",
"Exploitation for Defense Evasion",
"File and Directory Permissions Modification",
"Hide Artifacts",
"Hijack Execution Flow",
"Impair Defenses",
"Impersonation",
"Indicator Removal",
"Indirect Command Execution",
"Masquerading",
"Modify Authentication Process",
"Modify Cloud Compute Infrastructure",
"Modify Registry",
"Modify System Image",
"Network Boundary Bridging",
"Obfuscated Files or Information",
"Plist File Modification",
"Pre-OS Boot",
"Process Injection",
"Reflective Code Loading",
"Rogue Domain Controller",
"Rootkit",
"Subvert Trust Controls",
"System Binary Proxy Execution",
"System Script Proxy Execution",
"Template Injection",
"Traffic Signaling",
"Trusted Developer Utilities Proxy Execution",
"Unused/Unsupported Cloud Regions",
"Use Alternate Authentication Material",
"Valid Accounts",
"Virtualization/Sandbox Evasion",
"Weaken Encryption",
"XSL Script Processing",
];

const credentialAccessTechniques = [
"Adversary-in-the-Middle",
"Brute Force",
"Credentials from Password Stores",
"Exploitation for Credential Access",
"Forced Authentication",
"Forge Web Credentials",
"Input Capture",
"Modify Authentication Process",
"Multi-Factor Authentication Interception",
"Multi-Factor Authentication Request Generation",
"Network Sniffing",
"OS Credential Dumping",
"Steal Application Access Token",
"Steal or Forge Authentication Certificates",
"Steal or Forge Kerberos Tickets",
"Steal Web Session Cookie",
"Unsecured Credentials",
];

const discoveryTechniques = [
"Account Discovery",
"Application Window Discovery",
"Browser Information Discovery",
"Cloud Infrastructure Discovery",
"Cloud Service Dashboard",
"Cloud Service Discovery",
"Cloud Storage Object Discovery",
"Container and Resource Discovery",
"Debugger Evasion",
"Device Driver Discovery",
"Domain Trust Discovery",
"File and Directory Discovery",
"Group Policy Discovery",
"Log Enumeration",
"Network Service Discovery",
"Network Share Discovery",
"Network Sniffing",
"Password Policy Discovery",
"Peripheral Device Discovery",
"Permission Groups Discovery",
"Process Discovery",
"Query Registry",
"Remote System Discovery",
"Software Discovery",
"System Information Discovery",
"System Location Discovery",
"System Network Configuration Discovery",
"System Network Connections Discovery",
"System Owner/User Discovery",
"System Service Discovery",
"System Time Discovery",
"Virtualization/Sandbox Evasion",
];

const lateralMovementTechniques = [
"Exploitation of Remote Services",
"Internal Spearphishing",
"Lateral Tool Transfer",
"Remote Service Session Hijacking",
"Remote Services",
"Replication Through Removable Media",
"Software Deployment Tools",
"Taint Shared Content",
"Use Alternate Authentication Material",
];

const collectionTechniques = [
"Adversary-in-the-Middle",
"Archive Collected Data",
"Audio Capture",
"Automated Collection",
"Browser Session Hijacking",
"Clipboard Data",
"Data from Cloud Storage",
"Data from Configuration Repository",
"Data from Information Repositories",
"Data from Local System",
"Data from Network Shared Drive",
"Data from Removable Media",
"Data Staged",
"Email Collection",
"Input Capture",
"Screen Capture",
"Video Capture",
];

const commandAndControlTechniques = [
"Application Layer Protocol",
"Communication Through Removable Media",
"Content Injection",
"Data Encoding",
"Data Obfuscation",
"Dynamic Resolution",
"Encrypted Channel",
"Fallback Channels",
"Ingress Tool Transfer",
"Multi-Stage Channels",
"Non-Application Layer Protocol",
"Non-Standard Port",
"Protocol Tunneling",
"Proxy",
"Remote Access Software",
"Traffic Signaling",
"Web Service",
];

const exfiltrationTechniques = [
"Automated Exfiltration",
"Data Transfer Size Limits",
"Exfiltration Over Alternative Protocol",
"Exfiltration Over C2 Channel",
"Exfiltration Over Other Network Medium",
"Exfiltration Over Physical Medium",
"Exfiltration Over Web Service",
"Scheduled Transfer",
"Transfer Data to Cloud Account",
];

const impactTechniques = [
"Account Access Removal",
"Data Destruction",
"Data Encrypted for Impact",
"Data Manipulation",
"Defacement",
"Disk Wipe",
"Endpoint Denial of Service",
"Financial Theft",
"Firmware Corruption",
"Inhibit System Recovery",
"Network Denial of Service",
"Resource Hijacking",
"Service Stop",
"System Shutdown/Reboot",
];

function createAttackMatrix() {
const attackMatrix = [];

const tactics = [
"Reconnaissance",
"Resource Development",
"Initial Access",
"Execution",
"Persistence",
"Privilege Escalation",
"Defense Evasion",
"Credential Access",
"Discovery",
"Lateral Movement",
"Collection",
"Command and Control",
"Exfiltration",
"Impact",
];

const techniqueLists = [
reconnaissanceTechniques,
resourceDevelopmentTechniques,
initialAccessTechniques,
executionTechniques,
persistenceTechniques,
privilegeEscalationTechniques,
defenseEvasionTechniques,
credentialAccessTechniques,
discoveryTechniques,
lateralMovementTechniques,
collectionTechniques,
commandAndControlTechniques,
exfiltrationTechniques,
impactTechniques,
];

// Add tactic names as the first row
attackMatrix.push(tactics);

// Iterate over technique lists and construct the matrix
let maxTechniques = 0;
for (const techniques of techniqueLists) {
if (techniques.length > maxTechniques) {
maxTechniques = techniques.length;
}
}

for (let i = 0; i < maxTechniques; i++) {
const row = [];
for (const techniques of techniqueLists) {
row.push(i < techniques.length ? techniques[i] : null);
}
attackMatrix.push(row);
}

return attackMatrix;
}
Loading

0 comments on commit 209fd37

Please sign in to comment.