<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Laughing Mantis on Medium]]></title>
        <description><![CDATA[Stories by Laughing Mantis on Medium]]></description>
        <link>https://medium.com/@laughing_mantis?source=rss-325fa1b237af------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*hE910CytbZvf9bpO</url>
            <title>Stories by Laughing Mantis on Medium</title>
            <link>https://medium.com/@laughing_mantis?source=rss-325fa1b237af------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 00:09:27 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@laughing_mantis/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Malicious Shapes In Office — Part 2]]></title>
            <link>https://medium.com/@laughing_mantis/malicious-shapes-in-office-part-2-910375cd05f3?source=rss-325fa1b237af------2</link>
            <guid isPermaLink="false">https://medium.com/p/910375cd05f3</guid>
            <category><![CDATA[malware]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[steganography]]></category>
            <category><![CDATA[opsec]]></category>
            <dc:creator><![CDATA[Laughing Mantis]]></dc:creator>
            <pubDate>Wed, 08 Jul 2020 21:00:01 GMT</pubDate>
            <atom:updated>2020-07-08T22:37:31.953Z</atom:updated>
            <content:encoded><![CDATA[<h3>Malicious Shapes In Office — Part 2</h3><p>Red Team: Abusing EnhMetaFileBits and AddPicture for VBA Malware (VBA-Stendhal)</p><h3><strong>The Shelf Life-cycle of Office Based Malware</strong></h3><p>This is a continuation of how MsoShapes objects in Microsoft Office can be abused — if you missed part 1 it is available <a href="https://medium.com/@laughing_mantis/malicious-shapes-in-office-part-1-8a4efca74358">here</a>.</p><p>As I have mentioned on <a href="https://twitter.com/Laughing_Mantis/status/1278497214076092416">Twitter</a>, Office malware and offensive tools utilizing VBA generally have a limited life-cycle:</p><ul><li>Attacker Emails Victim Malicious Office Document</li><li>Victim Opens Document</li><li>Victim Is Socially Engineered To Enable Content To Execute Macros (Depends on Security Settings)</li><li>Malicious Office Document Executes VBA Code and compromises Victim</li><li><strong>Blue Team Finds Malicious Document In Email Box and/or On Victim’s Machine</strong></li><li><strong>Malicious Document Is Analyzed Using Sandboxes and Other Reverse Engineering Tools</strong></li><li><strong>Blue Team Discovers What Actions Malicious Document Performed and Mitigate/Remediate</strong></li></ul><p>For Red Teams and Malware the last 3 steps of this life cycle is extremely detrimental to the continued usage of their VBA malware. Extending your shelf-life by increasing the cost, time, and effort to analyze your code is the name of the game.</p><h3><strong>Execute Once (X1) and Controlled Execution (CX)</strong></h3><p>As I mentioned in a previous entry VBA malware often takes some steps in order to prevent reverse engineering such as using Document.Variables and MsoShapes in Office to have “Execute Once” (X1) or “Controlled Execution” (CX) capabilities.</p><p>X1 and CX capabilities are important factors for VBA malware. X1 is like it says, “Execute Once” on the target, putting the sample anywhere else — say a sandbox or manual execution via an analyst would be impossible. Controlled Execution is similar, in the sense that the code executes only under certain conditions in order to achieve the same anti-analysis goal.</p><p>VBA, like all script or interpreted languages; contain their full source code embedded in themselves. Meaning once your tool has been identified, it’s capabilities are known and its usage and effectiveness begins to rapidly degrade.</p><p>Currently modern tactics to combat reverse engineering (Anti-RE) is to obfuscate code using various built in Methods and functionality in VBA. Some of these methods can be read about on the excellent blog — <a href="https://medium.com/walmartlabs/evasive-vba-advanced-maldoc-techniques-1365e9373f80">Evasive VBA — Advanced Maldoc Techniques</a> by Carrie Roberts (<a href="https://twitter.com/OrOneEqualsOne">@OrOneEqualsOne</a>). I will be talking about other advanced methods on how to obfuscate VBA content in a future post.</p><p>Even with time-hindering obfuscation, eventually RE teams and AV analysis will crack your VBA code and discover what it does. X1 and CX capabilities will effectively prevent your code from being fully analyzed and increase the shelf-life of your malicious VBA code.</p><p>However the current X1 and CX capabilities in Office malware are greatly flawed. VBA malware and tools still store the entirety of their code within themselves and then delete, obfuscate, re-generate, or stomp their code post execution. Meaning the victim still has an unexecuted copy of the malicious document in their email inbox or on the email server that has the original code without the psuedo-X1 and CX capabilities.</p><p>In order for Red Teams to have X1 and/or CX capabilities code needs to have the following features:</p><ul><li>Modular code is needed, there will be a Husk code and Module code</li><li>Module Code needs to be remotely accessed and executed on the fly</li><li>Husk Code needs to accept that it will be discovered, however the discovering and reverse engineering Husk code will never reveal Module Code</li></ul><p>A good Blue Team has multiple ways to discover what code does or did in an incident. However by using this above framework a Blue Team without in-depth on system monitoring, post incident would only be able to say:</p><ul><li>This sample is malicious</li><li>It connected to X remote resource(s)</li><li>It downloaded Y content(s)</li><li>It performed Z actions based on Y content</li></ul><p>Again, abusing MsoShapes can handle Y and Z and make it so the information discovered is acceptably vague or too generalized to degrade the usage of your malicious tool immediately.</p><h3><strong>Abusing AddPictures and EnhMetaFileBits</strong></h3><p>The first goal of creating adding genuine X1 or CX capabilities is to utilize a method that allows remote file downloading in Microsoft Office.</p><p>Malware authors have long used many methods to download and execute code in Office, however all of these used Win32 API, external binaries, COM objects, or other sketchy tricks. All of these methods are already flagged by AV and sandbox systems as suspicious. One of the best ways to avoid these kinds of detection is to abuse valid and existing functionality.</p><p>Microsoft Office and VBA offers a plethora of ways to communicate to remote devices (I will lay these out in a future post) however, MsoShapes offer a really unique method of achieving remote file downloading via <a href="https://docs.microsoft.com/en-us/office/vba/api/word.inlineshapes.addpicture">InlineShapes.AddPicture</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/1*xMWGnx-bdHdiS4wL-vf5_w.png" /><figcaption>InlineShapes.AddPicture Method can be abused to download valid image files to Office documents automagically</figcaption></figure><p>The <strong>FileName </strong>paramenter, like almost all other FileName parameters within VBA will accept URL and remote resources such as UNC paths as well as a few other protocols (depending on the protocol-handlers on the machine).</p><p>Additionally the <strong>LinkToFile </strong>and <strong>SaveWithDocument</strong> parameter can be specified to include the file into the document, thus physically grabbing a copy of the file and inserting it into the Office Document space. This allows VBA to programmatically interact with the picture as an InlineShape object.</p><p>So remotely downloading and insert an image file into an Office document can be effectively achieved using a single line of code.</p><p>ActiveDocument.InlineShapes.AddPicture(“<a href="https://pbs.twimg.com/profile_images/631923531719151616/IpTXHz_t_400x400.jpg">https://pbs.twimg.com/profile_images/631923531719151616/IpTXHz_t_400x400.jpg</a>”, False, True)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/508/1*B1be4bGDmziZUhGySe1L0Q.png" /><figcaption>KMFDM Better than the best, meglomanical and harder than the rest.</figcaption></figure><p>Notice how the above example imports the picture as an InlineShape. InlineShapes are slightly different than Shapes in the sense that they often contain a container called a Range object. InlineShapes that are MsoPicture types will have a special property in their Range called <a href="https://docs.microsoft.com/en-us/office/vba/api/word.selection.enhmetafilebits">EnhMetaFileBits</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/957/1*Gr1Rgct-YpF9Da5a9KJ_8Q.png" /><figcaption>EnhMetaFileBits property contains an array of an InlineShape image’s content</figcaption></figure><p>This is effectively a read-only byte array containing the content of the InlineShape in the form. This byte array is designed to contain data for creating images and thumbnails of images and content so it can be rendered in other readers and for preview/layout compatibility.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/686/1*vDe0nPU__SOHAZCjQj_5Pw.png" /><figcaption>EnhMetaFileBits array of the inserted Image.</figcaption></figure><p>Working with the EnhMetaFileBits property is a bit of a pain so I made some functions that will display the array in a hex editor format and to extract the array and save it as a file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GAn5or1cDte9F7GtXznEyA.png" /><figcaption>EnhMetaFileBits Stream vs Original JPEG — Note to self change my Copywrite on logo</figcaption></figure><p>On the left is the first 512 bytes of the EnhMetaFileBits array contains when importing <a href="https://pbs.twimg.com/profile_images/631923531719151616/IpTXHz_t_400x400.jpg">https://pbs.twimg.com/profile_images/631923531719151616/IpTXHz_t_400x400.jpg</a> while on the right is the original JPEG.</p><p>A few of you may notice that the formatting of this binary stream does not include any of the JPEG header or typical JPEG layout, and that is because all data passed within this function is converted to Windows Metafile (EMF) file format — hence the <strong>Enh</strong>anced<strong>MetaFileBits</strong>.</p><p>As you can see the 2 files don’t line up at all and the conversion makes them drastically different. To be honest, this is what effectively killed my research into this topic months ago.</p><h3>Overcoming EMF Conversion Issues In Office</h3><p>I decided to revisit AddPicture and EnhMetaFileBits while playing around with EMF files instead of other formats and I noticed that the conversion was able to keep content of the original file even if they had nothing to do with display data. However even if the original file was in EMF format the content of the file was still altered in the conversion steps. (For the record even if you take original EMF -&gt; Import EMF as InlineShape-&gt; Export new InlineShape EMF as EMF-&gt; Import the InlineShape Generated EMF as new InlineShape EMF it will still be converted and different)</p><p>So I made a tool that would do the following:</p><ul><li>take a EMF file (Base file) and insert unique data (Data Flag) throughout the file and save each of these as a new EMF file (Test Files).</li><li>It would then import the all the Test Files into Office using the AddPicture method.</li><li>From there the tool would then search the EnhMetaFileBits array for the Data Flag and report its location.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/839/1*_rMJe8TQ1nfOlMxoV5S6tw.png" /><figcaption>Tool to Search For Data Flag locations in an EMF file that is imported via AddPicture method</figcaption></figure><p>This effectively allows us to abuse this feature in order to store data inside a EMF picture file at predictable and recoverable location even after conversion.</p><h3><strong>Introducing VBA-Stendhal for Red Teams</strong></h3><p>In order to abuse all these features effectively in VBA I have developed VBA-Stendhal. This tool can do the following:</p><ul><li>Automatically Test EMF files to see if they can be used to insert encrypted commands or data for X1 and CX purposes.</li><li>Generate a Command EMF file and allow it to be uploaded to your C2</li><li>Download a Command EMF file and extract commands from it</li><li>Provide a Hex View of EnhMetaFileBits for debugging</li><li>Provide methods to brute force search a Command EMF file instead of knowing the offset for command execution</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/888/1*Xo-2CA1n92QNyojoAbeN-Q.png" /></figure><p>Specifically how this allows X1 and CX conditions is as follows:</p><ul><li>Bad actor uses VBA-Stendhal to insert commands inside a EMF file (Command EMF)</li><li>Bad actor uploads Command EMF file to C2 server</li><li>Bad actor delivers malicious document to target via email</li><li>Target executes malicious document and enables Macros</li><li>Malicious document uses VBA-Stendhal Husk to download the Command EMF file</li><li>C2 shuts down or puts up Not Malicious EMF or Anti-RE EMF copy</li><li>VBA-Stendhal Husk code Executes commands from EMF file and deletes the EMF file</li><li>VBA-Stendhal saves the document to prevent the EMF from being available</li></ul><p>This matches up perfectly with the earlier requirements we set for achieving X1 or CX capabilities:</p><p><strong>This sample is malicious</strong></p><p>They have the sample, they can see that it added a Shape into the document and then did actions based on the content of the shape.</p><p><strong>It connected to X remote resource(s)</strong></p><p>Your C2 address and host will be discovered. The use of 3rd party hosts will likely have logs and backup copies of what you uploaded but depending on your risk and goals this may be acceptable.</p><p><strong>It downloaded Y content(s)</strong></p><p>This is the fun part. You can chose the next course of action. You know your sample should never hit Y resource twice, so any subsequent hits after the initial hit is likely a follow up team.</p><p>(Note: unless you are looking at those handy dandy email detontation test servers and email sandboxes — remember to include environment tests for this)</p><p>By taking down your C2 you wont be able to identify when your adversary initiated analysis at the risk of leaving forensic data.</p><p>By providing a Anti-Analysis Command EMF you can introduce some fun additional checking and headaches to the RE team.</p><p>The next version of VBA-Stendhal will include the ability to generate an Anti-Analysis Command EMF that can also includes fake URLs and resources that you can monitor to see if the RE team is on to you.</p><p><strong>It performed Z actions based on Y content</strong></p><p>This will be entirely dependent on your Husk code and how it interprets the VBA-Stendhal code (again another blog post for another day). Using anti-analysis features it allows</p><h3><strong>Get VBA-Stendhal</strong></h3><p>VBA-Stendhal is available on my GitHub — <a href="https://github.com/glinares/VBA-Stendhal">https://github.com/glinares/VBA-Stendhal</a></p><h3><strong>Using VBA-Stendhal</strong></h3><p>I will develop a fully weaponized version of VBA-Stendhal in the future, in the mean time VBA-Stendhal is meant to be used as a testing platform.</p><p>Additional Notes:</p><p><strong>TestEMFFile (BaseFile as String, DataFlag as String)</strong></p><p>This will generate test files by insert DataFlag at every sequential offset available using the BaseFile as the test file. It will then import these into Word and show operator every available location where the DataFlag was discovered in the test file.</p><p><strong>Public Sub DumpInlineShape2Hex(objInShape As InlineShape, Optional startOffset As Long = 0, Optional endOffset As Long = -1)</strong></p><p>This will create a visible Hex dump of the InlineShape so you can debug issues with VBA-Stendhal and manually verify findings.</p><p>VBA-Stendhal is an ongoing module, there are a few bugs (ie offsets are sometimes off by 1 — be aware, I will fix the code in a future release)</p><p>In my next entry I will flip sides and discuss how Blue Teams, Microsoft, Sandboxes and AV can detect, mitigate, and counter this issue.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=910375cd05f3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Malicious Shapes In Office — Part 1]]></title>
            <link>https://medium.com/@laughing_mantis/malicious-shapes-in-office-part-1-8a4efca74358?source=rss-325fa1b237af------2</link>
            <guid isPermaLink="false">https://medium.com/p/8a4efca74358</guid>
            <category><![CDATA[cybercrime]]></category>
            <category><![CDATA[vba]]></category>
            <category><![CDATA[infosec]]></category>
            <category><![CDATA[malware]]></category>
            <category><![CDATA[opsec]]></category>
            <dc:creator><![CDATA[Laughing Mantis]]></dc:creator>
            <pubDate>Sun, 05 Jul 2020 22:38:04 GMT</pubDate>
            <atom:updated>2020-07-05T22:49:36.727Z</atom:updated>
            <content:encoded><![CDATA[<h3>Malicious Shapes In Office — Part 1</h3><p>Abusing Shape Data To Store Commands To Execute In VBA</p><p>On July 1st, 2020 I discussed briefly on how InlineShape objects inside Microsoft Office could be used by VBA in order to conceal and execute commands or payloads.</p><h3></h3><p></p><p>For those of you new or less familiar to VBA Malware it is important to know that like many other scripting based malware it is essentially vulnerable to reverse engineering once samples have been obtained since the source code of the malware is entirely interpreted from the source.</p><p>However similarly to the HTML DOM object, Microsoft Office has objects that can be inserted into the document that can be manipulated and destroyed by the malware. If these objects carry information that are then interpreted and used by the source code of the malware, it can make reverse engineering the true nature of the malware itself extremely difficult.</p><p>This will be the first of several posts discussing the technical details of methods that abuse objects in order to prevent reverse engineering as well as providing both Red Teams and Blue Teams ways they can identify, create, mitigate and expand on this method.</p><p><a href="https://docs.microsoft.com/en-us/office/vba/api/word.shapes">Shapes </a>and <a href="https://docs.microsoft.com/en-us/office/vba/api/word.inlineshapes">InlineShapes</a> objects in Microsoft Office come in a few different variants. They are defined by the enum <a href="https://docs.microsoft.com/en-us/office/vba/api/office.msoshapetype">MsoShapeType</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/395/1*hOBu6yIrP8zBBkPRnFYrCw.png" /><figcaption>This took absolutely way too long to generate and I should have just screen shot it</figcaption></figure><p>To be clear I am not the first person to look at Shape objects and wonder just how they could be used for malicious purposes. Abusing Shape and InlineShape data structures has been around for many years. However it appears that for the most part the use of Shapes in malware have been limited to 2 types of activity; storing script payloads and checking if they have ever been executed.</p><p>A few examples of VBA malware have used the msoTextBox (type 17) object to store malicious script files (namely VBS, JS, and PowerShell) for their payloads and inspecting these type of objects have become quite common place for AV and Sandbox systems.</p><p>This is simply done by literally writing the entire content of the malicious payload script file into a text box and then setting its visibility to false, size to 1x1 pixel or any other run of the mill methods to visibly hide the text box.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/918/1*42TBfTN_2uRv8kEIEqjTNw.png" /><figcaption>Using Shape Object to hide Script Payloads is still a viable tactic that seems to be forgotten in 2020.</figcaption></figure><p>A rarer but other implemented strategy was malware authors inserting a shape object with certain values in order to determine if a sample has ran. This is still a valid tactic however this has been generally dropped over the years in favor of <a href="https://docs.microsoft.com/en-us/office/vba/api/word.document.variables">Document.Variables</a>.</p><p>I initially explored abusing these objects and found them relatively easy to implement as a way to store self-deleting self-interpreting VBA code. Another note is that we mean deleting interpreted code not at the P-Code level like how <a href="https://github.com/outflanknl/EvilClippy">Evil Clippy</a> &amp; <a href="https://vbastomp.com/">VBAStomper</a> work. Both of those tools and research are very impressive and this is meant to be used in conjunction with those tools in order to incredibly complicate the jobs of Blue Teams, reverse engineers, AV, sandboxes and forensic analysts.</p><p>As an example of how to abuse Shapes in VBA this I have created the tool VBA-CmdShape.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ae589d83a826026354ca4b79c7bf5219/href">https://medium.com/media/ae589d83a826026354ca4b79c7bf5219/href</a></iframe><p>This tool will insert a TextBox Shape object into a Office Word Document and store VBA commands to execute within this object. These values are stored in 3 properties of the TextBox Shape object in order to better obfuscate their usage. This object is then given a secret value in its Shadow properties to give it a unique ID so it can be later identified by the extraction code.</p><figure><img alt="VBA-CmdShape createTextBox will create a malicious Command Shape with special properties" src="https://cdn-images-1.medium.com/max/925/1*VONkH12PeOLHsRblGExnLw.png" /><figcaption>CreateTextBox() will create a malicious Command Shape with special properties and embed commands in it’s properties</figcaption></figure><p>The execution code will then enumerate all of the available shapes in the Office document, search for a shape with a secret key and then extract the embedded commands from the Command Shape. In the example I used a CallByName function that will use createobject Shell.Application to execute calc.exe.</p><figure><img alt="ExecuteTextBoxCommands will find the CommandShape, execute the hidden commands, delete the shape and save the document." src="https://cdn-images-1.medium.com/max/1024/1*uKS_X9Fm7VernylCuu6mTw.png" /><figcaption>ExecuteTextBoxCommands will find the CommandShape, execute the hidden commands, delete the shape and save the document.</figcaption></figure><p>I have left the exercise of the string encryption and decryption from the CmdShape as up to the user.</p><p>After execution since the shape is deleted this would provide difficulty for an analysis on this exact sample to occur. However the issue here is that since the malicious Shape object is stored inside the document, any copies (ie Email server storage) would still have the unexecuted copy and thus the ability to reverse engineer this sample.</p><p>In the next entry I will discuss how to abuse other Shapes from remote sources in order to prevent this misfortune of having a recovery copy available to the Blue Team.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8a4efca74358" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Abusing VBA for Air Gap Communications]]></title>
            <link>https://medium.com/@laughing_mantis/abusing-vba-for-air-gap-communications-4046c6b5b561?source=rss-325fa1b237af------2</link>
            <guid isPermaLink="false">https://medium.com/p/4046c6b5b561</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[malware]]></category>
            <category><![CDATA[infosec]]></category>
            <category><![CDATA[vba]]></category>
            <category><![CDATA[opsec]]></category>
            <dc:creator><![CDATA[Laughing Mantis]]></dc:creator>
            <pubDate>Sat, 04 Jul 2020 17:11:03 GMT</pubDate>
            <atom:updated>2020-07-04T17:11:03.217Z</atom:updated>
            <content:encoded><![CDATA[<p>VAC-Parasite Uses Colored Objects &amp; Morse Code To Bypass Air Gaps</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*f6f9qmWLRd-nzTRiYvAkSw.png" /><figcaption>Abusing Office Shapes &amp; Morse Code To Bypass Air Gaps for Data Exfiltration</figcaption></figure><p>I was originally inspired by an article discussing the usage adjusting of screen brightness in order to communicate in an air gaped environment and thought that this could easily be replicated within Microsoft Office using VBA.</p><p>Introducing Visual Basic for Applications Air Gap Communication module or VAC-Parasite.</p><p>Since this is more of a theoretical project versus an actual field use tool I decided to go with Microsoft Office Shapes and the Background object as a medium to send messages. Using More Code seems to be the easiest and most practical way to send messages and code for it is relatively available.</p><p>The code works by first taking a string value and converting it to a string of Morse code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/773/1*kPTSOcAdtYbF-5qRwpobgQ.png" /><figcaption>String to Morse Code Converter — Modified From <a href="https://www.rosettacode.org/wiki/Morse_code#VBA">https://www.rosettacode.org/wiki/Morse_code#VBA</a></figcaption></figure><p>Then it passes this Morse Code string into a visualizer function that will either generate a small square object at the top left of the document or change the document’s background color.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GwCBXgyaaHjMRKj63fPCCQ.png" /><figcaption>Code to convert Morse Code to visual colors</figcaption></figure><p>To convert this tool into something for actual data exfiltration, there are quite a few options for attacker’s to use.</p><p>I have provided the ability to change color values, the size of the shape, and delay speed so communication can be easily achieved using cellphone’s high speed capture modes (i.e. Slow-Mo Recording).</p><p>Alternatively usage of minuscule or subtle changes in the colors or delivery object could also be changed, such as using the Glow property, Brightness values of Shapes, or generating a Gradient object to send multiple values at once etc. It is really up to the mind of the attacker.</p><p>For safety purposes I have also included a seizure warning dialog box.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/532/1*n_HcdX1NsSFtCf-bZKfRJQ.png" /><figcaption>Obligatory Legal Seizure Warning</figcaption></figure><p>The code is available via my GitHub — <a href="https://gist.github.com/glinares/65e0b1a7ec8338f1cd807be22a33e87a">https://gist.github.com/glinares/65e0b1a7ec8338f1cd807be22a33e87a</a></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/114402450cea586f626423bbafcaed56/href">https://medium.com/media/114402450cea586f626423bbafcaed56/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4046c6b5b561" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>