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

プリンタの怖い話(1) 〜意外と簡単に盗める〜

Avatar for koh koh
November 11, 2017

プリンタの怖い話(1) 〜意外と簡単に盗める〜

Avatar for koh

koh

November 11, 2017
Tweet

More Decks by koh

Other Decks in Technology

Transcript

  1. プリンタの怖い話(1) 〜 意 外 と 簡 単 に 盗 め

    る 〜 A TALE OF TERROR ON PRINTERS #1 -AN UTTERLY SIMPLE ATTACK - 2 0 1 7 年 1 1 月 1 1 日 K O H K I O H H I R A ( K O H ) 1
  2. I LOVE LASER PRINTERS • Canon Laser Shot • Ricoh

    PC LASER SP-10PS Pro II –FTP printing available • Canon LBP-1420 –A3-monochrome, durable mechanism • Ricoh IPSiO SP C720 –A3-color, duplex (optional), durable mechanism • Canon LBP6240 – A4-monochrome, duplex (initial equipped), inexpensive and fast, released on 2014 4
  3. I LOVE LASER PRINTERS • Canon Laser Shot • Ricoh

    PC LASER SP-10PS Pro II –FTP printing available • Canon LBP-1420 –A3-monochrome, durable mechanism • Ricoh IPSiO SP C720 –A3-color, duplex (optional), durable mechanism • Canon LBP6240 – A4-monochrome, duplex (initial equipped), inexpensive and fast, released on 2014 10
  4. 16 It was not a server machine. It was just

    a ‘thing’. サーバーではない ただの物なのに
  5. I LOVE LASER PRINTERS • Canon Laser Shot • Ricoh

    PC LASER SP-10PS Pro II –FTP printing available • Canon LBP-1420 –A3-monochrome, durable mechanism • Ricoh IPSiO SP C720 –A3-color, duplex (optional), durable mechanism • Canon LBP6240 – A4-monochrome, duplex (initial equipped), inexpensive and fast, released on 2014 18
  6. I LOVE LASER PRINTERS • Canon Laser Shot • Ricoh

    PC LASER SP-10PS Pro II –FTP printing available • Canon LBP-1420 –A3-monochrome, durable mechanism • Ricoh IPSiO SP C720 –A3-color, duplex (optional), durable mechanism • Canon LBP6240 – A4-monochrome, duplex (initial equipped), inexpensive and fast, released on 2014 25
  7. PRINTING IS A CRITICAL SERVICE Performance review results 人事考課表 New

    business patents 新ビジネスの特許 Hostile takeover plan 敵対的買収計画 32
  8. HOW TO ATTACK どうやって攻撃する 172.16.22.20 172.16.22.21 Change the IP address

    Printer spoofing & Relay Man in the middle attack 中間者攻撃 36
  9. READY TO ATTACK? 1. Changed the printer’s IP address 2.

    Learned 3 protocols need to be listened and relayed • Are we ready to attack? No! Two more hurdles まだ二つ問題を解決しなければならない 38
  10. HURDLE #1: PRINTER DISCOVERY • When the printer’s IP address

    is updated… • PCs will search the new IP address of the printer. • IPアドレスが変化したら… • PCはプリンタの新しいIPアドレスを捜索する Old IP Address New IP Address SEARCH SEARCH SEARCH 39
  11. 40 PRINTER DISCOVERY CAN INTERFERE • Printer discovery kicks in

    if printer’s IP address spoofing comes too late • Printer’s IP address needs to be spoofed immediately after printer’s IP address change • もたもたしているとディスカバリが始まって攻撃が失敗する • すぐにスプーフィングをはじめないと 172.16.22.20 172.16.22.21 SEARCH SEARCH SEARCH 172.16.22.20
  12. AVOIDING PRINTER DISCOVERY • Printer’s IP address needs to be

    spoofed immediately after printer’s IP address change is detected through polling • Its timing is so critical, spoofing should be started programmatically, not manually • ポーリングで変更を監視して、すぱっと設定 • スピード勝負なのでプログラムで行う 172.16.22.21 172.16.22.20 PRINTING ASAP! 41
  13. HURDLE #2: SIMPLE RELAY WILL FAIL • Relayed communication somehow

    failed • Why? • リレーすると正常に動作しない • なぜに? 172.16.22.101 172.16.22.8 42
  14. ORIGINAL IP ADDRESSES INCLUDED IN PACKETS • Need to rewrite

    these IP addresses • アドレスの書き換えが必要 172.16.22.20は 本当はプリンタではない 172.16.22.101: IP of victim’s PC 172.16.22.20: Printer’s original IP HTTP Status Check [PC to Printer] UDP Status Check [PC to Printer] 43
  15. HOW CAN WE AVOID THIS ATTACK? •Set the printer's password!

    PASSWORD! 45 引用 Canon 社 LBP6240のリモートUIサービスの トップページより
  16. IS THE IMPORTANCE OF PASSWORD EXPLAINED? • Their advanced manuals

    explain it, but... • No mention of it in most of their setup guides, which users will likely ever read • どのメーカーも分厚いマニュアルには書いている • しかし、導入マニュアルには書いてないメーカーがほ とんど 46
  17. CANON LBP612C • Encourages users to set a password during

    its first boot • 初回起動時にパスワードの設定 が勧められる 47 Its rich UI allows password entry 引用 Canon社 LBP612Cの初回起動画面より Excellent!