Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Basics of Secure Code Review
Search
fadzayi chiwandire
August 15, 2022
Technology
74
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Basics of Secure Code Review
fadzayi chiwandire
August 15, 2022
Other Decks in Technology
See All in Technology
CTO Night|NotionのAIエージェントとFDE
kzkhykw1991
0
150
触りたくないデータに、どう触るか AI時代のRBACアクセスガバナンス
ivry_presentationmaterials
0
270
専門領域のAIをどう評価するか
bengo4com
2
200
JAWS-UGグッズ職人仕事の流儀
kentapapa
0
110
Getting Started with Google Antigravity
glaforge
0
310
"優秀な誰か"の下位互換にならないために
yut0naga1_fa
1
1.8k
Optunaの最新リリースv5.0について
pfn
PRO
0
120
実践! SRE × AI - ABEMA における AIOps -
tetsuya28
8
3.1k
Rustuna: Rustによる高速なOptuna実装
pfn
PRO
0
190
AI × アーキテクト 第1・2章|生成AIの課題とアーキテクトの素養
daidaidai
0
170
パスキーの自動テストはどこまでいけるのか
teamlab
PRO
0
260
しろおびから始める!ログ活用の第一歩
shumei_ito
0
950
Featured
See All Featured
Ecommerce SEO: The Keys for Success Now & Beyond - #SERPConf2024
aleyda
1
2.2k
The SEO Collaboration Effect
kristinabergwall1
1
590
Technical Leadership for Architectural Decision Making
baasie
3
600
Joys of Absence: A Defence of Solitary Play
codingconduct
1
550
The Impact of AI in SEO - AI Overviews June 2024 Edition
aleyda
6
1.2k
Exploring anti-patterns in Rails
aemeredith
4
540
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
50
10k
Bash Introduction
62gerente
615
220k
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.9k
RailsConf 2023
tenderlove
30
1.6k
Navigating Weather and Climate Data
rabernat
0
560
Breaking role norms: Why Content Design is so much more than writing copy - Taylor Woolridge
uxyall
1
450
Transcript
Fadzayi Chiwandire Application Security Consultant Secure code Review
Fadzayi Chiwandire Application Security Consultant Software Developer #whoami
What is it?
OWASP https://cheatsheetseries.owasp.org/ https://owasp.org/www-project-code-review-guide/
Checklist https://github.com/mgreiler/secure-code-review-checklist • Input Validation • Authentication and User Management
• Authorization • Session Management • Encryption & Cryptography • Exception Handling • Reducing the attack surface
Some Examples
RegEx export const isPasswordValid = validationMessage => value => (
/^([a-zA-Z0-9!@#$%^&*_\-.()]{13,64})$/ .test(value) ? undefined : validationMessage || 'Password is invalid' )
Unit Tests // must contain at least one: digit, lower
case, Upper case, special character and be >=8 describe('isPasswordValid()', () => { test('Returns undefined if password is correctly formatted, error message otherwise', () => { expect(isPasswordValid('Password invalid')('12345678')).toBe('Password invalid') expect(isPasswordValid('Password invalid')('aaaaaaaa')).toBe('Password invalid') expect(isPasswordValid('Password invalid')('ABCDEFGH')).toBe('Password invalid') expect(isPasswordValid('Password invalid')('123Abcde')).toBe('Password invalid') expect(isPasswordValid('Password invalid')('12@Ab')).toBe('Password invalid') expect(isPasswordValid('Password invalid')('12@Abcde')).toBe('Password invalid') expect(isPasswordValid('Password invalid')('12@Abcdepoiuy')).toBe(undefined) }) })
Tools • Snyk • Semgrep • Insider • OWASP Dependency-Check
• TruffleHog (Secret Scanner) • Brakeman (Ruby on Rails) REDACTED Snyk Semgrep