Fireship · @fireship

7 Security risks you should never take as a developer

Uploaded February 17, 2020 · Length 9:00

7 Security risks you should never take as a developer

Summary

7 common software security risks that developers should know about, including zero-day vulnerabilities, cross-site scripting, and SQL injection, and how to prevent them.

  • software security
  • zero-day vulnerabilities
  • cross-site scripting
  • sql injection
  • api key security
  • security best practices
  • developer security

Transcript preview

The first 2 minutes of the transcript. Select a timestamp to watch that moment on YouTube.

  1. 0:00

    [Music]

  2. 0:00

    if debugging is the process of removing

  3. 0:01

    software bugs then programming must be

  4. 0:03

    the process of putting them in in most

  5. 0:05

    cases the bugs we introduce are harmless

  6. 0:07

    but sometimes they can cause us to lose

  7. 0:09

    hundreds of millions of dollars in a few

  8. 0:11

    minutes crash airplanes and spaceships

  9. 0:12

    and kill people

  10. 0:14

    today I want to tell you some stories

  11. 0:15

    about the most damaging hacks and bugs

  12. 0:17

    throughout history and explain seven

  13. 0:19

    software security concepts that every

  14. 0:21

    developer should know if you're new here

  15. 0:22

    like and subscribe and check out the

  16. 0:24

    full write-up on bioship i/o there are

  17. 0:26

    billions upon billions of lines of code

  18. 0:28

    in production today around 50 million

  19. 0:30

    lines for Microsoft Windows and over 2

  20. 0:32

    billion lines across all Google services

  21. 0:34

    and within all this code we have

  22. 0:36

    vulnerabilities that have either not yet

  23. 0:37

    been discovered or not yet been fixed

  24. 0:39

    these are known as zero-day

  25. 0:41

    vulnerabilities because as a developer

  26. 0:43

    you have zero days to get it fixed when

  27. 0:45

    a hacker decides to attack this

  28. 0:46

    vulnerability it's known as a zero-day

  29. 0:48

    exploit remember that one time Equifax

  30. 0:50

    had exposed the credit reports of a

  31. 0:52

    hundred and fifty million people that

  32. 0:54

    wasn't the result of a zero-day exploit

  33. 0:55

    it was the result of a known bug and

  34. 0:57

    Apache struts that had already been

  35. 0:58

    fixed weeks ago what sorry guys hackers

  36. 1:03

    apparently from China had been scanning

  37. 1:04

    the web for servers with this

  38. 1:06

    vulnerability they hit the mother lode

  39. 1:07

    with Equifax and extracted sensitive

  40. 1:09

    information over the next 76 days this

  41. 1:12

    breach has cost the company over a

  42. 1:13

    billion dollars and could have been

  43. 1:15

    prevented by installing a simple

  44. 1:16

    security patch being hacked by a known

  45. 1:18

    vulnerability is not uncommon at all in

  46. 1:20

    fact you're likely shipping code with a

  47. 1:22

    lot of known vulnerabilities right now

  48. 1:24

    if you're a j/s developer go into your

  49. 1:26

    project and hit NPM audit it will give

  50. 1:28

    you a breakdown of all the different

  51. 1:29

    ways you can be hacked via your open

  52. 1:31

    source dependencies now there's no

  53. 1:32

    reason to panic if you have hundreds of

  54. 1:34

    high severity alerts the best way to

  55. 1:36

    avoid being hacked is to simply update

  56. 1:38

    your packages but if you truly want to

  57. 1:40

    understand the flaws that are

  58. 1:41

    compromising these packages you should

  59. 1:43

    enroll in the enterprise security course

  60. 1:44

    from angular Academy it's a ten week

  61. 1:46

    long program that will teach you how to

  62. 1:48

    confidently build secure web

  63. 1:49

    applications you'll find the link in the

  64. 1:51

    description and you can use this code to

  65. 1:53

    take $50 off the enrollment price using

  66. 1:55

    components with known vulnerabilities is

  67. 1:57

    one of the most common ways that web

  68. 1:59

    applications get hacked but it's also