
<https://sepses.org/resource/attack/attack-pattern--63220765-d418-44de-8fae-694b3912317d> <http://purl.org/dc/terms/created> "2020-01-24T14:17:43.906+00:00"^^<http://www.w3.org/2001/XMLSchema#dateTime> ;
	<http://purl.org/dc/terms/description> """Adversaries may establish persistence by executing malicious content triggered by an interrupt signal. The <code>trap</code> command allows programs and shells to specify commands that will be executed upon receiving interrupt signals. A common situation is a script allowing for graceful termination and handling of common keyboard interrupts like <code>ctrl+c</code> and <code>ctrl+d</code>.

Adversaries can use this to register code to be executed when the shell encounters specific interrupts as a persistence mechanism. Trap commands are of the following format <code>trap 'command list' signals</code> where "command list" will be executed when "signals" are received.(Citation: Trap Manual)(Citation: Cyberciti Trap Statements)""" ;
	<http://purl.org/dc/terms/modified> "2025-10-24T17:48:51.725+00:00"^^<http://www.w3.org/2001/XMLSchema#dateTime> ;
	<http://purl.org/dc/terms/title> "Trap" ;
	<http://purl.org/dc/terms/version> "1.1" ;
	<https://sepses.org/vocab/ref/attack#hasDomain> "enterprise-attack" ;
	<https://sepses.org/vocab/ref/attack#isSubtechnique> true ;
	<https://sepses.org/vocab/ref/attack#platform> "Linux", "macOS" ;
	a <https://sepses.org/vocab/ref/attack#Technique> .

