PDA

View Full Version : Providers Secrets Revealed


Ohms
07-01-2006, 07:41 AM
I am posting this in hopes it will both add to other peoples’ understanding of the attack on the card, and also spark some of the smart guys (not the smart asses) out there to comment and correct any misstatements contained herein.
It should be known by all that I am not a coder, and that the following is only speculation on my part. My description is based on applying my knowledge of IP attack techniques to smart card attacks. I know nearly nothing about assembly language programming. Knowing that Crazy is pretty good at this stuff, I wanted to get some validation of my concept of the glitching process so I asked him to correct me where I was wrong. I guess I got lucky at best as he thought I had things pretty well right.
-----------------------------------------------------------------------
PART 1
Wordreference dot com defines ‘glitch’ as “a fault or defect in a system or machine”.
Synonymous with imperfection, defect, fault, bug.

Glitching is (in our hobby) used as a term for trying to break into a CAM (Conditional Access Module, or in layman’s terms, an access card). It is done by applied voltage pulses, stepping through varying levels and durations and delays. These pulses are applied during normal code execution by the CAM. This normal code execution would be during a reset, or a CMD. The intention of this attack is to interrupt the normal execution of code with what we refer to as an ABEND or Abnormal End of operation. This is a condition where the running process hangs or crashes and processing stops mid-stream.
At this point in the glitching process, the kernel is exposed to foreign code injection by the attacker. If one can send a new instruction to the processor, it will obey and do as it is being asked. This is similar in concept to an IP based buffer overflow attack.

Successful execution of this attack technique will result in the attacker having taken control of the system and executing whatever code he can make it process. The CAM, or at least the part of the CAM that was compromised, is now “OWNED”.
----------------------------------------------------------------------
PART 2
How could good security practice make complete CAM compromise almost impossible?

Again, in the interest of full disclosure, I need to point out that the following is speculation based on security practices from a completely different industry. I welcome ANYONE that would like to add informed analysis or correction of my statements. I don’t claim to be the world’s renowned authority on this subject.
I do not know anything specific about how DTV has deployed security on the P4 cards. What I do know for a fact is that they have done a great job of securing these CAMS. This is evidenced by the inability of many of the smartest crackers in our hobby to penetrate the CAM’s defensive systems.

Security 101
The way to make the invasion stop dead in its tracks is to deploy layered security. Deploying a secure system also means separating processes and transactions into layers. By creating separation between the transactions, each transaction or group of transactions can be secured by a separate security sub-system. No single sub-system compromise can expose more to the attacker than the transactions contained within it. There needs to be a reasonable layer of security to each layer of the transaction process not only within the CAM, but for both CAM to IRD, and for IRD to CAM communication. Setting things up this way means that an attacker will need to research his way into the system every step of the way.

Each layer provides an additional degree of ambiguity. Attackers dealing with a high level of ambiguity will find their effectiveness declines rapidly and every small success takes much longer to achieve. Combine this sort of well documented security philosophy with a reasonably designed intrusion detection system and the chances that an attacker will go undetected become extremely miniscule. At this point, most will either stop their attempts or begin to make so little progress that efforts will be redirected to some other target where their work may bear some fruit.

Let me provide an example of the above concept using the internet.

Let’s say you hang an FTP server out there on your high speed cable modem, protected with nothing except a login name and password.

If I were trying to gain access to the….oh, I don’t know…..let’s say the video files that you had stored on this server, I could do it quite easily. The server would probably have many processes running, and each one would have password protection, right? FTP, Windows Networking, Telnet, Terminal Server, PC Anywhere (God forbid), etc, etc, etc. Now I could guess that probably one of these services would have a username of ‘Administrator’. Even if you used pretty strong passwords, I could write a very simple script that would try every possible combination of alpha numeric characters until eventually I WOULD find the correct one. This could take an extended period of time. But it would work and I would gain access. FREE TV FOR ME.

Now take that very same server and put it behind a firewall that filters all but FTP traffic. The result would be that all of those other services would be in effect turned off to me. Terminal Server, for example, where an attacker could reasonably guess that ‘Administrator’ would be a usable username, would no longer be an available target. So now the attacker doesn’t know what the username might be. They will have to guess that too. This compounds the resistance to attack exponentially. Add into that an intrusion detection system that only allows 3 wrong password attempts in 1 hour.

