iTnews
  • Home
  • News
  • Technology
  • Security

Most programming languages vulnerable to Trojan Source attack

By Juha Saarinen on Nov 2, 2021 4:34PM
Most programming languages vulnerable to Trojan Source attack

When reading the source isn't enough.

Researchers have discovered an oblique way to maliciously modify source code to create exploits, without raising code reviewers' suspicion.

Named Trojan Source [pdf] by University of Cambridge researcher Nicholas Boucher and well-known infosec luminary Ross Anderson, the vulnerability allows attackers to maliciously  encode source code so that it compiles differently to how it appears to the human eye.

This, the researchers said, leads to vulnerabilities that can't be perceived by human code reviewers.

By using the control characters for the Unicode formatting Bidirectional Algorithm, or Bidi, which is used to support both left-to-right and right-to-left languages, attackers can overide text ordering in source code to produce malicious outcomes that aren't immediately visible to developers.

Trojan Source could be used to attack first-party software as well as in supply attacks, Boucher and Anderson said.

The researchers were able to demonstrate Bidi vulnerabilities in several popular programming languages, include C, C++, Javascript, Java, Rust, Go, Python and C#.

Boucher and Anderson contacted compiler vendors with vulnerability reports, but the response has so far been patchy.

"About half of the compiler maintainers we contacted during the disclosure period are working on patches or have committed to do so," the researchers said.

"As the others are dragging their feet, it is prudent to deploy other controls in the meantime where this is quick and cheap, or relevant and useful."

To mitigate against Trojan Source, Boucher and Anderson said the simplest way is to ban the use of text directionality control characters both in language specifications and in compilers implementing them.

Got a news tip for our journalists? Share it with us anonymously here.
Copyright © iTnews.com.au . All rights reserved.
Tags:
cgojavajavascriptnicholas boucherpythonross andersonrustsecuritysoftwaretrojan source

Partner Content

Security "mindset shift" needed to protect organisations
Promoted Content Security "mindset shift" needed to protect organisations
Accenture and Google Cloud team up to create a loveable, Australian-first, renewable energy product
Promoted Content Accenture and Google Cloud team up to create a loveable, Australian-first, renewable energy product
Security: Understanding the fundamentals of governance, risk & compliance
Promoted Content Security: Understanding the fundamentals of governance, risk & compliance
The Great Resignation has intensified insider security threats
Promoted Content The Great Resignation has intensified insider security threats

Sponsored Whitepapers

Extracting the value of data using Unified Observability
Extracting the value of data using Unified Observability
Planning before the breach: You can’t protect what you can’t see
Planning before the breach: You can’t protect what you can’t see
Beyond FTP: Securing and Managing File Transfers
Beyond FTP: Securing and Managing File Transfers
NextGen Security Operations: A Roadmap for the Future
NextGen Security Operations: A Roadmap for the Future
Video: Watch Juniper talk about its Aston Martin partnership
Video: Watch Juniper talk about its Aston Martin partnership

Events

  • Micro Focus Information Management & Governance (IM&G) Forum 2022
  • CRN Channel Meets: CyberSecurity Live Event
  • IoT Insights: Secure By Design for manufacturing
  • Cyber Security for Government Summit
  • Forrester Technology & Innovation Asia Pacific 2022
By Juha Saarinen
Nov 2 2021
4:34PM
0 Comments

Related Articles

  • Student hacker behind ctx and phpass repo-jacking steps forward
  • The Good Guys pauses facial recognition trial
  • Collins Foods puts IT focus on security controls, cloud services
  • Origin Energy goes public with bug bounty program
Share on Twitter Share on Facebook Share on LinkedIn Share on Whatsapp Email A Friend

Most Read Articles

Qantas calls time on IBM, Fujitsu in tech modernisation

Qantas calls time on IBM, Fujitsu in tech modernisation

Researchers hacked Oracle servers to demo serious vulnerability

Researchers hacked Oracle servers to demo serious vulnerability

PayTo rollout kicks off

PayTo rollout kicks off

Australian scientists build world's first quantum computer IC

Australian scientists build world's first quantum computer IC

Digital Nation

IBM global chief data officer on the rise of the number crunchers
IBM global chief data officer on the rise of the number crunchers
Crypto experts optimistic about future of Bitcoin: Block
Crypto experts optimistic about future of Bitcoin: Block
Integrity, ethics and board decisions in the digital age
Integrity, ethics and board decisions in the digital age
The security threat of quantum computing
The security threat of quantum computing
COVER STORY: Operationalising net zero through the power of IoT
COVER STORY: Operationalising net zero through the power of IoT
All rights reserved. This material may not be published, broadcast, rewritten or redistributed in any form without prior authorisation.
Your use of this website constitutes acceptance of nextmedia's Privacy Policy and Terms & Conditions.