Author Topic: Virus to crack RSA for nspire? :P  (Read 69838 times)

0 Members and 1 Guest are viewing this topic.

Offline willrandship

  • Omnimagus of the Multi-Base.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2953
  • Rating: +98/-13
  • Insert sugar to begin programming subroutine.
    • View Profile
Virus to crack RSA for nspire? :P
« on: June 29, 2010, 01:04:36 am »
Just think: a virus that infects a computer, completes some rsa factoring, sends results to a server as it does (so as not to duplicate work), and spreads to some more hosts. Nobody notices it's there since it has a low processor priority, and we get the nspire keycode super fast! (well, not super fast, but you get the idea)

Like it?

Offline Quigibo

  • The Executioner
  • CoT Emeritus
  • LV11 Super Veteran (Next: 3000)
  • *
  • Posts: 2031
  • Rating: +1075/-24
  • I wish real life had a "Save" and "Load" button...
    • View Profile
Re: Virus to crack RSA for nspire? :P
« Reply #1 on: June 29, 2010, 01:12:08 am »
I don't think it would need to be a virus (which is incredibly difficult to write).  I'm sure a lot of people in this community as well as Cemetech, UTI and other forums would be willing to donate some of their cycles for it and a news article on ticalc would draw a lot more participants.  The bigger question is is there anyone who actually cares enough to write the software required to do this?  That would take a lot of time, unless one already exists, in which case we'd just need to borrow someone's server.
___Axe_Parser___
Today the calculator, tomorrow the world!

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Virus to crack RSA for nspire? :P
« Reply #2 on: June 29, 2010, 01:16:45 am »
I dont like the idea of a Virus designed to crack Texas Instruments codes being designed at Omnimaga.  That being said, a *voluntary* system similar to the one they used to crack the remaining codes could be used, but this is 1024 bit we are talking about, that is enormous.  There is also memory requirements, which are also large, although you would have to ask someone more knowledgeable in factoring the keys than me to get the specifics. Bottom line: No Virus 

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Virus to crack RSA for nspire? :P
« Reply #3 on: June 29, 2010, 01:26:32 am »
I am against the virus idea. I think it's even illegal since it's kinda malicious in some ways to infect other ppl computers against their will. It would be better if someone wrote a program that people install only if they wish, to help cracking the key.

Offline bwang

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 634
  • Rating: +30/-11
    • View Profile
Re: Virus to crack RSA for nspire? :P
« Reply #4 on: June 29, 2010, 04:34:31 am »
Factoring a 1024-bit key in a reasonable amount of time is impossible, even as a collective effort, unless you can find hundreds of thousands of cores.
The 768-bit number factored recently took several months of highly coordinated effort on a cluster.

Offline Lionel Debroux

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2135
  • Rating: +290/-45
    • View Profile
    • TI-Chess Team
Re: Virus to crack RSA for nspire? :P
« Reply #5 on: June 29, 2010, 05:40:51 am »
willrandship, your idea is probably already used in the wild, just not applied to numbers this size ;)

* factoring RSA-768 took than two years of highly coordinated effort on several clusters totaling hundreds of computers (and even more processor cores). The effort was led by top researchers of the integer factoring field, who used unpublished algorithms that are better than the published ones (ggnfs, cado-nfs, msieve). And sieving integers that large takes an awful lot of memory.
* factoring 1024-bit integers by GNFS (i.e. integers without special mathematical properties) is at least a thousand of times harder than factoring 768-bit integers.

Has a Fermat attack been tried on the Nspire and Nspire CAS keys, BTW ? It's extremely unlikely that it would yield the factors (the 512-bit keys wouldn't have fallen to it, the factors were too different from each other), but we never know.
Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.

Offline mapar007

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 550
  • Rating: +28/-5
  • The Great Mata Mata
    • View Profile
Re: Virus to crack RSA for nspire? :P
« Reply #6 on: June 29, 2010, 05:55:17 am »
It's worth a try, but it hasn't been done to my knowledge.

Offline willrandship

  • Omnimagus of the Multi-Base.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2953
  • Rating: +98/-13
  • Insert sugar to begin programming subroutine.
    • View Profile
Re: Virus to crack RSA for nspire? :P
« Reply #7 on: June 29, 2010, 05:06:08 pm »
Well, every bit you add doubles the difficulty, so 1024 is 2^256 harder than 768. That's a lot more than 1000. :P Not very easy at all.....

I was thinking, if you assign computers to do so many numbers, randomly within a certain bit range, it might go faster, so:

(increments of 40 example)
Server:
0-40 Unsolved
41-80 Solved, no answer
81-120 In process by 12.60.2.255
121-160 Unsolved

When a computer finishes its portion, it receives a random other portion to solve. Hopefully, several computers doing this all at the same time should hopefully hit the solution eventually, and the server sends the message to all the rest, spreading the key instantly to (hopefully) thousands of people!

