# Questions tagged [attack]

A cryptographic attack tries to theoretically and/or practically attack the security properties of a cipher and/or algorithm.

443 questions
Filter by
Sorted by
Tagged with
0 votes
0 answers
128 views

### Security of a scheme to prevent MitM in multi-AES

$$c_i'= AES_{128}(c_i,[i,k_i,0])$$ $$k_i' = k_i \oplus c_i' \bmod 2^{60}$$ $$K_{i} = k_i' \cdot (c_i \oplus c_i')$$ $$c_{i+1} = AES_{256}(c_i',[i, k_i', K_{i}])$$ Those two AES operate each in ECB ...
• 573
1 vote
0 answers
94 views

### Different public keys $(e_i,N_i)$ but same decryption exponent $d$

We are given a number of distinct RSA public keys $(e_i,N_i)$ sharing the same unknown decryption exponent $d$. The $e_i$ were computed from $d$ drawn first, so we have different public keys. Can we ...
• 11
0 votes
1 answer
43 views

### What does it mean the "Distinguisher" in LWE decision version?

As we know in block ciphers, the distinguisher means that despite thousands ciphertexts (and plaintexts), allows an attacker to distinguish the encrypted data from random data. This attack is ...
• 141
3 votes
2 answers
76 views

### Breaking a 'Many' - Time Pad [closed]

I'm working on a problem, where given 12 ciphertexts, I'm trying to decode the 12th and find out the key. I've implemented a crib dragging attack, where the crib is a purely guessed word (not known/...
• 31
0 votes
0 answers
80 views

### Algorithm attack on an hash attack (Python)

Here is an attempt at a Python implementation of what is described in the paper I attached as an image. The algorithm is too slow or there is something wrong with the code. Any ideas! ...
1 vote
0 answers
154 views

### How to achieve $d-$privacy considering some secrets?

We have a set of secrets $S = \{x_1, x_2, \dots, x_n\}$ known to an adversary. Each $x_i \in S$ belongs to user $u_i$ who needs to obfuscate his secret using the notion of $d-$privacy defined in the ...
1 vote
1 answer
106 views

### Help with HMAC Known plaintext / mac puzzle

Finally caving and asking for help...I'm not in the field, just doing random CTF challenges to learn more and I've really been enjoying it in general. However, I'm totally stuck on this puzzle at the ...
• 11
1 vote
0 answers
82 views

0 votes
1 answer
72 views

### Nonce reuse in GMAC without ciphertext (only AAD)

As we all know, nonce reuse in AES/GCM can easily be catastrophic. However, I'm wondering if the same risks are present if an adversary has access to: Ciphertext and corresponding MAC of one message ...
0 votes
1 answer
217 views

• 21
1 vote
1 answer
409 views

### A RSA crypto CTF chanllenge with known private key ,cipher text and modules factor n

Here is a CTF chanllege about RSA(The competition has ended for serval hours),and here is the critical encryption code: ...
• 23
0 votes
0 answers
35 views

### How by changing ciphertext can the attacker know the length of the padding in POODLE attack

I try to understand the POODLE attack. I read that the attacker try to change one byte of the last block of the ciphertext. Becasue the last block is only have padding and the last byte is the padding ...
• 31
1 vote
0 answers
26 views

### Can an attacker impersonate any party in a modified Needham-Schroeder protocol?

We are doing symmetric Needham-Schroeder protocol in university. We were provided a modified protocol and needed to answer the following questions. Original protocol: Modified protocol: Task a) An ...
• 63
3 votes
1 answer
62 views

### how 0/n split prevent BEAST attack against TLS?

I read that to mitigrate BEAST attack openSSL tried to inject empty TLS record before each real TLS record. and by doing that there is no opportunity to execute an attack but i dont understand way? ...
• 31
0 votes
1 answer
389 views

### RSA Oracle - CTF

I am trying to solve a challenge regarding a RSA oracle which allows me to encrypt/decrypt any plaintext/ciphertext I want, but there are a few checks that I have to bypass, and my goal is to decrypt ...
• 145
2 votes
1 answer
628 views

### CTF - AES Padding Oracle [closed]

I am trying to solve another CTF challenge. The challenge consists in trying to exploit an oracle that decrypts any hex text we send (see code below). I am kind of stuck on this one as this is not a ...
• 145
2 votes
1 answer
643 views

### CTF - DES Challenge

I am trying to solve a CTF challenge based on DES. I attached the code of the challenge to the question. So far I have noticed that the otp used for the encryption is the same for the entire session, ...
• 145
0 votes
0 answers
828 views

### AES CBC - Find IV (CTF)

I am currently trying to solve a training challenge based on AES with CBC. This is the infos I'm given: ...
• 145
0 votes
0 answers
38 views

### The specific nature of a 51% attack - in relation to a multiple choice question that I was marked as incorrect on

In a course I'm taking the following question came up: ...
1 vote
1 answer
111 views

### Use of PRNG's vulnerability for attacking a cryptographic system

I am investigating a PRNG which fails some of NIST tests (FFT, ApproximateEntropy and Serial). If such a generator is used in cryptography for any purpose, what consequences can it has? How this ...
2 votes
1 answer
90 views

### Bit flipping attack in hash function for message authentication

In this picture we have a use of a hash function for message authentication. M is plaintext message. H is hash function. E is encryption block with K symmetric key. || is concatenation of plaintext M ...
• 143
5 votes
1 answer
442 views

### Leaking key when adding small order point

I was (trying to) read the following paper: https://eprint.iacr.org/2015/673.pdf Page 2 says: A related attack is to replace a point P with P + T, where T lies in a small subgroup. If the user ...
1 vote
1 answer
329 views

### Solve congruent equation likes N = p*q c1 = (2*p + 3*q)**e1 mod N c2 = (5*p + 7*q)**e2 mod N

Here is a CTF crypto challenge likes(its write up is public on https://ctftime.org/writeup/15438): $$N = p*q\\ c1 = (2*p + 3*q)^{e_{1}} mod N\\ c2 = (5*p + 7*q)^{e_{2}} mod N$$ After i transform these:...
• 23
1 vote
0 answers
85 views

### Predicting compromised OpenSSL 3.0 DRBG

The OpenSSL 3.0 rand function's DRBG uses the getrandom() system call to get 48 bytes of secure entropy from the kernel. It also ...
2 votes
1 answer
249 views

### Best practices on implementing a password manager

I'm a dev new to security and cryptography. I'm writing a password manager and Time-based OTP combo in dart/flutter to use in multiple devices and platform for fun and use it personally for real. I ...
2 votes
1 answer
76 views

### The second moment and fourth moment of $\mathcal{P}(V)$?

Backgroud: I am reading the paper "Learning a Parallelepiped: Cryptanalysis of GGH and NTRU Signatures". (here is the link). And I got stuck in understanding the computation of moment. ...
• 75
2 votes
1 answer
170 views

### Double Ratchet Algorithm: Active Man in the Middle Attack without Root-Key or Ratchet-Key

I am currently studying the Double Ratchet Algorithm from Signal (link to the documentation). I stepped over a security issue which I was not able to find that it was mentioned anywhere. I assume that ...
• 308
1 vote
0 answers
92 views

### Are Veracrypt, XTS and flash memory attacks feasible?

Some time ago I had a question here about WinRAR security and probably the most common recommendation I came across was to use Veracrypt. Veracrypt uses XTS, but according to others, XTS encryption is ...
• 13
2 votes
0 answers
118 views

### How can I extend the RSA LSB Oracle attack, to n-LSBs?

Suppose we have an RSA-Oracle that can encrypt and decrypt our input. The the decryption output is equal to: $(C^d \mod N) \mod 2^n$. How can I extend the LSB oracle attack, using the using ...
• 21
3 votes
1 answer
63 views

### Cost of attacking textbook RSA signature of $b$-bit hash of the message

A signature system applies textbook RSA to a $b$-bit hash of the message. What's the cost (preferably, as CPU time on common hardware) of existential forgery assuming known signature of $r$ random ...
• 140k
2 votes
1 answer
686 views

### Crack RSA with $e$ and $d$?

Is it possible to decipher a ciphertext, in RSA with small primes (two 128-bit factors) when we only have ciphertext $c$, private exponent $d$ and public exponent $e=65537$ to crack it? I try hard on ...
• 121
1 vote
2 answers
479 views

### Stuck on a cryptanalytical research project [closed]

This is not a technical question, but rather it seeks advice on what to do if cryptanalytical research goes wrong. I've discovered a new attack that works great in theory, but in practice, it fails. I ...
• 11
5 votes
1 answer
985 views

### Is it insecure to sign the value 0 with ElGamal?

Is it insecure to sign the plaintext 0 with ElGamal signature algorithm? Can this leak the private key, give the possibility to forge other signatures or does provide any other attack vector?
• 63
1 vote
1 answer
222 views

### Decentralized identity, how to prevent duplicate uses of the same identity

In a system that relies on decentralized identity, is it possible to prevent duplicate uses of the same real-life identity, i.e. same real-life person creates more than one user entity (each is ...
• 91
3 votes
1 answer
277 views

### Breaking Ed25519 Discrete Logarithm with Degenerate Curve Attack

Following this question ed25519 attacks and also this paper on degenerate curve attacks https://eprint.iacr.org/2015/1233.pdf, I tried to implement my own attack: Given a point (0, y) and a scalar (k),...
2 votes
1 answer
78 views

### Significance of theoretical weaknesses?

What is the significance of theoretical weaknesses? Any real life incident where a theoretical weakness was ignored and later it compromised the system? Whats the dividing line between theoretical and ...
• 2,397
1 vote
1 answer
88 views

### How does the security of AES change if we allow multiple uses in a row? How does it change if we limit the key space? And introduce a filter function?

$$f_0 = A$$ $$f_{n+1}=AES(f_n,k_n)$$ $$f_i = B$$ For given 128-bit values $A, B$ we want to find a chain of suitable 128-bit keys $k_1$ to $k_i$. The total length $i$ is undetermined. Every valid key ...
• 573
1 vote
0 answers
32 views

### Does privacy-preserving linear (logistic ) regression necessary?

The linear regression is simply $y=Wx+b$, where the server holds $W$ and $b$ and the client holds $x$. The private linear regression means the client sends encrypted $x$ to the server, and receives ...
1 vote
0 answers
69 views

### Non-uniform plaintext distribution -- AES attack

Are their any attacks on AES (any mode) in which before the attack is mounted, the adversary is aware that the input distribution is non-uniform? Most of the work assume that the plaintext is ...
• 31
3 votes
1 answer
186 views

### Can the BB'06 attack to PKCS padding be generalized?

As Bleichenbacher states, a wrong implementation of the parsing function of the padding could lead to a signature forgery attack when using a low exponent. In the provided example he assumes the ...
2 votes
1 answer
201 views

### Trying to understand the 2nd subgroup in the Weil Pairing used for the MOV attack

EDIT: The bounty is actually to draw more attention. I accidentally chose the wrong reason. $E$ – Elliptic Curve over finite field $\mathbb F_p$. Let $k$ be the embedding degree of the Curve with ...
• 2,181
2 votes
1 answer
251 views

### Generic attack on Hmac sha256

Is there any generic attack on HMAC SHA 256 ? I am currently reading up on attacks on Hmac sha-256. However most of the papers I've found are about side channel attacks such as Differential power ...
• 33
1 vote
0 answers
79 views

### How to solve a system of modular equations with exponential difference

I`m solving one crypto problem on rsa. p^e - q^e = C1 (mod n) (p-q)^e = C2 (mod n) n = p*q*r; p,q,r are prime numbers e = 2 * 65537 We have e, n, C1, C2. It's ...
• 11
2 votes
1 answer
248 views

### Do we always choose a generator of prime order for ECDH? If yes, then why?

I am looking at the description of Weil MOV Attack from the Vanstone, Menezes Book (Guide to Elliptic Curve Cryptograpy) Suppose now that the prime order $n$ of $P \in E(F_q)$ satisfies $gcd(n,q) = 1$...
• 2,181
0 votes
1 answer
121 views

### Various attacks on cipher-images & tools, especially stream-cipher?

What kind of attack of image encryption that exist out there, especially if the cipherimage was created using secure stream-cipher like Salsa20 (256 key) or ChaCha20 (256 key)? From https://cr.yp.to/...
• 87
1 vote
0 answers
842 views

### CTF AES attack (ECB, CBC, CFB, OFB, CTR) [closed]

Hi I'm trying to understand the logic behind a CTF challenge basically we are given a program which encrypt some data, we have the following options: Select encryption mode (EBC, CBC, CTR, OFB, CFB) ...