MUCH more secure, right? Yes that is true, however a skilled attacker still might find a way in. Let’s consider how.
If an attacker could now only make connections on TCP port 21 because the firewall denies all other connection attempts and intrusion detection eliminates the ability to guess passwords unchecked, another method must be used. There are other methods.

If an attacker could gain knowledge of what FTP server software was running on the server through enumeration, then he might uncover a known flaw. Most all software has flaws. Many of them are yet to be discovered, but many, many flaws are already known. Let’s say that I send a certain type of packet to the server and it is handled in a way that is unique to XYZ brand of FTP software. I see the unique response and I know instantly that the server is running XYZ FTP software. A simple Google search will reveal any number of vulnerabilities which could be exploited and it’s FREE TV FOR ME……Or is it?

Not so fast. Remember we added intrusion detection. Even the least expensive intrusion detection systems can catch most of the exploits that XYZ FTP software is vulnerable to. It could shun the attacker (think caller ID blocking) at the firewall and he would have to get a new IP address before he could even try again with a different exploit.

Lots more secure now, right? Yes it is considerably more secure than before. But is it secure? Could it still be compromised by a skilled attacker? Yes it could. A VERY skilled attacker could craft a new exploit that used TCP Port 21, and didn’t trigger any signatures on the IDS because this attack is a one off, and is previously unknown, AND, worked on XYZ FTP software. Excellent ownership for the skilled attacker indeed. He wins a hard fought battle. If this attacker were a freeware coder, it would be FREE TV FOR EVERYONE!!!!!

So what have we done so far? We have added only one security system and one extra layer to traverse. By doing this, we have prevented compromise by all but the most skilled attacker. Not many of them around and they would need to be motivated to put forth that much effort. Those must be some of those “PRON” videos we have been hearing about lately from all the free TVers…. LOL (Yes I know it’s porn not pron. This was a joke)
Now let’s add some layers to this analogy. After all, layers were what I said before were the key to a good security system. Could layers really make this even more secure? Oh yeah, baby! Much more secure.

Let’s say the highly desired adult training video files aren’t even on the FTP server. Let’s say there is another firewall and intrusion detection system between the video files and the FTP server. So we put a second network card into the FTP server, and connect it to the second firewall/IDS. The firewall IDS will not accept ANY data unless it is sourced from the FTP server. This gets the request for the video files into the firewall, but not to the video files server.

Let’s further say that the server with the video files only communicates using a secret homemade protocol that is not known by anyone except you. There is NO record of this secret protocol anywhere on the FTP server. The FTP server requests the files sending a normal FTP GET request to yet another server on the other side of another firewall. This server is running a custom operating system with no known vulnerabilities. The firewall filters requests to this second server and there is another intrusion detection system at this layer.

This second server translates the FTP GET request to the secret communications protocol and sends the request along through yet another firewall and intrusion detection system to the server where the video files are actually stored. By the way, all of this secondary firewall to server to firewall communication is encrypted with 256 bit AES encryption or 3DES IP SEC or something really, really hard to crack. Consider that the encrypted tunnel termination endpoints are the firewalls not the servers. This forces the attacker to not only compromise the servers, but the firewalls as well. That ought to do it. This should effectively obfuscate the secret communications protocol so no one can get a look at it. Hell, we don’t even know what language the damn thing is speaking so how are we going to attack it? This is getting much harder.

The firewall encrypts the request and sends to the next server. Each firewall along the way will inspect the request from the previous sub-system, and make sure it contains the correct credentials for the next server at the next layer. The server at the last layer also requires the correct credentials to access the files which are encrypted on the hard drive. No where else in this entire system are the keys to the encrypted files found. That means even this server must be compromised before the files can be stolen. And so on and so on. Layers make a big difference.

