Jump to content

Idea - Run code using a youtube video

Faisal A

Wouldn't it be possible to run code using a youtube video by putting the pixels in such a format that when the computer executes it, it executes code instead ? And if it is possible, what could be done to avoid that type of attack. Not planning to do anything just wondering.

If you want me to see your reply, please tag me @Faisal A

Link to comment
Share on other sites

Link to post
Share on other sites

yeah , easy

this was done in the 1990s on vhs tapes that stored digital data in the form of static , you could play the tape in a vcr and the pc could read each static pixel and decode the information.

As for an attack via youtube , no you would need a program on the user side to read the static

Link to comment
Share on other sites

Link to post
Share on other sites

5 minutes ago, Faisal A said:

Wouldn't it be possible to run code using a youtube video by putting the pixels in such a format that when the computer executes it, it executes code instead ? And if it is possible, what could be done to avoid that type of attack. Not planning to do anything just wondering.

imageproxy.jpg.44460796127bf31f53258d3125e4083a.jpg

it cant be done with "pixels" and youtube converts videos in to their format so you wont be hacking people off youtube, malicious payload was possible to hide in to some media formats, (IIRC there was one instance where malware was injected in to IDV3 tag of mp3 files but that didnt fuck up playback)

mY sYsTeM iS Not pErfoRmInG aS gOOd As I sAW oN yOuTuBe. WhA t IS a GoOd FaN CuRVe??!!? wHat aRe tEh GoOd OvERclok SeTTinGS FoR My CaRd??  HoW CaN I foRcE my GpU to uSe 1o0%? BuT WiLL i HaVE Bo0tllEnEcKs? RyZEN dOeS NoT peRfORm BetTer wItH HiGhER sPEED RaM!!dId i WiN teH SiLiCON LotTerrYyOu ShoUlD dEsHrOuD uR GPUmy SYstEm iS UNDerPerforMiNg iN WarzONEcan mY Pc Run WiNdOwS 11 ?woUld BaKInG MY GRaPHics card fIX it? MultimETeR TeSTiNG!! aMd'S GpU DrIvErS aRe as goOD aS NviDia's YOU SHoUlD oVERCloCk yOUR ramS To 5000C18

 

Link to comment
Share on other sites

Link to post
Share on other sites

6 minutes ago, Faisal A said:

by putting the pixels in such a format that when the computer executes it

You don't execute a video when you watch it. It doesn't work like that.

Hand, n. A singular instrument worn at the end of the human arm and commonly thrust into somebody’s pocket.

Link to comment
Share on other sites

Link to post
Share on other sites

Kind of sounds like how some programs used to be produced on a cassette tape:

 

"We're all in this together, might as well be friends" Tom, Toonami.

 

mini eLiXiVy: my open source 65% mechanical PCB, a build log, PCB anatomy and discussing open source licenses: https://linustechtips.com/topic/1366493-elixivy-a-65-mechanical-keyboard-build-log-pcb-anatomy-and-how-i-open-sourced-this-project/

 

mini_cardboard: a 4% keyboard build log and how keyboards workhttps://linustechtips.com/topic/1328547-mini_cardboard-a-4-keyboard-build-log-and-how-keyboards-work/

Link to comment
Share on other sites

Link to post
Share on other sites

I'm not sure I understand.  If you mean store code in video formats then yes, as mentioned this is similar to tape tech from decades ago.  But video decoders are not in the habit of interpreting their output signal as instructions and running them so you can't run code stored this way by just watching the video.

 

Considerations for storing code would be that it has to survive the compression process, so you will not get perfect RGB data on a pixel by pixel level.

Solve your own audio issues  |  First Steps with RPi 3  |  Humidity & Condensation  |  Sleep & Hibernation  |  Overclocking RAM  |  Making Backups  |  Displays  |  4K / 8K / 16K / etc.  |  Do I need 80+ Platinum?

If you can read this you're using the wrong theme.  You can change it at the bottom.

Link to comment
Share on other sites

Link to post
Share on other sites

1 minute ago, WereCatf said:

You don't execute a video when you watch it. It doesn't work like that.

you'd have to essentially have a program on the victims end that would read the screen information and a regular player wont do that

 

1 minute ago, Minibois said:

Kind of sounds like how some programs used to be produced on a cassette tape:

exactly that , thats how vhs did it in the old days

the concept is possible today easily , but again both ends would need compatible softwares

Link to comment
Share on other sites

Link to post
Share on other sites

2 minutes ago, WereCatf said:

You don't execute a video when you watch it. It doesn't work like that.

But then who kills it to replace it with the next one?

Bethesda PC:   R7 3700X  -  Asrock B550 Extreme 4  -  Corsair Dominator Platinum RGB 16GB@3.6GHz -  Zotac AMP Extreme 1080TI -  Samsung 860 Evo 256GB  -  WD Blue 2TB SSD -  500DX  -  Stock cooling lul  -  Rm650x

CrumpleBox V3:  Xeon X5680  -  Asus X58 Sabertooth  -  DDr3 16GB@1.33Ghz  -  Gigabyte 1660s -  TT smart RGB 700W  -  

Cooler Master Storm Trooper  -  120GB Samsung 850 Pro   -  LTT Edition Chromax NH-D15 ?

 

CrumpleBox 3 ROTF: I5-6400  -  MSI B150m Mortar  -  16GB 2133Mhz Vengeance Pro RGB  -  Strix 1070Ti - GTX 1070 FE  -  Adata 128GB SSD  -  Fractal Design Define C  -  Gammaxx 400V2  -  Cooler Master silent pro gold 1000W

CrumpleBox 2: i7-7820x - MSI X299 Raider - 32GB Thermaltake Toughram 3.6Ghz - 2x Sapphire Nitro Fury - 128GB PCie Adata SSD - O11 Dynamic - EVGA CLC 360 - Corsair RM1000X

 

Perhiperals:  Gateway 900p60 monitor  -  Dell 1024x768@75  -  Logi. G403 Carbon  -  Logi. G502  -  SteSer. Arctis 5  -  SteSer. Rival 110 - Corsair Strafe RGB MK.2

 

 

Link to comment
Share on other sites

Link to post
Share on other sites

15 minutes ago, Faisal A said:

Wouldn't it be possible to run code using a youtube video by putting the pixels in such a format that when the computer executes it, it executes code instead ? And if it is possible, what could be done to avoid that type of attack. Not planning to do anything just wondering.

Can easily be done, but there is nothing already in place to 'read' them pixels so doign something to prevent it is unessasery.

 

It's what they used on TV signals to put the closed captions as a selectable thing. But even those wont execute code, it would just display it on screen.

When i ask for more specs, don't expect me to know the answer!
I'm just helping YOU to help YOURSELF!
(The more info you give the easier it is for others to help you out!)

Not willing to capitulate to the ignorance of the masses!

Link to comment
Share on other sites

Link to post
Share on other sites

No, you can't get a computer to run a program just by uploading it to youtube pretending that it's a video.

Don't ask to ask, just ask... please 🤨

