Skip to content
  • Blog
  • Events
  • Help
  • Careers
  • Contact
New Signature
  • About
      • Company

        Cognizant Microsoft Business Group is dedicated to changing the way businesses innovate, transform and run based on a unique cloud operating model. You will now be redirected to our new microsite to learn more.

        View Company

      • Awards

        As a company, we are regularly recognized within the IT industry as well as the communities we serve.

        View All Awards
      • News

        Read the most up-to-date corporate announcements, Microsoft technology updates, innovative business solutions and learn more about how the Cognizant Microsoft Business Group can take your business even farther.

        View News

      • Partners

        New Signature works with a number of outstanding technology companies to deliver the best experiences to our customers.

        View Partners
      • Leadership

        Cognizant Microsoft Business Group’s executive team is comprised of innovative leaders with proven experience and deep industry expertise. You will now be redirected to our new microsite to learn more.

        View Leadership

      • Industries

        Our solutions are tailored to empower organizations across a wide range
        of industries.

        View Industry Experience
    Close
  • Solutions
      • Intelligent Enterprise
        Solutions

        Going Digital
        Unleash cloud capability, deliver change and compete at speed with a Microsoft digital operating model, enabling you to work more efficiently as you transform your IT environment. Learn More

      • Featured Solution

        Secure Cloud
        In a world of constant threat, ensuring that your underlying cloud platform is protected is the first step on your organization’s journey towards a secure, compliant operating environment. Learn More
      • Intelligent Workplace
        Solutions

      • Secure Workplace

        Work Anywhere

        Endpoint Health

        Identity Health

        Teamwork Support



        VIEW WORKPLACE SOLUTIONS
      • Intelligent Cloud
        Solutions

      • App Factory

        Azure Accelerator

        Azure Launchpad

        Azure Launchpad for DevOps

        Application Health

        Platform Health

        VIEW ClOUD SOLUTIONS
    Close
  • Services
      • Begin your journey towards becoming a digital business with GO, our unique end-to-end framework based on the Microsoft Cloud Adoption Framework.

        GO DIGITAL OPERATING MODEL
      • Intelligent Enterprise

      • Consulting

        We go beyond just technology to help your organization understand how digital can help you uniquely differentiate and better serve your employees and customers.

        VIEW ENTERPRISE SERVICES
      • Intelligent Workplace

        • Identity

          Identity is your new first-line-of-defense. It’s vital to your users and clients that your identity platform is properly configured and secured.

          Endpoint

          Whether your devices are on-premises or remote, personal or business-owned, we can ensure they are properly managed and protected.

          Teamwork

          Today’s workforce is collaborating than ever before.  We can empower your current teams with tomorrow’s progressive technologies.

          VIEW WORKPLACE SERVICES
        • Intelligent Cloud

          • Platform

            The cloud is no longer some future-state. It’s the here and now. Adopting a cloud-first platform is one of the best ways to maintain a future-proofed competitive advantage.

            Applications

            We build cloud-native apps and modernize legacy systems with the power of Azure to give your organization a competitive edge.

            Data

            We can help your organization create secure, scalable data platforms to deliver simpler and more sophisticated insights to your business.

            VIEW CLOUD SERVICES
        Close
      • Client Stories
          • Case Studies

            Browse a comprehensive list of companies who have created successful partnerships and experienced transformative solutions with New Signature.

            View All Case Studies

          • Featured Case Study TalkTalk Modern Workplace

            New Signature worked with TalkTalk to define a new Modern Workplace solution based on Microsoft 365, which kept the user firmly at the center of the transformation.
            View Case Study

          • Testimonials

            We love transforming our customers businesses, take a look at what they have to say about New Signature.

            View Testimonials

          • Featured Testimonial Davis Construction

            With New Signature’s help, Davis was able to take a progressive step forward by migrating their private branch exchange (PBX) phone system to a Voice of Internet Protocol (VoIP) system.
            View Testimonial

        Close
      • Explore
          • Guides & Ebooks

            Dive deeper into education with your team by leveraging our expert-developed guides and eBooks.

            View All Guides & Ebooks

          • Infographics

            Rich with statistics and information, our infographics are great tools for quick but insightful learning.

            View All Infographics
          • Podcast: Office Explorers

            Join Kat and Rob monthly as they chat with New Signature experts and explore the world of O365.

            Listen to Podcasts

          • Videos

            Visit our videos stream to access recorded webinars, service information and to learn more about us.

            WATCH ALL VIDEOS
          • Flyers

            Searching for information about our services? Our flyers are a great takeaway for all those details.

            VIEW ALL FLYERS

          • Featured Stream

            Learn more about the tooling and expertise required to unlock productivity and mobilize your teams.

            MODERN WORKPLACE
        Close
        Close
      Blog

      Hunting USB Devices with Azure Sentinel – Part 2

      New Signature / Blog / Hunting USB Devices with Azure Sentinel – Part 2
      March 23, 2020March 23, 2020| New Signature

      In Part 1 of my previous blog post, I demonstrated how to enable USB Logging to Collect the Data from a USB Device that has been inserted into a demo machine.

      I will now run through the same process, but using a malicious USB device which, when plugged in, executes a PowerShell script to download a file onto my machine.

      • Let’s first check if any current suspicious PowerShell scripts have recently been found. Checking this can be done in the “Logs” section of Sentinel.
      • Paste the query below in, hopefully nothing should display …yet.
        SecurityAlert
        | where ProviderName == "Detection"
        | where DisplayName == "Suspicious Powershell Activity Detected"
        | order by TimeGenerated desc
        1
      • Now let’s plug in my device and we can see what happens.
      • If we run our previous query in Part 1, we should see our USB Device pop up.
      1
      2
      3
      Event
      | where EventID in (2003, 2004, 2006, 2010, 2100, 2101, 2105, 2106)
      | order by TimeGenerated desc

      2

      • So my device was registered in LA at 09:12:12:00
      • Now let’s re-run our Security query to check for PowerShell activity.
      1
      2
      3
      4
      SecurityAlert
      | where ProviderName == "Detection"
      | where DisplayName == "Suspicious Powershell Activity Detected"
      | order by TimeGenerated desc 

      So you can see below that Sentinel has detected suspicious activity after the USB insertion.

      3

      If we drill down further, you can see there was some malicious code executed.

      4

      On further investigation, you can see that a payload was injected as soon as the USB was plugged in. The payload ran a malicious PowerShell script which, after further investigation, found that it downloaded a file and copied this file to my computer.

      The one-liner is actually launching Command Prompt, which then opens PowerShell to bypass UAC and download a file to the C:\temp drive.

      5

      If we have a look at the extended properties, it gives us a more clear visual representation.

      6

      Now let’s take a look at the file it’s downloaded.

      7

      8

      How crazy is that!

      A USB got plugged in at 09:12, launched a malicious CMD which spawned a PowerShell session which downloaded a file to my machine all within a few seconds.

      Going forward, I need to be notified by email as soon as this happens, so let’s create a basic Playbook (Logic App) which will email me as soon as this alert is triggered and because I love automation, this part was really cool.

      • Hop over to Sentinel and click “Playbooks” then Add playbook, fill in the required information and click Create
      • Once your playbook is created we need to select “Blank Logic App”
      • Search “Sentinel” within the connections and triggers bar.

      9

      At the time of writing this there is only 1 Trigger for Sentinel.

      10

      • Make your connection to Sentinel.

      11

      • Next click “+ New Step” and search for YOUR email action, for me, I’ll be using Outlook.com
      • Fill in the Body, Subject and To section with which ever information you’d like to be emailed once an alert is triggered.

      I’ve done some basic formatting inside the body of the email, so my email alert makes sense and is laid out nicely.

      12

      • Click Save, we can now attach our playbook to the security query. For us to be notified of this, we need to create a Scheduled Analytic Query Rule.
      • Click “Analytics” and “Create – Scheduled query Rule”

      13

      • Click “next” to create the Rule Logic and paste in the above query.

      14

      Here I’ve defined that I want to be alerted on any detections that contain “Suspicious PowerShell Activity Detected”. You can set your own frequency depending on your requirements. As with Log Analytics, the lowest frequency is 5 minutes.

      • Run through the rest of the setup and Save.

      Now I’m going to repeat the same steps as before. I’m going to plug my USB back into my demo machine which contains a malicious script to download a file onto my machine, and after 2-3 minutes I got an email.

      15

      Now I know this isn’t down to the second, but you have to admit that from when I plugged in the USB, the data from my computer went to Log Analytics, which created the Incident, which triggered the playbook…all within a few minutes. I am now free to respond to this through the portal, contact the user or do whatever remediation needs to be done.

      Now the great thing about that playbook we made is that we can assign it to multiple analytic rules, so you can make as many playbooks as you want, incorporating different methods and assign whichever ones you wish to that alert. If you have a team of Security Analysts proactively hunting for threats, then they should be able to pick this up very quickly. Using Sentinels built-in queries are , but you may want to create your own. Collecting all your logs is great, but that’s not providing any prevention. Collection isn’t Detection.

      Categories
      Technical Reviews
      Contact New Signature

      Blog Posts

      • Identity is Hard; Let’s Make It Easy
      • Identity Versus Security
      • H is for Heterogeneity
      • Identity and Access Management: How to Get Started

      Managed Services

      Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent fermentum, enim ac dignissim aliquet

      VIEW ALL MANAGED SERVICES

      Professional Services

      Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent fermentum, enim ac dignissim aliquet

      VIEW ALL PROFESSIONAL SERVICES

      New Signature

      About

      • Company
      • Awards
      • News
      • Leadership
      • Partners
      • Industries

      Solutions

      • Intelligent Enterprise Solutions
      • Intelligent Workplace Solutions
      • Intelligent Cloud Solutions

      Services

      • GO
      • Intelligent Enterprise
      • Intelligent Workplace
      • Intelligent Cloud

      Client Stories

      • Client Stories
      • Testimonials

      Explore

      • Guides & Ebooks
      • Podcasts
      • Flyers
      • Infographics
      • Videos
      Copyright © 2023 New Signature
      • Blog
      • Events
      • Careers
      • Help
      • Anti Slavery
      • Privacy Policy
      • Contact
      • About
        • Company
        • Awards
        • News
        • Leadership
        • Partners
        • Industries
      • Services
        • GO
        • Intelligent Enterprise
        • Intelligent Workplace
        • Intelligent Cloud
      • Client Stories
        • Case Studies
        • Testimonials
      • Technologies
      • Explore
        • Guides & Ebooks
        • Infographics
        • Podcast: Office Explorers
        • Videos
        • Flyers
      • Blog
      • Events
      • Careers
      • Contact
      • Search
      Cookie Settings
      New Signature uses "Required Cookies" to run our website, "Functional Cookies" used by third parties to personalise marketing, including social media features.

      Change your preferences by clicking the “Cookie Settings” link at the bottom of every page. Learn more about cookies in our Cookie Policy and our Privacy Policy. By clicking the “Accept Cookies” button below, you consent to our use of cookies.

      Please note that “Required Cookies” will be set regardless of your consent.
      Cookie SettingsAccept Cookies
      Privacy & Cookies Policy

      Privacy Overview

      This website uses cookies to improve your experience while you navigate through the website. Out of these cookies, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may have an effect on your browsing experience.
      Performance

      Performance Cookies provide Content Delivery Network assets that deliver faster site content delivery capabilities.

      Required

      These cookies are required mainly in order to deliver Multilanguage site capabilities.

      Functional

      Functional Cookies allow us to provided advanced media capabilities including videos, surveys and other multimedia capabilities.

      Disabling Functional cookies will block the playing of videos and other multimedia site components.

      Targeting

      Targeting Cookies are used to capture user information in order for New Signature to deliver better user experiences.

      Save & Accept