DevOps.com

Where the world meets DevOps

  • Latest
    • Articles
    • Features
    • Most Read
    • News
    • News Releases
  • Topics
    • AI
    • Continuous Delivery
    • Continuous Testing
    • Cloud
    • Culture
    • DevSecOps
    • Enterprise DevOps
    • Leadership Suite
    • DevOps Practice
    • ROELBOB
    • DevOps Toolbox
    • IT as Code
  • DevOps Chats
  • Webinars
    • Upcoming
    • On-Demand Webinars
  • Library
  • Events
    • Virtual Summits
    • Conferences
  • Sponsored Communities
    • CloudBees
    • IT as Code
  • Related Sites
    • MediaOps
    • Container Journal
    • Security Boulevard
    • SweetCode.io
    • Digital Anarchist
    • DevOps TV on YouTube
    • DevOps Chat on SoundCloud
    • DevOps Connect
    • DevOps Dozen
  • Media Kit
  • Follow Us
    • Twitter
    • Google News
    • LinkedIn
    • Facebook
    • DevOps TV on YouTube
    • Email
MENUMENU
  • AI
    • Better CX with AIOps

      Build Better CX Across the Entire User Journey with AIOps

      Putting Customer Communication at the Core of New Apps

      Putting Customer Communication at the Core of New Apps

      AIoT and Intelligence on the Edge

      AIoT and Intelligence on the Edge

      Threading the Needle on Kubernetes Complexity with AI-Powered Observability

      Threading the Needle on Kubernetes Complexity with AI-Powered Observability

      Enterprise AI Books to Read This Spring

      Enterprise AI Books to Read This Spring

  • Cloud
    • JFrog DevOps

      JFrog Makes Free DevOps Resources Available for COVID-19 Projects

      Scalyr

      Scalyr Alters Log Analytics Economics

      APM and Application Stability: Where Two Monitoring Roads Merge and Diverge

      APM and Application Stability: Where Two Monitoring Roads Merge and Diverge

      Google CloudBees

      Google Names CloudBees App Dev Partner of the Year

      Scalyr

      Sysdig Extends Cloud Monitoring Alliance With IBM

  • Continuous Delivery
    • CD Foundation

      CD Foundation Serves Up Tekton Pipelines Beta

      GitLab open source

      GitLab Shifts 18 Features Into Core Open Source Platform

      CircleCI DevOps

      CircleCI Surfaces More DevOps Insights

      SignalFX

      OverOps Allies With SonarQube To Improve Application Quality

      managed DevOps

      2nd Watch Allies With GitLab for Managed DevOps Service

  • Continuous Testing
    • Shift-Right Testing: The Emergence of TestOps

      Shift-Right Testing: The Emergence of TestOps

      What Developers Should Take Away from the Iowa Caucus App Debacle

      What Developers Should Take Away from the Iowa Caucus App Debacle

      survey testing

      Survey Sees Little Progress in Drive to Shift Testing Left

      DevOps Software Testing

      DevOps Places Software Testing in the Crosshairs

      testing

      DevOps Chats: Enterprise Continuous Testing With a Shift-Right Mindset

  • DevSecOps
    • Top iOS Security

      Top iOS Security Gotchas

      ClickShare Vulnerabilities

      ClickShare Vulnerabilities May Have Been Patched, But They Mask a Much Bigger Problem

      2020 DevSecOps Community Survey: Of 5,045 Developers, Guess How Many Are Happy?

      2020 DevSecOps Community Survey: Of 5,045 Developers, Guess How Many Are Happy?

      vault

      HashiCorp Strengthens Vault Secrets Management

      Palo Alto Networks

      Palo Alto Networks Advances DevSecOps in the Cloud

  • Leadership Suite
    • Digital Resiliency Wins

      The Way Forward: Digital Resiliency Wins

      Software delivery metrics

      Is It Time to End the Software Metric Madness?

      DevOps Institute

      DevOps Institute Cert Exams Now Available for Open Testing

      Coronavirus Economic Shutdown: Analysts Hit the Brakes on Global IT Spending Estimates

      Coronavirus Economic Shutdown: Analysts Hit the Brakes on Global IT Spending Estimates

      Digital Transformation Efforts Hindered by Lack of Upskilling

      Digital Transformation Efforts Hindered by Lack of Upskilling

  • Practices
    • Open Source Vulnerabilities

      Open Source Vulnerabilities Were Up 50% in 2019 — How Will It Impact Software Development in 2020?

      Top iOS Security

      Top iOS Security Gotchas

      DevOps - Open Source Logging

      Why DevOps are Keen on Open Source Logging

      TechStrong TV

      TechStrong TV: Celebrating the Strength of the Tech Community

      Keys to the Kingdom: Protect Your Server from Hackers

      Keys to the Kingdom: Protect Your Server from Hackers

  • ROELBOB
    • excuses

      Root Cause

      archived

      Archived

      scales

      Scales

      seo-optimization

      SEO Optimization

      figments-of-imagination

      Figments of Imagination

  • Toolbox
    • GitHub private repositories

      GitHub Makes Private Repositories Free for Unlimited Users

      GitLab GitHub

      GitLab Responds To GitHub Making Teams Free – We All Win

      Copado

      Copado Launches DevOps COVID-19 Initiative

      CircleCI DevOps

      CircleCI Surfaces More DevOps Insights

      compuware mainframe

      Compuware Shifts Mainframe App Testing Left

  • IT as Code
  • More Topics
    • Application Performance Management/Monitoring
    • Culture
    • Enterprise DevOps

