backdoor

package module
v0.0.0-...-944f4a6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 18, 2019 License: MIT Imports: 3 Imported by: 0

README

backdoor

Demo for backdooring golang's http.DefaultServeMux

Note: To see an example victim scenario check out backdoor-victim

Inspiration

Any package you import, directly or through other dependencies, has access to http.DefaultServeMux and might register routes you don’t expect.

-- Filippo Valsorda

Attack

To take advantage of this feature, this is a demo of a package that registers a naughty route in http.DefaultServeMux located at /backdoor which serves up environemnt variables. This could easily exec commands, serve up files or directories and other nefarious business.

I think the main advantage to this attack is that it can be made real sneaky-like. Though it's probably no more impressive than other third-party library attacks.

However, the network traffic associated with this kind of backdoor can more easily blend-in to normal process behavior which can be an advantage for attackers not looking to spawn other connections/processes which can be easily caught because it may go outside the lines of "expected" behavior by tuned IPS/IDS systems.

If you have any thoughts on it, feel free to share!

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FakeFunctionality

func FakeFunctionality()

FakeFunctionality provides a function that does nothing, but is as a wonky example of why someone might use this code as a depency in the first place.

No code is best code, right?

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL