Security Flashcards

1
Q

What password attack vectors do you know?

A
  • Brute-force attacks
  • Dictionary attacks
  • Rainbow table
  • malware ( screen/key logger etc… )
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is a rainbow table attack? What is a rainbow table?

A

When hackers have access to your database but all passwords are encrypted. Then they try to find with what hash function it was encrypted and try to decrypt it back.

A rainbow table is a database that is used to gain authentication by cracking the password hash. It is a precomputed dictionary of plaintext passwords and their corresponding hash values that can be used to find out what plaintext password produces a particular hash

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is salt?

A

A random unique string used to strengthen weak passwords. A salt is simply added to make a password hash output unique.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is password stretching?

A

Making a password hash slower to compute for any person, including the log-in service and password crackers. One method used to stretch passwords is achieved by iterating the hash-function many times, i.e. storing Hash(Hash(Hash(Hash…(Hash(salt||password)))…)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is pepper?

A

A pepper is a secret value added to a password before hashing. It can be considered a second salt — another input to change the hash outcome completely. Yet, unlike a salt, it’s not stored in the database along with the hashes.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What Is Browser Fingerprinting?

A

Browser fingerprinting happens when websites use special scripts to collect enough information about you — such as your browser, timezone, default language, and more — that they can uniquely identify you out of the sea of other internet users

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is Session-Based Authentication?

A

In the session based authentication, the server will create a session for the user after the user logs in. The session id is then stored on a cookie on the user’s browser. While the user stays logged in, the cookie would be sent along with every subsequent request. The server can then compare the session id stored on the cookie against the session information stored in the memory to verify user’s identity and sends response with the corresponding state!

In rails, we encrypt the session with a secret key and decrypt on the server to get user id.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is a signed token?

A

It’s part of the token, and the server can verify that it had previously created that signature, and that the signature was created for this particular token. The signature is a hash of the contents of the token plus a secret only the server possesses;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is a claim?

A

Claims are a predefined set of profile information about the user such as the user’s name, the profile’s URL, or whether the user’s email address has been veri‐
fied.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is Authorization Code?

A

Authorization Codes are used in redirection-based authorization flows. A code can be used only once, and a maximum lifetime of 10 minutes is recommended by the official specification

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is Access token?

A

Access Tokens are tokens with a short lifetime that are used to access protected resources.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is Refresh token?

A

Refresh Tokens allow refreshing Access Tokens after they are consumed or expired.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly