Skip to content

Commit fcf943e

Browse files
authored
Update clipboard-capture.md
1 parent b38bd2f commit fcf943e

1 file changed

Lines changed: 56 additions & 1 deletion

File tree

clipboard-capture.md

Lines changed: 56 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ Clipboard Capture
33

44
Sysmon will log EventID 24 for when an application stores text in the clipboard. This capability was added in version 12.0 of Sysmon under schema 4.40.When text us stored the event is generated and the text that was copied in to clipboard is stored as a file referenced by the hash in the location specified for deleted files with the same protections on the folder so only applications running under the context of the SYSTEM account can list and read the files. If no folder is speciied Sysmon will create a folder under the root of the main drive with its name.
55

6+
Before creating filters for event a element of **\<CheckRevocation \/\>** need to be added under the sysmon element. Once this element is added you can create filters for the event type. The **\<ArchiveDirectory\>** element in the configuration XML controls the location of the saved text.
7+
8+
As it is obivios this type of data is sensitive since it may contain code, credentials, persona identifiable informatior or more. This is one of the reasons that the data is not stored in the eventlog but in the heavily permissioned folder. Because of this certain care should be taken when deciding on what systems it would be of value to enable this kind of logging. Recomended system would be servers that have RDP enabled, specially those exposed to untrusted networks. It is important to make sure that administrators of the system know that this is enabled and the danger of putting in scope a RDP window with sensitive text in the clipboard so as to not store sensitive information in systems. It is not recommended to enable this capture on client machines do to the risk of unencrypted sensitive data being stored even if the folder are heavily permissioned with Access Control Lists.
9+
610
The fields for the event are:
711

812
* **RuleName**: Name of rule that triggered the event.
@@ -23,4 +27,55 @@ The fields for the event are:
2327

2428
* **Archived**: Status whether is was stored in the configured Archive directory.
2529

26-
As it is obivios this type of data is sensitive since it may contain code, credentials, persona identifiable informatior or more. This is one of the reasons that the data is not stored in the eventlog but in the heavily permissioned folder. Because of this certain care should be taken when deciding on what systems it would be of value to enable this kind of logging,
30+
A sample configuration to capture all clipboard events:
31+
32+
```XML
33+
<Sysmon schemaversion="4.40">
34+
<HashAlgorithms>sha1</HashAlgorithms>
35+
<CheckRevocation />
36+
<CaptureClipboard />
37+
<EventFiltering>
38+
<RuleGroup name="" groupRelation="or">
39+
<ClipboardChange onmatch="exclude">
40+
</ClipboardChange>
41+
</RuleGroup>
42+
</EventFiltering>
43+
</Sysmon>
44+
45+
```
46+
47+
This is an event of a user connecting to a VM using Hyper-V console that leverages RDP:
48+
49+
```XML
50+
Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
51+
<System>
52+
<Provider Name="Microsoft-Windows-Sysmon" Guid="{5770385f-c22a-43e0-bf4c-06f5698ffbd9}" />
53+
<EventID>24</EventID>
54+
<Version>5</Version>
55+
<Level>4</Level>
56+
<Task>24</Task>
57+
<Opcode>0</Opcode>
58+
<Keywords>0x8000000000000000</Keywords>
59+
<TimeCreated SystemTime="2020-10-07T19:57:53.911567300Z" />
60+
<EventRecordID>92</EventRecordID>
61+
<Correlation />
62+
<Execution ProcessID="2640" ThreadID="3884" />
63+
<Channel>Microsoft-Windows-Sysmon/Operational</Channel>
64+
<Computer>SDDC01.acmelabs.pvt</Computer>
65+
<Security UserID="S-1-5-18" />
66+
</System>
67+
<EventData>
68+
<Data Name="RuleName">-</Data>
69+
<Data Name="UtcTime">2020-10-07 19:57:53.908</Data>
70+
<Data Name="ProcessGuid">{fcb91365-c386-5f7d-c100-000000000500}</Data>
71+
<Data Name="ProcessId">108</Data>
72+
<Data Name="Image">C:\Windows\System32\rdpclip.exe</Data>
73+
<Data Name="Session">1</Data>
74+
<Data Name="ClientInfo">user: acmelabs\Admin ip: FE80:0000:0000:0000:013E:52B8:0C83:3DE3 hostname: DESKTOP-LH0AJLB</Data>
75+
<Data Name="Hashes">SHA1=292341BFA0C002051415142B99991871C53B3905,MD5=94B9F6FA8509AB6771F72304C0B3538B,SHA256=1AAE1F7AD5E7CB54F0302794430DFBB0CCCF6DA1F3C79DE1B17E8D367D7BF6C1,IMPHASH=00000000000000000000000000000000</Data>
76+
<Data Name="Archived">true</Data>
77+
</EventData>
78+
</Event>
79+
```
80+
81+

0 commit comments

Comments
 (0)