Good luck getting those prized adult training video files now. Sorry, but there will be NO FREE TV from the cache of adult training video files you have available on your cable modem any longer unless someone leaks out all the secret handshakes and passwords.
Or…..perhaps…… is there another way that is not obvious here……. I think there might be another way……
But like I said, I am no coder so from this point forward, you’re on your own…..
-----------------------------------------------------------------------
This above scenario is 100%real. It’s a cat and mouse game played every day by security professionals and those who would steal credit card info or other personal information from internet based servers. I realize that this is not the same as CAM security. There are many similarities though and you can look at one and see things familiar in the other.

My friend Seaboard said this when he read the above post text.
“The example would need to be more focused in respect to the CAM and the IRD and tied into the provider’s encryption server. In the case of testing cams and IRD's, the stream is a one way street, interaction does take place but one way, not two way.. The IRd can't send commands back to the provider.
Commands are tested and known to work before they are sent into the stream.
If the provider actually screws up a card, his technical support line lets him know what he has to do to fix the problem. He has choices... the cams have the ability to run unencrypted or in this case N1 encryption if his new code fails him, such as the cmd 07 may have done. It’s really hard to tie in an ftp server for an example.”

Seaboard is absolutely correct that it is really hard to correlate between the two different types of systems. I use FTP and IP because that is what I know. Security is security and I believe there is something to be applied in the FTP example.

Thanks for taking the time to read all of this. I hope it sparks some discussion here, or on another site somewhere.

skinerd
07-01-2006, 08:25 AM
There is no doubt in my mind that someday, prollly sooner than we'd like, cards will not be practically glitchable. By adding complexity to the schemes used by the card's processor and memory that will happen.

badger6
07-01-2006, 08:32 AM
You mean the cardless will be not glitchable. All they have to do is physically secure the cards in the reciever and make it a bitch to get to it. Combine that with the software and only the elite will even try.

skinerd
07-01-2006, 09:45 AM
You mean the cardless will be not glitchable. All they have to do is physically secure the cards in the reciever and make it a bitch to get to it. Combine that with the software and only the elite will even try.

Exactly, then testing for the masses will be over......cause even if someone figures it out, it will not be practical or easy to do.

badger6
07-01-2006, 09:54 AM
Testing for the masses over ??? Stop before you create a mass panic, ha ha ha.

Ohms
07-01-2006, 05:56 PM
I keep hoping something will come up for DTV, but it has not. It may never. Some progress has been made, but it's tiny little increments. How long has it been now?

Look at digital cable. Prior to that, black cable boxes were everywhere. Now it is a dead industrey. As fare as I know, there are no hacked digital cable boxes either.

I fear skinerd is right and it may be sooner than we think. I hope not, but it may.

golk75
07-01-2006, 06:25 PM
I keep hoping something will come up for DTV, but it has not. It may never. Some progress has been made, but it's tiny little increments. How long has it been now?

Look at digital cable. Prior to that, black cable boxes were everywhere. Now it is a dead industrey. As fare as I know, there are no hacked digital cable boxes either.

I fear skinerd is right and it may be sooner than we think. I hope not, but it may.

So you are the Cookie Monster!

Ohms
07-01-2006, 07:22 PM
um yeah....that's it.

aracheb
07-01-2006, 09:05 PM
the problem with those hack is not the imposibilities to hack,, is the imposibillities to make money out of them right now.. a people or a group of people, who would invest their time breaking throught those system. will be a group who would like to have their invested time back on money soon enought, but with the imposibilities of spreading out their system, or their future or not future created hardware for those purpose, there will be no reason, on making them,
what will the the interest on hacking p4 if you are not going to make any money of it. if everwhere you try to sell it, DTV will be there before you, to get you....

major1
07-01-2006, 09:10 PM
Thanks Ohms for some great reading!!!

aracheb
07-01-2006, 10:02 PM
and that layer system for security is nothing new, at least i could be for cards.. is like climbing a round stairt, where in each step there is a door, that depending on how or when you open them, it could lead you or to the gold room, or to the room where the beast lies.....
is true, it could take a lot of time.. but with the right motivation $$$$ and the equipment.... but most of all ($$$$$) the right motivation.... it can be open in a 1 2 3

