<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>closed loop response &#8211; Blue Lance</title>
	<atom:link href="https://bluelance.com/docs-tag/closed-loop-response/feed/" rel="self" type="application/rss+xml" />
	<link>https://bluelance.com</link>
	<description></description>
	<lastBuildDate>Mon, 01 Jun 2026 18:27:06 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0</generator>

<image>
	<url>https://bluelance.com/wp-content/uploads/2025/11/fevicon-ic-1.png</url>
	<title>closed loop response &#8211; Blue Lance</title>
	<link>https://bluelance.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Linking Scripts to Alert Rules</title>
		<link>https://bluelance.com/docs/linking-scripts-to-alert-rules/</link>
		
		<dc:creator><![CDATA[peter thomas]]></dc:creator>
		<pubDate>Thu, 28 May 2026 16:21:02 +0000</pubDate>
				<guid isPermaLink="false">https://bluelance.com/?post_type=docs&#038;p=15874</guid>

					<description><![CDATA[PowerShell Orchestrator can be configured to run scripts automatically in response to security alerts generated by LT Auditor MP. This allows you to build automated remediation and investigation workflows — for example, automatically pulling a full group membership report the moment an unauthorized change to a privileged group is detected, or disabling a user account [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">PowerShell Orchestrator can be configured to run scripts automatically in response to security alerts generated by LT Auditor <sup>MP</sup>. This allows you to build automated remediation and investigation workflows — for example, automatically pulling a full group membership report the moment an unauthorized change to a privileged group is detected, or disabling a user account when a lockout threshold is exceeded.</p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<p class="wp-block-paragraph"><strong>Understanding alert-linked scripts:</strong></p>



<p class="wp-block-paragraph">When a script is linked to an alert rule, the following happens automatically:</p>



<ol class="wp-block-list">
<li>An incoming event matches the alert rule&#8217;s conditions</li>



<li>LT Auditor <sup>MP</sup> generates an alert</li>



<li>PowerShell Orchestrator immediately executes the linked script against the configured target</li>



<li>The script output is forwarded to LT Auditor <sup>MP</sup> and associated with the alert for investigation</li>
</ol>



<p class="wp-block-paragraph">This creates a closed-loop response — the alert fires, evidence is automatically collected, and the results are immediately available in the platform for review.</p>



<p class="wp-block-paragraph"><strong>Common alert-linked script use cases:</strong></p>



<figure class="wp-block-table"><table class="has-fixed-layout"><tbody><tr><td><strong>Alert Rule</strong></td><td><strong>Linked Script</strong></td><td><strong>Purpose</strong></td></tr><tr><td>Member added to Domain Admins</td><td>Domain Admins Membership Assessment</td><td>Capture the full group membership at the time of the change</td></tr><tr><td>User account lockout threshold exceeded</td><td>Account Status Check</td><td>Retrieve current account status and recent logon history</td></tr><tr><td>New local admin account created</td><td>Local Admin Accounts Assessment</td><td>Pull a full list of local admins on the affected machine</td></tr><tr><td>Entra ID role assignment change</td><td>Entra ID Role Assignments Assessment</td><td>Capture current role assignments at time of change</td></tr><tr><td>Suspicious sign-in detected</td><td>Account Activity Assessment</td><td>Retrieve recent sign-in history for the affected account</td></tr></tbody></table></figure>



<p class="wp-block-paragraph"><em>[Your administrator should define the automated response workflows most relevant to your environment and configure them accordingly.]</em></p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<p class="wp-block-paragraph"><strong>Prerequisites:</strong></p>



<p class="wp-block-paragraph">Before linking a script to an alert rule, confirm the following:</p>



<ul class="wp-block-list">
<li>The alert rule is already created and active in LT Auditor <sup>MP</sup> (see Configuring Alert Rules)</li>



<li>The script is already created and tested in the PowerShell Orchestrator script library (see Creating and Scheduling Scripts)</li>



<li>The script&#8217;s target endpoint or cloud target is reachable and connected</li>
</ul>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<p class="wp-block-paragraph"><strong>Linking a script to an alert rule:</strong></p>



<ol class="wp-block-list">
<li>Log in to the LT Auditor <sup>MP</sup> Web UI</li>



<li>Navigate to <strong>Manage</strong></li>



<li>Select the <strong>Environment</strong> and <strong>Category</strong> containing the alert rule</li>



<li>Locate the alert rule you want to link a script to and click the <strong>Edit</strong> icon</li>



<li>In the filter configuration, navigate to the <strong>Actions</strong> tab</li>



<li>Click <strong>Add Action</strong></li>



<li>Select <strong>Run PowerShell Script</strong> as the action type</li>



<li>Configure the action:
<ul class="wp-block-list">
<li><strong>Script</strong> — select the script from your PowerShell Orchestrator library</li>



<li><strong>Target Override</strong> (optional) — if the script should run against the machine that generated the alert rather than a fixed target, enable dynamic targeting</li>



<li><strong>Execution Delay</strong> (optional) — set a delay in seconds before the script runs, if needed</li>
</ul>
</li>



<li>Click <strong>Save Action</strong></li>



<li>Click <strong>Save</strong> to update the alert rule</li>
</ol>



<p class="wp-block-paragraph">The script will now run automatically every time this alert rule fires.</p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<p class="wp-block-paragraph"><strong>Using dynamic targeting:</strong></p>



<p class="wp-block-paragraph">By default, a linked script runs against the fixed target configured in the script definition. Dynamic targeting allows the script to instead run against the machine or user that generated the alert — making the response more relevant to the specific incident.</p>



<p class="wp-block-paragraph">To enable dynamic targeting:</p>



<ol class="wp-block-list">
<li>In the <strong>Run PowerShell Script</strong> action configuration, enable <strong>Dynamic Target</strong></li>



<li>Select the field from the alert event that identifies the target:
<ul class="wp-block-list">
<li><strong>Host</strong> — runs the script against the machine that generated the event</li>



<li><strong>User</strong> — passes the affected username as a parameter to the script</li>
</ul>
</li>



<li>Click <strong>Save</strong></li>
</ol>



<p class="wp-block-paragraph">Dynamic targeting requires that the identified machine is already a registered managed endpoint in PowerShell Orchestrator. If the machine is not registered, the script will fail to execute.</p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<p class="wp-block-paragraph"><strong>Viewing alert-linked script execution results:</strong></p>



<p class="wp-block-paragraph">When an alert fires and triggers a linked script, the execution results are available in two places:</p>



<p class="wp-block-paragraph"><strong>In the alert record:</strong></p>



<ol class="wp-block-list">
<li>Navigate to <strong>Alerts → Active Alerts</strong> or <strong>Alerts → Alert History</strong></li>



<li>Open the alert that triggered the script</li>



<li>Scroll to the <strong>Automated Response</strong> section</li>



<li>View the script execution status and output directly within the alert record</li>
</ol>



<p class="wp-block-paragraph"><strong>In the execution log:</strong></p>



<ol class="wp-block-list">
<li>Navigate to <strong>Configure → PowerShell Orchestrator → Execution Log</strong></li>



<li>Filter by <strong>Trigger Type — Alert</strong> to see all alert-triggered executions</li>



<li>Click any execution entry to view full output and status details</li>
</ol>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<p class="wp-block-paragraph"><strong>Managing alert-linked scripts:</strong></p>



<p class="wp-block-paragraph"><strong>Removing a script link from an alert rule:</strong></p>



<ol class="wp-block-list">
<li>Open the alert rule in <strong>Manage</strong></li>



<li>Navigate to the <strong>Actions</strong> tab</li>



<li>Locate the <strong>Run PowerShell Script</strong> action</li>



<li>Click the <strong>Delete</strong> icon next to it</li>



<li>Click <strong>Save</strong></li>
</ol>



<p class="wp-block-paragraph"><strong>Temporarily suspending automated responses:</strong> If you need to stop automated script execution without modifying the alert rule itself, disable the script in the script library:</p>



<ol class="wp-block-list">
<li>Navigate to <strong>Configure → PowerShell Orchestrator → Scripts</strong></li>



<li>Open the linked script</li>



<li>Toggle the <strong>Active</strong> switch to off</li>



<li>The alert rule will continue to fire alerts, but the script will not execute until re-enabled</li>
</ol>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<p class="wp-block-paragraph"><strong>Best practices:</strong></p>



<ul class="wp-block-list">
<li>Start with read-only assessment scripts for automated responses before implementing any scripts that make changes to your environment — collect evidence first, remediate manually until you are confident in the automation</li>



<li>Always test linked scripts manually using <strong>Run Now</strong> before activating the alert rule to confirm the output is as expected</li>



<li>Use dynamic targeting where possible so automated responses are relevant to the specific machine or user involved in the alert</li>



<li>Monitor the execution log regularly to confirm automated responses are firing correctly and producing useful output</li>



<li>Set an appropriate execution delay for scripts that need the triggering event to fully complete before the assessment runs</li>



<li>Document all alert-linked scripts and their intended purpose so the team understands what automated actions may occur in response to alerts</li>



<li>Review linked scripts periodically to ensure they are still appropriate as your environment evolves</li>
</ul>



<p class="wp-block-paragraph"><em>[Your administrator should establish a review process for automated response workflows, particularly any scripts that make changes to directory objects or account configurations.]</em></p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
