Securing PowerShell On Your Domain

This topic contains 4 replies, has 3 voices, and was last updated by  postanote 1 week, 6 days ago.

  • Author
    Posts
  • #103988

    Alan Williams
    Participant

    I realize this question isn't just about PowerShell, but moreso about securing/deploying PowerShell on a domain, but it's purpose is to get information from experienced PowerShell users who may have experience in this piece of IT/Domain management.

    So, I have been looking for some quality references on securing PowerShell in your domain. I have found a pretty mixed bag on it... >:\ Just some pre-qualifiers, I help manage a edu(K-12) domain. All of our Techs have regular account as well as privileged accounts, primarily for local PC admin stuff. I have the same as well as a domain admin account. My goal is to make it so admin accounts have the ability for execute remote scripts and sessions on staff and student PC's, however I'm not sure of the security risks involved and the recommended way to do such a thing.

    I would like to consider enabling WinRM on all of our staff and student PC's so I can to remote script execution and installs via PowerShell. Some of the naysayers suggest it's a huge security vulnerability. Once I started researching more on this I found an overwhelming amount of information that was very "general" and on both sides of the fence...

    Does anyone have any quality references I can review for such a thing.

    Thanks in advance.

  • #104000

    Joel Sallow
    Participant

    https://www.youtube.com/channel/UCxgrI58XiKnDDByjhRJs5fg

    and

    https://www.youtube.com/user/powershellorg

    Both these YT channels contain several talks from the recent PS conferences in the US and EU that deal with security with PS. 🙂

  • #104012

    postanote
    Participant

    Have you looked at what other orgs are documeting / defining / recommending. For example, the DoD, specifically DISA, has docs called STIGs. They are the mandated guidance for the DoD on net worthiness (ATO – Authority to operate), security and accredatation. Many commercial enterprises I work in have taken all or parts of these docs for their needs.

    'iase.disa.mil/stigs/Pages/index.aspx'
    'stigviewer.com/stig/windows_10/2017-02-21/finding/V-68819'

    Every vendor trying to work with the FedGov/Dod/Intel sectors have to deal with these or somehting like them.

    There have been public courseware on the topic for few years now. For example:

    Securing Windows with PowerShell and the Critical Security Controls
    'sans.org/simulcast/details/sec505-mar-2016-jason-fossen/course/securing-windows-with-powershell'

    SEC505: Securing Windows and PowerShell Automation
    'sans.org/course/securing-windows-with-powershell'

    SANS Pen Test Cheat Sheet: PowerShell
    'pen-testing.sans.org/blog/2016/05/25/sans-powershell-cheat-sheet'

    Securing Windows and PowerShell Automation
    'niccs.us-cert.gov/training/search/sans-institute/securing-windows-powershell-and-critical-security-controls'

    Are you saying, that the below is far to general for you to consume and leverage, or are you loking for some industry SOP (standard operating proceedure) doc or template. Just like other GRC (Governance, Risk and Compliance) industry policies (GDPR, PCIDSS, etc...) this can a will vary per org / industry. YOu need to assess your org risk manamgent policies, stance before looking into wha tyiou can really do. Ohterwise, anything you review is just knowledge transfer / thought provoking stuff.

    PowerShell Security at Enterprise Customers
    'blogs.msdn.microsoft.com/daviddasneves/2017/05/25/powershell-security-at-enterprise-customers'

    Who's afraid of PowerShell security?
    'blogs.technet.microsoft.com/ashleymcglone/2016/06/29/whos-afraid-of-powershell-security'

    PowerShell Remoting Security Considerations
    'docs.microsoft.com/en-us/powershell/scripting/setup/winrmsecurity?view=powershell-6'
    'blogs.technet.microsoft.com/ashleymcglone/2017/04/12/powershell-remoting-and-kerberos-double-hop-old-problem-new-secure-solution'
    'blogs.technet.microsoft.com/ashleymcglone/2016/08/30/powershell-remoting-kerberos-double-hop-solved-securely'

    Practical PowerShell Security: Enable Auditing and Logging with DSC
    'blogs.technet.microsoft.com/ashleymcglone/2017/03/29/practical-powershell-security-enable-auditing-and-logging-with-dsc'

    Script Tracing and Logging
    'docs.microsoft.com/en-us/powershell/wmf/5.0/audit_script'

    Greater Visibility Through PowerShell Logging
    'fireeye.com/blog/threat-research/2016/02/greater_visibilityt.html'

    Windows PowerShell Securing the Shell
    'technet.microsoft.com/en-us/library/2007.09.powershell.aspx'

    PowerShell Security Best Practices
    'blogs.msdn.microsoft.com/powershell/2013/12/16/powershell-security-best-practices'

    Just Enough Administration: Windows PowerShell security controls help protect enterprise data
    'msdn.microsoft.com/en-us/library/dn896648.aspx'

    • #104014

      Alan Williams
      Participant

      I never thought about the DoD/FedGov/DISA guidelines. This is good stuff! Thank you for the reference.

    • #104020

      postanote
      Participant

      No worries, glad it gave you another option.
      You could also look the other industry orgs (CERT, ISSA, ISC2, etc...) even some of the college.edu write ups.

You must be logged in to reply to this topic.