sudo chmod -R 000 /*

Link to comment
Share on other sites

Link to post
Share on other sites

YouTube transcodes their video, so if the "code" was individual pixels?

 

Well, no more code. Because after transcoding, there will be minute pixel by pixel differences.

 

However, if you had an unaltered video, where the "code" was baked in during the encoding process, sure - you're halfway there.

 

But as others have said, the computer won't do anything with the code.

 

That'd be the equivalent of me looking at code for malware in a text file. Seeing the code is meaningless - I need something to execute the code. And no video player on the market would execute code based on pixels. You'd have to have already included malicious code in a Video Player (such as YouTube's web client, or VLC, or something), in order to achieve whatever it was you wanted to do. And at that point, you've already compromised a program, just have it do whatever you wanted.

 

TL;DR, no. This won't work for numerous reasons.

For Sale: Meraki Bundle

 

iPhone Xr 128 GB Product Red - HP Spectre x360 13" (i5 - 8 GB RAM - 256 GB SSD) - HP ZBook 15v G5 15" (i7-8850H - 16 GB RAM - 512 GB SSD - NVIDIA Quadro P600)

 

Link to comment
Share on other sites

Link to post
Share on other sites

3 minutes ago, dalekphalm said:

YouTube transcodes their video, so if the "code" was individual pixels?

 

Well, no more code. Because after transcoding, there will be minute pixel by pixel differences.

I dunno about this specifically; so long as there was a healthy amount of error-correction built into how OP would want to read code from a video, it could be plausible but not really practical to read code from a YouTube video.

The main problem here is that OP also wants to do individual pixels rather than trying to work around how a video codec would compress a video. In a case like that, YouTube (and frankly, any realistic video encoder) is gonna want to compress the hell out of that. If the video was, say, a 1920x1080 video at 60fps, OP could potentially try shoving what he needs to shove in a video using something like 8x8 blocks, but even still, I don't think that'd work the way OP would want it to.

Check out my guide on how to scan cover art here!

Local asshole and 6th generation console enthusiast.

Link to comment
Share on other sites

Link to post
Share on other sites

9 minutes ago, Dan Castellaneta said:

I dunno about this specifically; so long as there was a healthy amount of error-correction built into how OP would want to read code from a video, it could be plausible but not really practical to read code from a YouTube video.

Sure you could do that, but then it's no longer individual pixels, because you'd have to use larger blocks of pixels to ensure that none of your code was changed inadvertently.

 

That part could definitely be done, but the 2nd half of the equation makes it all pointless.

9 minutes ago, Dan Castellaneta said:

The main problem here is that OP also wants to do individual pixels rather than trying to work around how a video codec would compress a video. In a case like that, YouTube (and frankly, any realistic video encoder) is gonna want to compress the hell out of that. If the video was, say, a 1920x1080 video at 60fps, OP could potentially try shoving what he needs to shove in a video using something like 8x8 blocks, but even still, I don't think that'd work the way OP would want it to.

Agreed.

For Sale: Meraki Bundle

 

iPhone Xr 128 GB Product Red - HP Spectre x360 13" (i5 - 8 GB RAM - 256 GB SSD) - HP ZBook 15v G5 15" (i7-8850H - 16 GB RAM - 512 GB SSD - NVIDIA Quadro P600)

 

Link to comment
Share on other sites

Link to post
Share on other sites

I used to use VBS on my old Amiga to backup the hard drive onto VHS

 

http://www.generationamiga.com/2017/09/03/video-backup-system-connect-a-vcr-to-your-commodore-amiga-computer-to-backup-data/

 

 

So without anythign to decode it it would be useless

Folding Stats

 

SYSTEM SPEC

AMD Ryzen 5 5600X | Motherboard Asus Strix B550i | RAM 32gb 3200 Crucial Ballistix | GPU Nvidia RTX 3070 Founder Edition | Cooling Barrow CPU/PUMP Block, EKWB Vector GPU Block, Corsair 280mm Radiator | Case NZXT H1 | Storage Sabrent Rocket 2tb, Samsung SM951 1tb

PSU NZXT S650 SFX Gold | Display Acer Predator XB271HU | Keyboard Corsair K70 Lux | Mouse Corsair M65 Pro  

Sound Logitech Z560 THX | Operating System Windows 10 Pro

Link to comment
Share on other sites

Link to post
Share on other sites

1 hour ago, Faisal A said:

Wouldn't it be possible to run code using a youtube video by putting the pixels in such a format that when the computer executes it, it executes code instead ? And if it is possible, what could be done to avoid that type of attack. Not planning to do anything just wondering.

Yes, it's possible, but it requires:

  • Something to scan the video feed, either directly from frame buffer data off the video card or from a camera
  • Something that understands what its reading is code that can be executed, not data.

Basically you're suggesting flashing QR codes in succession. Only this QR code contains code and data instead of just data.

 

The only problem is data density and the fact YouTube compresses video. So you need to have the video show something with a large enough tolerance such that compression doesn't mangle it. This likely limits you to a low bit color schema if not black and white only.

 

EDIT: You can limit using this for nefarious purposes by treating the pixels in the video as data only. This is why QR code attacks haven't really been a thing. All (at least trusted) QR code readers treat what they read as data only.

 

Although certain types of data may cause denial-of-service type attacks, like the Billion Laughs attack for XML files. It's still data, but it's data designed in such a way that a reader will blow up trying to look at it.

Link to comment
Share on other sites

Link to post
Share on other sites

7 hours ago, Faisal A said:

Wouldn't it be possible to run code using a youtube video by putting the pixels in such a format that when the computer executes it, it executes code instead ? And if it is possible, what could be done to avoid that type of attack. Not planning to do anything just wondering.

That is a fabulous idea actually. 

Sudo make me a sandwich 

Link to comment
Share on other sites

Link to post
Share on other sites

Could be used for Steganography..embeding messages to pass along...Linus could have messages in the backgrounds of videos that his sleeper agents around the globe use special programs that translate the messages so they know when to begin the sandalista revolution.....

 

but there's easier ways of doing that.

🖥️ Motherboard: MSI A320M PRO-VH PLUS  ** Processor: AMD Ryzen 2600 3.4 GHz ** Video Card: Nvidia GeForce 1070 TI 8GB Zotac 1070ti 🖥️
🖥️ Memory: 32GB DDR4 2400  ** Power Supply: 650 Watts Power Supply Thermaltake +80 Bronze Thermaltake PSU 🖥️

🍎 2012 iMac i7 27";  2007 MBP 2.2 GHZ; Power Mac G5 Dual 2GHZ; B&W G3; Quadra 650; Mac SE 🍎

🍎 iPad Air2; iPhone SE 2020; iPhone 5s; AppleTV 4k 🍎

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×