Anyone else here do cryptanalysis?

beansbaxter

Senior member
Sep 28, 2001
290
0
0
I'm trying to predict the next X bytes of a stream for which I already have a roughly 7500 byte-long sample. The range of values in the stream is a known fixed count.

On sample intervals of 96 bytes or so I can see trends:

Only 55-65% of the posible byte values are used
5-10% of those bytes repeat up to 4 times in the 96-byte sequence
if I sum a fixed count of the bytes the sum is always in a range of 65-220 witht he average falling between 157 and 162
the same byte never appears more than once in the same grouping if I stick to the groupings given out by this black box - length of grouping is known fixed.
the unicity distance between bytes averages between 7 and 8
pairs of bytes repeat frequently, as do some sets of triples
4 and 5-byte groups do not repeat often at all
there has never been a repeat grouping over 5 bytes long

frequency distributions show that over time, the freq. of each given byte falls along the bell curve. This also applies to the frequency of the frequencies and the freq. of the unicity distance over a fixed sample length.

Total problem set size per sample is approximately 17.7 billion combinations
I think I've manged to narrow the problem set down to 750,000 combinations, but currently that doesn't mean anything.

Anyone know how to hack a bell curve?
 

CycloWizard

Lifer
Sep 10, 2001
12,348
1
81
Originally posted by: beansbaxter
if I sum a fixed count of the bytes the sum is always in a range of 65-220 witht he average falling between 157 and 162

the same byte never appears more than once in the same grouping if I stick to the groupings given out by this black box - length of grouping is known fixed.

frequency distributions show that over time, the freq. of each given byte falls along the bell curve. This also applies to the frequency of the frequencies and the freq. of the unicity distance over a fixed sample length.

Anyone know how to hack a bell curve?
A 'bell curve' distribution is typically a gaussian distribution, which is very well-defined mathematically (link). Since you know that the mean falls between 157 and 162, you know the standard deviation and the true mean. Simply just stick the results of all your runs together and find the true mean, then measure the standard deviation and you'll have the entire probability function defined. This defines your 'black box' in terms of the likelihood of it spitting out a given byte.

Once the probability function is defined based on all your previous runs, you can use it to predict future bytes. I believe that whatever byte closest to the mean that has not yet been produced is most likely the next byte. There is no guarantee that it will be this byte, but it has a higher probability than the others. Alternatively, you could add in a random component to your prediction algorithm. The best approach depends on what you're trying to do, and I'm not a programmer, so I'm not going to be much help on that end of things.
 

beansbaxter

Senior member
Sep 28, 2001
290
0
0
if you're right about this and I completely crack this thing then I owe you a huge favor. I've been trying random number generation filtered thru some behavioral rules I came up with. This turned out to be more precise than a brute force attack, but not as accurate. The generation attacks gave me a smaller set of candidate sequences, but the results sucked. If I do a brute-force attack based on chosen ciphertext, I CAN predict the next sequence, but it's one of 17500 sequences (WAY better than 17.7 billion) returned by the program. I'm convinced if I refine my methods of selecting ciphertext bytes for the BF I'll nail this thing. Thanks for your help.
 

SagaLore

Elite Member
Dec 18, 2001
24,036
21
81
That sounds fun... I understand encryption, but I'm not skilled enough in math to break it myself.
 

beansbaxter

Senior member
Sep 28, 2001
290
0
0
I really need some more help with this. I have been working on this forever making some breakthroughs but having limited success.

I should be able to eventually solve this by simply using recurrence analysis, but does anyone have a list of steps I can and should go through to take a more mathematical approach to this?

Thanks in advance.
 

beansbaxter

Senior member
Sep 28, 2001
290
0
0
This is actually something I am working on for work. If I can get this done, it will save a lot of time and I can automate more things.
 

Caligynemania

Junior Member
Aug 31, 2004
8
0
0
Sounds like the encryption youre using is pretty shoddy. Some simple differential cryptanalysis (which it seems you've done) will probably lead you to pretty good results. If you have access to mid-steps for your black box, use a boomerang attack to figure out the formula even further.
 

beansbaxter

Senior member
Sep 28, 2001
290
0
0
Originally posted by: Caligynemania
Sounds like the encryption youre using is pretty shoddy. Some simple differential cryptanalysis (which it seems you've done) will probably lead you to pretty good results. If you have access to mid-steps for your black box, use a boomerang attack to figure out the formula even further.

Can you tell me more about a boomerang attack, please??
 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |