Author Topic: trojan hidden in your source code in plain sight  (Read 2301 times)

0 Members and 1 Guest are viewing this topic.

Offline madiresTopic starter

  • Super Contributor
  • ***
  • Posts: 9170
  • Country: de
  • A qualified hobbyist ;)
trojan hidden in your source code in plain sight
« on: November 01, 2021, 01:44:42 pm »
Unicode can hide a trojan in plain sight in your source code:
- CVE-2021-42574 and CVE-2021-42694
- info and whitepaper: https://trojansource.codes/
- examples: https://github.com/nickboucher/trojan-source
 
The following users thanked this post: Just_another_Dave

Offline Cerebus

  • Super Contributor
  • ***
  • Posts: 10576
  • Country: gb
Re: trojan hidden in your source code in plain sight
« Reply #1 on: November 01, 2021, 03:53:42 pm »
This should come as no surprise to anyone with a soupçon of imagination. Shades of "Reflections on Trusting Trust" but without the true cunning that that exploit involved.
Anybody got a syringe I can use to squeeze the magic smoke back into this?
 

Offline ataradov

  • Super Contributor
  • ***
  • Posts: 12463
  • Country: us
    • Personal site
Re: trojan hidden in your source code in plain sight
« Reply #2 on: November 01, 2021, 04:57:43 pm »
I'm thinking it is not that bad. All this stuff falls apart pretty fast with variety of editors and review tools. In the browser I noticed no issues at all. In my editor only examples for which GitHub complained about bidirectional Unicode text did something. And all they did was move some text to the right, which is pretty obvious and quite jarring. Some of those things broke syntax highlighting in obvious ways.

When taking non-trivial amounts of code from other places, there may be a trojan in plain ASCII.
Alex
 

Offline golden_labels

  • Super Contributor
  • ***
  • Posts: 2431
  • Country: pl
Re: trojan hidden in your source code in plain sight
« Reply #3 on: November 01, 2021, 10:13:55 pm »
We live in the age of vulnerabilities with their own brands and domains!

While interesting, worth knowing and certainly something to address, be aware the problem is not new. That class of issues has been known for years. “TrojanSource” advances the technique a bit, making the attack slightly easier to conduct. But it shouldn’t be perceived as some completely new thing or the end of the world.

A simple example in the attachment. Replacing characters in variables with look-alikes or making different variable names undistinguishable to human reader is another common way of performing such an attack.
Why 📎 | We live in times when half of people have IQ below 100.
 

Offline ataradov

  • Super Contributor
  • ***
  • Posts: 12463
  • Country: us
    • Personal site
Re: trojan hidden in your source code in plain sight
« Reply #4 on: November 01, 2021, 11:40:29 pm »
Alex
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf