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
    • 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

      A Deep Dive Into AI for IT Operations

      A Deep Dive Into AI for IT Operations

      ServiceNow

      OpsRamp Adds Recommendation Engine to AIOps Platform

  • Cloud
    • Palo Alto Networks

      Palo Alto Networks Advances DevSecOps in the Cloud

      Copado

      Copado Launches DevOps COVID-19 Initiative

      Why SaaSOps Pros Need to Manage the New Perimeter

      Why SaaSOps Pros Need to Manage the New Perimeter

      How to Secure Online Coding Platforms

      How to Secure Online Coding Platforms

      Copado

      Humio Adds Unlimited Ingest Plan to Log Management Service

  • Continuous Delivery
    • 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

      Jira

      Provide Continuous Value with Product-Centric Delivery

  • 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
    • Palo Alto Networks

      Palo Alto Networks Advances DevSecOps in the Cloud

      Filling the Skills Gap for Effective DevSecOps

      Filling the Skills Gap for Effective DevSecOps

      Linux Foundation

      Six Steps Every Business Should Take to Protect Its Data

      Free Remote Endpoint Protection Solution From Qualys

      Free Remote Endpoint Protection Solution From Qualys

      42Crunch

      42Crunch Extends API Security Alliance With Microsoft

  • Leadership Suite
    • 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

      Enterprise AI Books to Read This Spring

      Enterprise AI Books to Read This Spring

      Commercial Objectives in the Age of Automation

      Commercial Objectives in the Age of Automation

  • Practices
    • The Increased Role of Colocation Providers in Data Centers

      The Increased Role of Colocation Providers in Data Centers

      Shift-Right Testing: The Emergence of TestOps

      Shift-Right Testing: The Emergence of TestOps

      Universal Code Search Combinations

      Universal Code Search Combinations

      How to Improve Your Uptime Strategy

      How to Improve Your Uptime Strategy

      SRE (Part 1): A Modern Overview

      SRE (Part 1): A Modern Overview

  • ROELBOB
    • devops-lifecycle

      The DevOps Life Cycle

      post-distancing-world

      The Dynamics of Social Distancing

      it-facts-of-life

      Some Facts of Life in IT Development

      back-drops

      Backdrops

      sense-of-well-being

      A Sense of Well-Being

  • Toolbox
    • Copado

      Copado Launches DevOps COVID-19 Initiative

      CircleCI DevOps

      CircleCI Surfaces More DevOps Insights

      compuware mainframe

      Compuware Shifts Mainframe App Testing Left

      Akamai DevOps

      Akamai Extends Scope of DevOps Integrations

      Quick Base

      Quick Base Makes Free Low-Code Platform Available for First Responders

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

Home » Blogs » DevOps Practice » How to Secure Online Coding Platforms

How to Secure Online Coding Platforms

David FiserBy David Fiser on April 1, 2020 1 Comment

Threat Modeling for Online Coding Platforms

Related Posts
  • The Cloud IDE and it’s impact on DevOps
  • Will you have your IDE in a box? On a Train? With a Firefox?
  • Che: A Revolutionary IDE for the Mainframe
    Related Categories
  • Blogs
  • DevOps in the Cloud
  • DevOps Practice
    Related Topics
  • AWS Cloud9
  • cloud
  • coding
  • coding platforms
  • IDE
  • Integrated Development Environments
  • threat modeling
  • visual studio online
  • VS Code
Show more
Show less

The evolution of DevOps teams and a greater reliance on cloud-based computing has completely changed the coding process. Now, with Integrated Development Environments (IDEs), coding can be done entirely online. This is convenient, but are online IDEs secure? To answer this, we will focus on two popular cloud-based IDEs: AWS Cloud9 and Visual Studio Online.

In online coding, the IDE is rendered inside your browser, the browser JavaScript engine uses WebSockets to initiate an Secure Shell (SSH) connection to your linked device in the background—e.g. virtual private server (VPS)—providing you with the familiar terminal interface to execute commands. The environment—meaning the linked cloud VM/VPS or SSH-accessible device—includes tool configurations (like which tokens are included, or cloud configuration files), a copy of the source code, compilers and other tools that you want to use.

Figure 1. Local versus cloud-based IDE. Source: Trend Micro.

The main difference between local and cloud-based coding platforms is where the bulk of the environment resides. In cloud IDEs, the environment is a virtual machine instance inside your cloud provider. In terms of security, this means you are delegating trust to the cloud provider, but you are responsible for preventing any backdoors from opening or introducing misconfiguration issues to the VM. In the case of using your own device with AWS Cloud9, you are responsible for configuring the device securely.

Linked Devices/VMs Are Not Always Secure

What is running on the backend often dictates whether linked devices and VMs are secure. As previously described, an SSH-linked device is necessary to use these online coding platforms. In the case of Visual Studio Online (still in preview mode as of this writing), we can find a Visual Studio (VS) Code server running on the machine.

The code server itself is a Node.js application to which your browser will connect. You can also download the whole ~/.vscode-remote folder and run the server inside your local environment.

As the owner of the linked device, you have permission to promote yourself to root and install or configure whatever you think you will need. You also have, by default, both Docker and Git pre-installed.

In the case of AWS-hosted Cloud9, the situation is a little more complicated. The backend necessary for platform communication is located inside the linked device while the frontend remains hosted on a different location. But, like in VS, you can also promote yourself to root.

This brings us to our first security concern: How secure or private are linked devices/VMs?

The linked device contains confidential information—access tokens, application configurations, source code, etc., which should be protected against unauthorized access.

By default, the platform is secured by the provider. However, you should keep in mind that, together with your root access availability, you are also responsible for preventing misconfiguration issues, especially when using third-party plugins. AWS does not provide plugin support for plugins not developed by them.

There are possible misconfigurations you might make that can lead to security issues. For example, if you set your IDE to be accessible from outside, either intentionally for ease of sharing, or unintentionally, that change can have major consequences.

In addition, it is not common for access tokens to be stored in encrypted token vaults. A lot of them can be viewed via plaintext configuration files. Without additional security measures, your access tokens can end up exposed to outsiders.

Once unauthorized access is acquired by cybercriminals, they can compromise your code for their own gain. An example would be the supply chain attack against a software company that modified software updates with malware.

Browsers Can Introduce Malicious Extensions or Vulnerabilities

The next security concern is the browser itself. As online coding platforms are accessed from web browsers, you should be very careful when accessing these sites from public, non-domain, shared or unprotected computers.

Malicious browser extensions are a well-known phenomenon. While an untrusted computer possibly infected with malware presents an obvious risk, it is also possible for an attacker to steal code using a malicious web browser extension.

Code Extensions and Plugins Can Also Contain Malware

The main advantage of Visual Studio Online and, generally, the VS Code platform, is the number of extensions available. This in and of itself is yet another possible attack surface.

Let’s imagine a malicious VS Code extension—a useful-looking extension with an embedded backdoor. The lack of permission checking (such as disk access, network access, process access, etc.) for extensions during installation or use, becomes a security problem. The extent of security checks during extension publishing is limited to having a valid publisher ID and a few image-related restrictions. This means you have to trust the extension developer entirely.

No Software Application Is Error-Free

The ever-present possibility of vulnerabilities in any kind of software must be considered as well. In the case of online coding platforms, they can be affected by web-class vulnerabilities since IDEs are web applications. For example, a vulnerability that allows an attacker to execute their own JavaScript code can have control of the IDE or remote linked devices.

A recent vulnerability affecting the Visual Studio Live Share extension, which is also available for VS Code, shows that we can expect to see another vulnerability affecting online coding platforms in the near future.

Securing Cloud IDEs Is a Must for DevOps

Threat modeling allows us to understand the different factors at play that can affect the overall security of a computing environment. Cloud IDEs should be no different from other software, if not more critical to secure.

Here are some recommendations for each of the security issues we raised:

  • For linked device security — Install trustworthy software. Keep that software updated. Don’t indiscriminately open ports to the internet.
  • For browsers — Work inside trusted and secured environments. Try to avoid using shared computers. Install browser extensions from trusted vendors only.
  • For VS Code extensions — Avoid installing extensions from unknown sources or authors.
  • For vulnerabilities in general — Make sure your environment is updated to the most recent version.

Filed Under: Blogs, DevOps in the Cloud, DevOps Practice Tagged With: AWS Cloud9, cloud, coding, coding platforms, IDE, Integrated Development Environments, threat modeling, visual studio online, VS Code

  • 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