Home » Blogs » DevOps Practice » Keys to the Kingdom: Protect Your Server from Hackers

Keys to the Kingdom: Protect Your Server from Hackers

Don MacvittieBy Don Macvittie on April 17, 2020 1 Comment

Automation and DevOps undeniably improve the agility and responsiveness of IT. Most of us have taken up at least a bit of the wave of automation that DevOps and Agile have brought to our door, and many are far along on their DevOps journey.

Recent Posts By Don Macvittie
  • In IT, Purity Is Not Necessarily a Virtue
  • DevOps Institute Upskilling the Enterprise
  • We All Have to Have Standards
Don Macvittie More from Don Macvittie
Related Posts
  • Defining What DevOps is Not
  • Let the Code do the Heavy Lifting
  • Automation versus Orchestration
    Related Categories
  • Blogs
  • DevOps Practice
  • Enterprise DevOps
  • Features
    Related Topics
  • ansible
  • DevOps transformation
  • hacking
  • security
Show more
Show less

But every once in a while, we need to look back and lend a hand to those still coming. The fact of the matter is that sometimes we forget to warn those who are new to massive automation about some serious issues.

It is intuitively obvious, if you think about security at all, that putting together a command and control server—we’ll use Ansible in this blog, but any tool that can roll out applications to a collection of servers—creates a big screaming target for any hacker that gets into your infrastructure. You cannot assume that will never happen, so organizations need to think about protective systems/architectures early, or spend more time patching things up. Remember, the more you build, the more weight there is to making major changes.

For starters, severely limit access to the command and control machine. It belongs on a management subnet/VLAN with only a few access points. The servers it is managing absolutely should not have access back to the command and control server. If they do, any one of them getting controlled will provide a pathway to all of them getting controlled.

Next up, early on there were quite a few debates/discussions about which user accounts should be able to run command and control scripts (Playbooks in Ansible). Eventually, the bulk of the community settled on each individual running them, not a single generic user with a name like “ansibledeploy.” Some still use a central user, but the majority wants the ability to track down the leak that individuals running commands allow—searching for strange/uncommon command execution in logs will cough up which account got compromised and allow for rapid response—which outweighs centralization.

Third, learn and use the security features available in your application. Ansible offers Ansible Vault to allow encryption of playbooks. Since many playbooks require root access, encryption allows those playbooks to hide root access. Use of Ansible Vault has grown over time, and there are excellent tutorials out there to help use it to lock down command and control. Your product will have a similar tool, because putting root passwords in plain text, all over the disk, is just not acceptable.

In the Ansible Galaxy/Github repositories, you can find excellent roles to help in your quest to lock things down. Geerlingguy is one of the most popular, and his Ansible Role – Security is excellent if you follow the caveats he provides in the readme.

This is simply an advisory, not a step-by-step solution set. Overall, just remember that putting together a command and control server makes a tempting target. And like Geerlingguy points out in his readme, your security is your concern.

Look at where the server can be accessed from, who can access it, where sensitive data bits such as passwords are stored—hint: plain text passwords in files went out of fashion when mainframes were hooked up to LANs—and how to protect all of the above. It’s been done, there are plenty of resources to help in your given environment. Take the time to look them up and implement relevant suggestions.

After all, I won’t get a call in the dead of night if your servers are all taken over, you will. Do everything you can to avoid getting that call. And keep rocking. Everyone remote working has made many organizations more susceptible to all forms of attack, don’t let your guard down.

Filed Under: Blogs, DevOps Practice, Enterprise DevOps, Features Tagged With: ansible, DevOps transformation, hacking, security

  • Click to share on LinkedIn (Opens in new window)
  • Click to share on Twitter (Opens in new window)
  • Click to share on Facebook (Opens in new window)
  • Click to share on Reddit (Opens in new window)
  • More
  • Click to share on Pinterest (Opens in new window)
  • Click to share on Tumblr (Opens in new window)

Like this:

Like Loading...
Sponsored Content
Featured eBook
The Automated Enterprise

The Automated Enterprise

“The Automated Enterprise” e-book shows the important role IT automation plays in business today. Optimize resources and speed development with Red Hat® management solutions, powered by Red Hat Ansible® Automation. IT automation helps your business better serve your customers, so you can be successful as you: Optimize resources by automating ... Read More
« Embracing the Journey to Public Cloud
JFrog Makes Free DevOps Resources Available for COVID-19 Projects »

TechStrong TV – Live Streaming

TechStrong TV - All Episodes

Top Stories of the Week

  • View DevOps.com Privacy Policy

Upcoming Webinars

Mon 20

Automating Security Beyond the Perimeter of Cloud Native Apps

Mon, April 20, 1:00 pm - 2:00 pm EDT
Tue 21

DevOps Patterns & Antipatterns for Continuous Software Updates

Tue, April 21, 11:00 am - 12:00 pm EDT
Tue 21

How Uber Reduced AWS Costs 15% in 30 Days

Tue, April 21, 1:00 pm - 2:00 pm EDT

More Webinars

Past Webinars

Latest from DevOps.com

Open Source Vulnerabilities Were Up 50% in 2019 — How Will I...
April 20, 2020 | Jeffrey Martin
The Way Forward: Digital Resiliency Wins
April 20, 2020 | George V. Hulme
Accelerating IoT by Switching Gears to 5G
April 20, 2020 | Sridhar Asvathanarayanan
Top iOS Security Gotchas
April 20, 2020 |