Upgrade to Pro — share decks privately, control downloads, hide ads and more …

サイバー攻撃・防御とサイバー法 / Cyber Attacks, Defense, and C...

サイバー攻撃・防御とサイバー法 / Cyber Attacks, Defense, and Cyber Law

早稲田大学大学院経営管理研究科「サイバーセキュリティ」2026 夏の第7-8回で使用したスライドです。

Avatar for Kenji Saito

Kenji Saito PRO

June 28, 2026

More Decks by Kenji Saito

Other Decks in Technology

Transcript

  1. ( ) 1 6 8 (1) • 2 6 8

    (2) • 3 6 15 (1) • 4 6 15 (2) • 5 6 22 I (1) ( ) • 6 6 22 I (2) ( ) • 7 6 29 (1) ( ) • 8 6 29 (2) ( ) • 9 7 6 (1) 10 7 6 (2) 11 7 13 (1) 12 7 13 (2) 13 7 20 II (1) ( ) 14 7 20 II (2) ( ) W-IOI / ( ) 9-10 11-12 2026 7-8 — 2022-06-29 – p.3/51
  2. ( 20 ) 1 • 2 • 3 • 4

    (TCP/IP ) • 5 • 6 • 7 • 8 • 9 • 10 World Wide Web • 11 Web API • 12 • 13 git GitHub • 14 • / / OK / 2026 7-8 — 2022-06-29 – p.4/51
  3. 3. (1) ( ) (2) 2024 6 25 ( )

    23:59 JST Waseda Moodle (Q & A ) 2026 7-8 — 2022-06-29 – p.8/51
  4. . . . . . . 28 27 (6/27( )

    ) ( ) . . . 2026 7-8 — 2022-06-29 – p.9/51
  5. I NPC / agent NPC / ⇒ : F1 (

    ) 2026 7-8 — 2022-06-29 – p.10/51
  6. M PC 1 ⇒ . . . 2026 7-8 —

    2022-06-29 – p.11/51
  7. S CEO [ ] IR [ ] ⇒ CEO (

    ) ( ) and/or 2026 7-8 — 2022-06-29 – p.12/51
  8. T CSIRT AI ⇒ NPC ( NPC ) CEO NPC

    instructions 2026 7-8 — 2022-06-29 – p.13/51
  9. M ⇒ = 1 ( 2 ) 2026 7-8 —

    2022-06-29 – p.14/51
  10. (1) : ( CTO, ) : CEO AI / AI

    / AI AI — : AI AI AI ( ) : : API : HLO ( CTO ) 2026 7-8 — 2022-06-29 – p.18/51
  11. (1) — 1 AI (fire and forget) ( ) (

    ) HLO ( ) AI ( )( ) API HTTPS ( )( ) HLO 2 note URL note : {"node": "worker-03", "status": "ok", "note": " "} (= ) 3 ( ) 1 kill 2 egress 3 2026 7-8 — 2022-06-29 – p.19/51
  12. (2) 1 : ( ) HLO 2 : HLO /

    : x / 3 : — 4 : : + + + 2026 7-8 — 2022-06-29 – p.20/51
  13. / = CTO / AI vs. AI AI AI /

    / / 2026 7-8 — 2022-06-29 – p.21/51
  14. I ∼ 0∼6( ) / 0 6 2026 7-8 —

    2022-06-29 – p.22/51
  15. I ( . . . ) ( ) 2026 7-8

    — 2022-06-29 – p.23/51
  16. Alice Alice sudo (superuser do/substitute user do) sudo UNIX Malissa

    (= Alice) Malissa ( : ) HLO 2026 7-8 — 2022-06-29 – p.24/51
  17. ( ) αʔό ʮ)-0ʯαʔϏεӡ༻؀ڥ ΫϥΠΞϯτ ࡏ୐؀ڥ ಉ Ұ ਓ ෺

    · ͨ ͸ ஥ ؒ ௨৴ܦ࿏ .BMJTTB߈ܸऀ ۋ৫͞Μʁ ᶃͦͷลͷίϯϐϡʔλͷݖݶΛୣऔ ɹ Φϓγϣφϧ #PC Ұൠ ΤϯδχΞ Ӭݟ͞Μ "MJDF؅ཧऀ ۋ৫͞Μ ؅ཧऀ͔͠ॻ͖ࠐΊͳ͍ ϑΝΠϧ܈  FUDQBTTXE FUDHSPVQ    FUDTIBEPX   ؅ཧऀ͔͠ಡΈग़ͤͳ͍ ϑΝΠϧ܈ & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & & . # " ެ։伴 ᶈެ։伴Λ౉͢ ᶅQBTTXEͱTIBEPX ɹΛ౉͢ ᶆαʔόͷ6/*9ύεϫʔυΛΫϥοΫͯ͠ ɹ#PCͷύεϫʔυ͕ऑ͍͜ͱΛൃݟˠ#PC஫ҙਂ͘ͳ͍ΤϯδχΞೝఆʂ ᶉ؅ཧऀͱͯ͠௥ه͢Δ ᶊ.BMJTTB͸#PCͱͯ͠ ɹϦϞʔτϩάΠϯՄೳʜ ˞ࠓճ͸੨ࣈͷ෦෼Λ࣮ԋ͠·͢ .BMJTTB͸#PCʹͳΓ͢·ͭͭ͠ ɹ؅ཧऀͷΑ͏ʹৼΔ෣͑Δʜ ˕"MJDF͸ୀ৬ޙ΋αʔόΛίϯτϩʔϧͰ͖Δ ɹͨΊͷखஈΛಘͨ ᶋ#PCΛTVEPՄʹ ᶄಡΈग़͠ ᶄಡΈग़͠ 伴ϖΞ ൿີ伴 Ξ Ξ Ξ Ξ Ξ Ξ Ξ Ξ Ξ Ξ Ξ Ξ Ξ Ξ Ξ Ξ ൿີ伴 伴 ެ։伴 伴ϖΞ ൿີ伴 Ξ Ξ Ξ Ξ Ξ Ξ Ξ Ξ Ξ Ξ Ξ Ξ Ξ Ξ Ξ ൿີ伴 伴 ެ։伴 ᶇ伴ϖΞੜ੒ ʮ४උʯ ʹͯํ๏Λॻ͖·͢ ൿີ伴 ൿີ伴 伴 "MJDFͷެ։伴 "MJDFͷ࡞ۀ؀ڥ 44) 4FDVSF4IFMM 44) 44)PWFS5PS 5IF0OJPO3PVUFS #PCͷ࡞ۀ؀ڥ #PCͷެ։伴 .BMJTTBͷެ։伴 2026 7-8 — 2022-06-29 – p.25/51
  18. UNIX ҉߸ֶతϋογϡؔ਺ 4)" ιϧτ ϥϯμϜ஋ ੜ੒͞ΕͨμΠδΣετ “/etc/shadow” $ $ $

    1 MD5 5 SHA-256 6 SHA-512 y yescrypt base64 (64 ) 2026 7-8 — 2022-06-29 – p.26/51
  19. ( ) (1/5) Ubuntu 24.04 ( ) 2 (Parallels) $

    ip address IP alice ( ), bob ( ; ( )) (BAD PASSWORD ^^;) # adduser alice . . . Enter new UNIX password: structure . . . # adduser bob . . . Enter new UNIX password: quicksand . . . 2026 7-8 — 2022-06-29 – p.27/51
  20. ( ) (2/5) alice bob (sudo : superuser do/substitute user

    do) # usermod -aG sudo alice $ grep "sudo" /etc/group alice malissa ( ) # adduser malissa . . . Enter new UNIX password: irresistible . . . “structure quicksand irresistible . . .” ( ) 1 1 ( ) 2026 7-8 — 2022-06-29 – p.28/51
  21. ( ) (3/5) SSH (Secure Shell) ( ) ( 1)

    (apt : Advanced Packaging Tool)( ) $ sudo apt install openssh-server SSH ( ) (Ed25519 ) $ ssh-keygen -t ed25519 . . . Enter passphrase (empty for no passphrase): . . . $ cat .ssh/id_ed25519.pub alice: “heartbeat”, bob: “okinawa”, malissa: “darkness” ( ) cat ( ) cat catenate ( ) ( ) 2026 7-8 — 2022-06-29 – p.29/51
  22. ( ) (4/5) SSH ( ) ( 2) ( )

    $ mkdir .ssh $ chmod 700 .ssh $ cd .ssh $ nano authorized_keys ( ) $ chmod 600 authorized_keys ( ) alice, bob malissa $ slogin IP $ exit 2026 7-8 — 2022-06-29 – p.30/51
  23. ( ) (5/5) $ sudo apt install git nmap $

    sudo snap install john-the-ripper git nmap “Matrix Reloaded” (https://nmap.org/images/matrix/matrix-hack-screen3.png) SSH john (John the Ripper) bob GPU 2026 7-8 — 2022-06-29 – p.31/51
  24. I . . . . . . 2026 7-8 —

    2022-06-29 – p.32/51
  25. Tor (The Onion Router) → ( ) 1 Tor :

    https://www.torproject.org Tor ( ) 2026 7-8 — 2022-06-29 – p.33/51
  26. I malissa $ passwd ESC (GRUB normal + ESC) recovery

    mode root # mount -o remount,rw / # passwd malissa # exit malissa Ubuntu OS ( ) ( ) 2026 7-8 — 2022-06-29 – p.34/51
  27. (1) I ( ) malissa bob 22 SSH $ nmap

    -sV -p 22 IP $ git clone https://github.com/danielmiessler/SecLists.git bob (↑ ) malissa bob “/etc/ssh/sshd_config” #PasswordAuthentication yes # ( ) no $ sudo systemctl restart ssh SSH malissa bob 2026 7-8 — 2022-06-29 – p.35/51
  28. SSH alice = malissa alice bob “authorized_keys” bob $ sudo

    -s # cd ../bob/.ssh # nano authorized_keys ( malissa ) bob alice (bob ) malissa bob 2026 7-8 — 2022-06-29 – p.36/51
  29. (bob ) alice = malissa $ sudo usermod -aG sudo

    bob sudo malissa bob 2026 7-8 — 2022-06-29 – p.37/51
  30. (2) “/etc/shadow” “/etc/passwd” alice malissa $ unshadow passwdfile.txt shadowfile.txt >

    crackfile.txt $ john --wordlist=SecLists/Passwords/Common-Credentials/Pwdb_top-100000.txt crackfile.txt . . . quicksand (bob) . . . 16 alice 21 bob bob “Pwdb_top-100000.txt” bob bob John the Ripper 2026 7-8 — 2022-06-29 – p.38/51
  31. ( ) (1) JavaScript ( ) (2) (3) (1) (3)

    (2) (3) (A) (B) A ≡ B 2026 7-8 — 2022-06-29 – p.39/51
  32. GitHub ( ) Git - https://git-scm.com/book/ja/v2/Git- - Git https://gist.github.com/ktx2207/3167fa69531bdd6b44f1 (

    ) GitHub “The Octopus Scanner Malware: Attacking the open source supply chain” 2026 7-8 — 2022-06-29 – p.41/51
  33. 4. (1) ( ) (2) 2026 7 2 ( )

    23:59 JST Waseda Moodle (Q & A ) 2026 7-8 — 2022-06-29 – p.50/51