Ohms
07-02-2006, 12:56 AM
There has been millions of dollars up for grabs for a long time now, in both the Digital Cable or Direct TV hack. Many millions IMO. This potential money has not provided us with a hack for either of those systems. I'm not saying it's impossible. Just almost impossible. It could happen, but probably will not.

fubr
07-02-2006, 04:24 AM
This thread needs to really keep going. Maybe the bullshit will remain silent for this one and you guys can do some serious discussing

Ohms
07-02-2006, 04:47 AM
Thanks fubr,
I hope others will add to this so we can share in some speculation about what is happening and what is going to happen. I find it fascinating myself.

I have heard stories of the P4 having firewall and intrusion detection on it. Tales of looped cards from glitch attempts and no coherent responses from the card make me think my analogy above may in fact be what they have done. It would make sense as the card has not been compromised as far as we know.

I would like to point out that the servers that I have buried behind gauntlets of firewalls and intrusion detection have not been compromised either. Not bragging, but I do know these methods work very well.

The nagra2 security is proving to be tough too. Right now, the only "testing" that is working is a REAL ROM card. None of the other methods that people have spent hundreds of thousands of dollars on are working now, and some if not all may not ever work again.

REV107 has caused many rom102s to loop when glitching was attempted. REV109 looks pretty loopy too. New CMDs are showing up and the math coprocessor is becoming an item of interest like never before.

Is Charlie implementing some of the methods I described above? Hard to say, but if they are, they are also doing other things. Counter measures with encryption and obfuscation are showing up in the 102 revs.


As always, constructive comments are welcome.

Beavervillain
07-02-2006, 05:03 AM
The problems with hacks for DTV and digital cable as i see it is:
DTV:
have their own system which makes info gathering harder. Dish and Bell use a system that is used all over the world so there are way more people who have input. Most fixes for them come from overseas. And this makes lawsuits from the providers against the people who publish these hacks/fixes unlikely.
Digital cable:
Is a two way street. Info is transmitted to and from the cable reciever via the cable itself unlike Satellites which require a phone line. So it is easier for cable companies to run checks on your equipment. And any hack on those has to be done directly to the reciever itself through some kind of modification.
JMHO

seaboard18
07-02-2006, 05:43 AM
Its my opinion that any new hacks should be kept secret in the future. I am not really against free TV for the general public but hacks breed trouble and once down, they may never return and if they do, don't ever expect them to last very long.

Mili offers the best options for testing and any of the options listed will give you a reasonable chance to watch free TV for a reasonable length of time. That is smart testing. I understand what you are thinking about now, rom 10, Atmega, FTA and 101 cemu worked great and even came back from the grave more than a few times. Although its possible that the provider will reverse his self again if subs have problems, you can't count on these testing devices as reliable now or in the future. You can count on 102 cards to work until the end of mpeg2. Smart coders will write blockers for 102 cards and fixes will be available.

Now is the time to forget about rom 10, Atmega, FTA and 101 cemu and concentrate on 102 and 103 cards as your new testing options. If these alternatives are not for you, then you need to subscribe and forget testing because this is the future. I really hope that you understand this.

fubr
07-02-2006, 05:48 AM
Ohms,
IF (notice I said if and not when) I need to get into s system or networks to screw something up or to cause problems to some IS asshole I have no ideal how to "gain" access to his password or user name. I do however have many skills that are not computer related.
Like what?, well I would hide a camera in the a/c vent and record him typing it in.
Maybe flirt with his girlfriend. maybe splice his monitor cable on his off day and put a second monitor in the closet across the hall and spy on him.
My point is without some help we may very well be fucked someday. The help I speak of already has paid off for us in the past and now, even those data sheets from south o border help with the hardware end of it.

If we did not know what to type in the boxes all we see is ********. but if looking in the right place and in the right language we see under the mask and lo and behold nipper is not only a butt liker but a tea bagger as well.

WyldCherry
07-02-2006, 05:57 AM
well actually same would go for the 102's if the provider gets by the blockers can loop the Heck out of them.remember what happened to the rom3's.Nothing in this hobby is a safe bet.but you do need to have a sub atleast the basics if you plan on testing.right now if they get by the blockers and it goes rev109 there isn't any public freeware that can unlock those.I can see the rom10 gone and the 101's Atmegas can come back since they are emulators but lack the support like once had because they will be or are harder to get back up.FTA will come back but those that are only the higher end and have the best support.Only my Opinion tho.

Ohms
07-02-2006, 06:11 AM
HA HA HA HA
Friggin Fubr!!! You ol hacker you!
What you just described is (in the security world) called social engineering. It is a technique that works so well, that it is often used instead of and before the techno hack we are all familiar with. I like the way you describe it too. Very good man!!!!

Indeed what is needed for the DTV security would most likely come from social engineering rather than electronic or software engineering. Who knows, it may someday become available. I hope so. I would love to get the NFL Sunday Ticket. :)

Now your line about nipper, Classic dude!!!!

Beavervillian, your observation about the 2 way street is right on the money.

Seaboard, right again and as usual.

fubr
07-02-2006, 06:45 AM
I did not want to mess this thread up and start a hijack so I put a reply here OHMS

http://www.dssftp.com/forum/showthread.php?p=382161#post382161

epapas
07-02-2006, 08:11 AM
For the cable there is two way communication between the receiver and the provider. There were filters which which blocked the receiver from transmitting information to the provider, like the user purchasing a ppv movie. I remember reading in a forum these filters would cause the internal memory of the receivers to fill since the data wasn't being transmitted to the provider. I believe once the memory was full the user wasn't able to purchase more events/movies. As soon as people removed the filters, all the information about the purchase history would then be sent to the provider. Now I am wondering, isn't it possible to "do something" such that this internal memory of the receiver could be cleared or reset to some original state? I also realize it isn't practical to have the filters on the cable because once the provider realizes that the receiver hasn't been communicating to them over a few days that something is up, but if one were able to delete the purchase from the memory before the receiver communicated the order to the provider, wouldn't that work?

(Am I on the wrong train of thought? I also know it is alot easier said then done.)

Ohms
07-02-2006, 08:18 AM
Interesting idea epapas. i have also heard of these filters. I wonder if there is a way to clear the nvram on those boxes, there must be a command that resets to factory defaults, but without a jtag port or something like that, how would we issue the command.
I'm sure if it were this simple it would be talked about all over the place by now.
Good point though.

aracheb
07-02-2006, 10:35 AM
For the cable there is two way communication between the receiver and the provider. There were filters which which blocked the receiver from transmitting information to the provider, like the user purchasing a ppv movie. I remember reading in a forum these filters would cause the internal memory of the receivers to fill since the data wasn't being transmitted to the provider. I believe once the memory was full the user wasn't able to purchase more events/movies. As soon as people removed the filters, all the information about the purchase history would then be sent to the provider. Now I am wondering, isn't it possible to "do something" such that this internal memory of the receiver could be cleared or reset to some original state? I also realize it isn't practical to have the filters on the cable because once the provider realizes that the receiver hasn't been communicating to them over a few days that something is up, but if one were able to delete the purchase from the memory before the receiver communicated the order to the provider, wouldn't that work?

(Am I on the wrong train of thought? I also know it is alot easier said then done.) i would be great if the filter could have a microporcessor, and some codes that allows the filter to log the commands, from a full week of checking in the system.. while you are watching tv.. them store those command, on a separated memory... and keep sending those signals.. like you where watching the same and same tv programs all days... to the provider.... and in the back will be blocking the reciever signal from sending the signal to the provider... and it wont be storing any data.. i will shredd the data in the instant..

aracheb
07-02-2006, 10:48 AM
i would shred the data, by simulating the signals that the provider supply when it recieve the data from the reciever.. but otherwise than processing the data, it would dump that data...
save the normal data of the actual program you are watching with the filter placed in your reciever, and in the same time dumping the data of the ppv.. and any other data that need to be dumped...

aracheb
07-02-2006, 10:56 AM
and the saved data would be use for new data to send to the provider, to simulate standart watched tv..

fubr
07-02-2006, 04:25 PM
The advantage to Charlie rather than Dave is the ird manipulation.
i.e. jkeys and tsops.

rg6a
07-02-2006, 05:42 PM
and the saved data would be use for new data to send to the provider, to simulate standart watched tv..