By a fermat attack, are you referring to http://en.wikipedia.org/wiki/Fermat%27s_factorization_method?

I'd be willing to write it if I knew how a little better. Unfortunately, my best programming language is still TI-Basic :P I have lots of time on my hands for this kind of thing.

Yes, I know 40 numbers is nothing. It was just an example. It would probably be maybe 30-minute segments, not too long or they get interrupted before they finish when you turn off your computer.

brute forcing the key doesn't require much memory. Check that perl script's memory usage, and it's slim to none. But yes, the virus portion was a bad idea.


I had one other idea: Where exactly is this code stored? Is there any way we could replace it with a different key, that we know? That way, you couldn't have the nspire OS (which sucks anyways :P) but you could have another OS, maybe similar to KnightOS, or moonshell (flashcart menu for DS) based.

Edit: repitition fix. Sorry about that.
« Last Edit: June 29, 2010, 06:13:12 pm by willrandship »

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Virus to crack RSA for nspire? :P
« Reply #8 on: June 29, 2010, 05:07:31 pm »
Well, every bit you add doubles the difficulty, so 1024 is 2^256 harder than 768. That's a lot more than 1000. :P Not very easy at all.....


Sorry, I couldn't resist. :P

But seriously, if it's this much harder, I doubt even 10000 computers with quad core processors could manage to do it during our lifetime.
« Last Edit: June 29, 2010, 05:11:29 pm by DJ Omnimaga »

Offline Tribal

  • The Fallen
  • LV5 Advanced (Next: 300)
  • *
  • Posts: 218
  • Rating: +15/-1
    • View Profile
Re: Virus to crack RSA for nspire? :P
« Reply #9 on: June 29, 2010, 05:47:00 pm »
Actually, I had planned on doing this a long time ago, but there was a hiccup in the program and it wasn't factoring it right. It was basically just a C port of the perl algorithm used on the hackspire site(link)  with some minor changes to allow for already checked keys and an update routine to shoot of to the server ever once and awhile. There was a problem in it though, for some reason the library I was using or something just kinda broke while trying to work with these numbers :/. I also tried a C# library I found on the web, it might have actually just been a .NET binding of the C library but it's been awhile ago so I'm not sure.

You could just modify the perl script instead of porting it, but I wasn't(and still am not) able to write perl, but it probably wouldn't be too hard. I had original decided to port it since a C derivative would have been faster(being compiled and not interpreted) and I would understand the coding more than the perl script since I have been working with it for much longer.
« Last Edit: June 29, 2010, 05:47:19 pm by Tribal »

Offline jnesselr

  • King Graphmastur
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2270
  • Rating: +81/-20
  • TAO == epic
    • View Profile
Re: Virus to crack RSA for nspire? :P
« Reply #10 on: June 29, 2010, 05:54:52 pm »
I would actually say that if you are doing a distributed computing project, java is your best bet.  Simply download data file with server name and the key to be factored, and have the program automatically look at the file. Judging by the ease of use, it makes it possible for even non- programmers to help.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Virus to crack RSA for nspire? :P
« Reply #11 on: June 29, 2010, 06:07:51 pm »
ease to use would be the best solution. Trust me, I hate when I download a software and despite reading the instructions, it's still a major pain to use, or when they don't even provide binaries with the download and force you to compile the whole thing. It generally turns me away. I am sure it's the same with several other people. If it's easy to use, more people will be interested in running it. Look at how many BASIC programmers there are in the TI community compared to ASM.

Also, it would be nice if not done already if such software continued where they left off when the computer shuts down, for example. We never know when a power outage could happen.

Offline willrandship

  • Omnimagus of the Multi-Base.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2953
  • Rating: +98/-13
  • Insert sugar to begin programming subroutine.
    • View Profile
Re: Virus to crack RSA for nspire? :P
« Reply #12 on: June 29, 2010, 06:15:39 pm »
i was hoping for something that would be completely automatic user-side, so you just run it.

For power outages, I was thinking since it would do segments, reporting to the server every time. you would simply lose maybe 15 min. of progress in a power outages

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Virus to crack RSA for nspire? :P
« Reply #13 on: June 29, 2010, 06:19:19 pm »
Oh ok. Doesn't sound too bad then. I was worried it was only saving once you manually close the software or something. That would have sucked.

Offline willrandship

  • Omnimagus of the Multi-Base.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2953
  • Rating: +98/-13
  • Insert sugar to begin programming subroutine.
    • View Profile
Re: Virus to crack RSA for nspire? :P
« Reply #14 on: June 29, 2010, 06:38:21 pm »
Well, this way the server can send new numbers faster. If it doesn't recieve one set within x min/hrs of sending, it resets it to open.