Infosec Week 4 - Password, Phishing & Password Databases

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play

1/5

flashcard set

Earn XP

Description and Tags

on card 4

6 Terms

1
New cards

How can you ensure password databases can be protected as much as possible?

Two options

  • You must hash passwords to protect them from intruders or leaks. Passwords can contain sensitive information about people.

  • Or, you can use passwords as a key. This is where a registered new user has their password used as a key to encrypt the token. This token is then stored in the database to be later retrieved using the username when a user logs back in.

    • This password is then used to decrypt the token to see if it matches the expected outcome

    • This lacks the performance of hashing and is also more vulnerable as it can be reversed and, if the password is forgotten you cannot check the user exists and is being accessed by the correct person.

(p 8-10)


<p>Two options</p><ul><li><p>You must hash passwords to protect them from intruders or leaks. Passwords can contain sensitive information about people.</p></li></ul><ul><li><p>Or, you can use passwords as a key. This is where a registered new user has their password used as a key to encrypt the token. This token is then stored in the database to be later retrieved using the username when a user logs back in.</p><ul><li><p>This password is then used to decrypt the token to see if it matches the expected outcome</p></li><li><p>This lacks the performance of hashing and is also more vulnerable as it can be reversed and, if the password is forgotten you cannot check the user exists and is being accessed by the correct person.</p></li></ul></li></ul><p>(p 8-10)</p><p></p>
2
New cards

How does hashing passwords ensure that we aren’t storing plain text passwords?

  • Hashing is when a one-way mathematical operation is applied to the password. The result is then stored with the username.

  • When a new password is given on a login, it is hashed and checked to see if it matches the stored password

  • Hashed passwords are only as secure as the system that hosts them.


3
New cards

How can hash passwords be threatened

Brute Force

  • Very expensive - the attacker has to pick hundreds of millions of charector combos (like ‘password’) to then hash and compare to those in the database to get a match.

Ways to make a brute force attack better:

  • Dictionary attacks

    • Use passwords that have been exposed from other real-world breaches

  • Rule-Based Attacks

    • Apply common, human patterns to words

      • Like appending numbers/years (password2026)

  • Mask Attacks

    • If the attacker knows the enforces rules on a password (like must be 8 characters or must have 2 symbols). they then will restrict their guesses to be only combinations matching this pattern.


4
New cards

Describe the rainbow table method and declare how it can be thwarted

how the rainbow table is made from chains where a initial password is fed through reduction functions to generate password hash pairs. Table is then represented in a particular way, a attacker may then use it to locate a matching password from a hash they have found


  • Rainbow table is a lookup table that contains pre-computed pairs of plaintext passwords and their hash values

  • It has highly efficient routines that make it extremely fast to use, but may require significant memory to store

  • A hash-value chain is used to generate hundreds or thousands of password permutations, but, only the start and end value needs to be stored for the chain, saving significant storage.

  • Each chain contains a reduction function that computes the next permutation of a password from the previous hash value for each step in the chain., the same functions are used in each chain


27 - 48 to see how it works


Rainbow tables are thwarted via Salting

  • A salt is a large random number that is added to a users password. This combination is then hashed together.

  • Salting removes the ability of the rainbow table to find matches through pre-computer common password hash-values. With salting, a separate table would be needed for each salt.


strong passwords can also assist in removing rainbow tables successes


<p>how the rainbow table is made from chains where a initial password is fed through reduction functions to generate password hash pairs. Table is then represented in a particular way, a attacker may then use it to locate a matching password from a hash they have found</p><p></p><ul><li><p>Rainbow table is a lookup table that contains pre-computed pairs of plaintext passwords and their hash values</p></li><li><p>It has highly efficient routines that make it extremely fast to use, but may require significant memory to store</p></li><li><p>A hash-value chain is used to generate hundreds or thousands of password permutations, but, only the start and end value needs to be stored for the chain, saving significant storage.</p></li><li><p>Each chain contains a reduction function that computes the next permutation of a password from the previous hash value for each step in the chain., the same functions are used in each chain</p></li></ul><p></p><p>27 - 48 to see how it works</p><p></p><p>Rainbow tables are thwarted via Salting</p><ul><li><p>A salt is a large random number that is added to a users password. This combination is then hashed together.</p></li><li><p>Salting removes the ability of the rainbow table to find matches through pre-computer common password hash-values. With salting, a separate table would be needed for each salt.</p></li></ul><p></p><p>strong passwords can also assist in removing rainbow tables successes</p><p></p>
5
New cards

Describe how modern hashing functions are inefficient in terms of CPU requirement or memory requirements

so that a attacker cannot replay billions of hashes per second


MORE

6
New cards

Phishing - recognise the signs of a phishing email, how to prevent fishing and does MFA prevent fishing.

Signs of a phishing email

  • unlikely email, misspellings, odd links


Multi-Factor Authentication

  • can assist in requiring a token to be generated and passed back to the users phone to be entered