These digital video cable terminals can be purchased at big box electronic stores, so the Cable Co., doesn't have to know you have one. Thing is it needs a 'hit' to activate it...that's the key.

So if it's Bios/EEPROM was rewritten....so it is totally open and think it's 'talking' to HQ and storing purchases in NVRAM, well then the horses would be out of the barn.

Now, we'd have to ASSume that the Headend is broadcasting all PPV 24/7 across the entire Grid for the above to work (like in the analog Zenith Z-Tack days).

Two things are needed, some disgruntled cable employees along with some techs @ the DVT manufacturer........or at the chip manuf. level. Naturally schematics along with the former would be nice.

Hauleywould
07-02-2006, 05:52 PM
another prob with the digi cable sys is that if the system even thinks theres something going on with 1 of the boxes, it notifies someone, then they send down a command that pretty much turns the box into a door stop.......I think it erases the eeprom/NVRAM so it won't "boot-up"...run into these from time to time
Ahhhhh, I remember the ol analog zeniths out in Cali, the fix was soldering a .01uc cap tween something and something....hell, its been too long to remember

badger6
07-02-2006, 11:49 PM
Interesting idea epapas. i have also heard of these filters. I wonder if there is a way to clear the nvram on those boxes, there must be a command that resets to factory defaults, but without a jtag port or something like that, how would we issue the command.
I'm sure if it were this simple it would be talked about all over the place by now.
Good point though.

There is some progress being made on the digital cable side of things. Try here Hxxp://www.usbjtag.com.

C&P

For now, BDM is used for serious testers. The least you can do are
1. Clear the PPV memory.
2. Modify the firmware.
3. Read your firmware and analyze it.
4. Backup and restore your NVRAM. Your NVRAM holds all the information of your channels and subcribtions.

In the future when all the secrets are understood, you should be able to
1. Change your MAC address.
2. Actitivate you box.
3. A lot more.

Ohms
07-03-2006, 01:12 AM
Badger6. Pretty cool stuff there at usbjtag. I seems some progress might indeed be happening in the digital cable arena. the channel auth was interesting.

badger6
07-03-2006, 01:30 AM
Read a little there about a year ago, but didn't get too involved in it with dish pretty much working for the past 3 years, except for the 2-3 months when N2 was first implemented. Anyhow, it just might be time to explore some other options.

moneyfarmer0
07-31-2006, 11:28 AM
great reading!

Guroojee
07-31-2006, 05:11 PM
Great thread. Just curious if you guys are thinking about cable but i never read anything about star choice ( in Canada). Just a thought as we have DN, Bev but not this SC. I am not coder or anything. Just a thought...........

jc4fun69
11-22-2007, 09:09 PM
i need a solution, cant get all the ppv and all the movie chanell to work with my phoenix program plz help

rg6a
11-23-2007, 01:00 AM
I keep hoping something will come up for DTV, but it has not. It may never. Some progress has been made, but it's tiny little increments. How long has it been now?

Look at digital cable. Prior to that, black cable boxes were everywhere. Now it is a dead industrey. As fare as I know, there are no hacked digital cable boxes either.

I fear skinerd is right and it may be sooner than we think. I hope not, but it may.

Sooner or later we're all gonna' be phucked, unless we have insider leaks.

Them digital cable boxes are bi-directional, only way is to spoof some guy's ISN and he'll get charged for the PPV's.

Want to 'borrow' extra cable tiers (non ppv), it's easy but can't tell you here.

fubr
11-23-2007, 04:40 AM
holy thread resurection batman!! (jc4fun69)

is a fine one though, this will get it read by members who since joined.

stubidass
11-23-2007, 10:22 PM
I am curious about the delivery of a DTV hack. As mentioned there could be $$$ at stake for a bonified hack - should one come out - it was mentioned that DTV would surely be all over it - but what about an offshore location - or say an anonymous newsgroup upload to deliver said hack. I realize this is rather simplistic view - money needs to change hands somewhere along the line for the cost of cracking it and making back something for your efforts - but how much "arm of the law" does DTV or any country have going into another?

Just curious.