Security

ค่าแฮช SHA-1 ถูกใช้งานมาตั้งแต่ปี 1995 โดยทั่วไปแล้วยังมีความแข็งแกร่งดี แต่งานวิจัยช่วงหลังๆ แสดงให้เห็นว่าการสร้างค่าที่ทำให้ค่าแฮชชนกันด้วย SHA-1 นั้นง่ายกว่าที่ออกแบบไว้อย่างมาก และมีความเสี่ยงที่จะถูกปลอมใบรับรองได้ทำให้ไมโครซอฟท์ออกมาประกาศแล้วว่าจะเลิกยอมรับใบรับรองที่เซ็นไว้ด้วย SHA-1

เมื่อปีที่แล้วมีงานวิจัยตีพิมพ์ออกมาว่าสามารถสร้างค่าแฮช SHA-1 ที่ชนกันได้ด้วยการคำนวณเพียง 2^61 รอบเท่านั้น แม้ค่าแฮชของ SHA-1 จะมีขนาดถึง 160 บิตก็ตาม

ท่าทีเช่นนี้ถือเป็นท่าทีที่ดีของไมโครซอฟท์ ก่อนหน้านี้ใบรับรองที่เซ็นด้วยค่าแฮชแบบ MD5 ถูกสร้างค่าแฮชชนกันได้ในแบบเดียวกันมาแล้ว แต่ไม่มีการยกเลิกการใช้งานจนกระทั่งกลายเป็นช่องโหว่ให้ไวรัส เช่น FLAME แพร่กระจาย การยกเลิกใบรับรองเหล่านี้แต่เนิ่นๆ ก่อนจะมีการสร้างค่าแฮชชนกันจริงจะป้องกันปัญหาแบบเดิมได้

ไมโครซอฟท์แนะนำให้ผู้ที่ใช้ใบรับรองดิจิตอล ควรขอใบรับรองใหม่ที่ใช้ค่าแฮช SHA-2

ที่มา - Technet

Hiring! บริษัทที่น่าสนใจ

Carmen Software company cover
Carmen Software
Hotel Financial Solutions
Next Innovation (Thailand) Co., Ltd. company cover
Next Innovation (Thailand) Co., Ltd.
We are web design with consulting & engineering services driven the future stronger and flexibility.
KKP Dime company cover
KKP Dime
KKP Dime บริษัทในเครือเกียรตินาคินภัทร
Kiatnakin Phatra Financial Group company cover
Kiatnakin Phatra Financial Group
Financial Service
Fastwork Technologies company cover
Fastwork Technologies
Fastwork.co เว็บไซต์ที่รวบรวม ฟรีแลนซ์ มืออาชีพจากหลากหลายสายงานไว้ในที่เดียวกัน
Thoughtworks Thailand company cover
Thoughtworks Thailand
Thoughtworks เป็นบริษัทที่ปรึกษาด้านเทคโนโยลีระดับโลกที่คว้า Great Place to Work 3 ปีซ้อน
Iron Software company cover
Iron Software
Iron Software is an American company providing a suite of .NET libraries by engineer for engineers.
CLEVERSE company cover
CLEVERSE
Cleverse is a Venture Builder. Our team builds several tech companies.
Nipa Cloud company cover
Nipa Cloud
#1 OpenStack cloud provider in Thailand with our own data center and software platform.
Bangmod Enterprise company cover
Bangmod Enterprise
The leader in Cloud Server and Hosting in Thailand.
CIMB THAI Bank company cover
CIMB THAI Bank
MOVING FORWARD WITH YOU - CIMB is the leading ASEAN Bank
Bangkok Bank company cover
Bangkok Bank
Bangkok Bank is one of Southeast Asia's largest regional banks, a market leader in business banking
MuvMi (Urban Mobility Tech Co.,Ltd.) company cover
MuvMi (Urban Mobility Tech Co.,Ltd.)
Shape the future of urban mobility towards affordable, clean, and safe solutions
T.N. Digital Solution Co., Ltd. company cover
T.N. Digital Solution Co., Ltd.
TNDS has been involving in every first move of banking’s major digital transformation.
KBTG - KASIKORN Business-Technology Group company cover
KBTG - KASIKORN Business-Technology Group
KBTG - "The Technology Company for Digital Business Innovation"
Siam Commercial Bank Public Company Limited company cover
Siam Commercial Bank Public Company Limited
"Let's start a brighter career future together"
Icon Framework co.,Ltd. company cover
Icon Framework co.,Ltd.
Global Standard Platform for Real Estate แพลตฟอร์มสำหรับธุรกิจอสังหาริมทรัพย์ครบวงจร มาตรฐานระดับโลก
REFINITIV company cover
REFINITIV
The Financial and Risk business of Thomson Reuters is now Refinitiv
H LAB company cover
H LAB
Re-engineering healthcare systems through intelligent platforms and system design.
The Gang Technology Co., Ltd. company cover
The Gang Technology Co., Ltd.
We're a Digital Agency that helps our customers transform their business into digital with ease.
LTMH company cover
LTMH
LTMH มุ่งเน้นการพัฒนาผลิตภัณฑ์ที่สามารถช่วยพันธมิตรของเราให้บรรลุเป้าหมาย
Seven Peaks company cover
Seven Peaks
We Drive Digital Transformation
Wisesight (Thailand) Co., Ltd. company cover
Wisesight (Thailand) Co., Ltd.
The Best Choice For Handling Social Media · High Expertise in Social Data · Most Advanced and Secure
MOLOG Tech company cover
MOLOG Tech
We are Modern Logistic Platform, Specialize in WMS, OMS and TMS.
Data Wow Co.,Ltd company cover
Data Wow Co.,Ltd
We enable our clients to realize increased productivity by solving their most complex issues by Data
LINE Company Thailand company cover
LINE Company Thailand
LINE, the world's hottest mobile messaging platform, offers free text and voice messaging + Call
LINE MAN Wongnai company cover
LINE MAN Wongnai
Join our journey to becoming No.1 food platform in Thailand

2^61 ถ้าคอมทั่วๆ ไป brute force มันก็น่าจะใช้เวลาเป็นวันอยู่ แต่ปี 2016 อาจจะน้อยลงกว่านี้ก็ได้

เหมือนจะเคยอ่านเจอ ประมาณว่า พวกการเข้ารหัสทางเดียว อย่าง MD ทั้งหลาย มันจะอ่อนแอลงตามความเร็วของคอมที่ใช้ถอดรหัสได้ ยิ่งคอมพัฒนาให้เร็วขึ้น ก็ถอดรหัสได้ไวขึ้น ... ท่าจะจริง

ถ้าแค่วันเดียวได้แน่นอนนี่ระดับปัญหาใหญ่มากแล้วนะครับ

ส่วนการเข้ารหัส ไม่ว่าทางเดียวหรือสองทาง เราคำนวณได้เร็วขึ้นก็ต้องหมายถึงถอดรหัสได้ไวขึ้นอยู่แล้วครับ วิธีถอดรหัสก็ส่วนนึง ความเร็วของเครื่องที่ถอดรหัสก็อีกส่วนนึง ถ้าคิดวิธีสำหรับถอดรหัสให้ควอนตัมคอมพิวเตอร์ที่ใช้งานได้จริงขึ้นได้นี่มีสิทธิ์ล่มกันเกือบหมดเหมือนกันนะครับ

ผมเคยถอดรหัสมือถือโนเกียร์ที่ล็อกซิมเป็น SL3 มา (เครื่องจากนอก) มันจะได้ 2 ส่วน ส่วนแรกเป็น HASH ที่เข้ารหัส SHA-1 มา อีกส่วนเป็น IMEI 14 ตัวแรก + เกลือนิดหน่อย แล้วคำนวนรหัสปลดล็อกซิมเอา

IMEI + รหัสปลดล็อก = HASH
เร็วสุดที่เคยได้ก็ 3 ชั่วโมง ช้าสุดก็ 2 วันกว่าๆ
คอมไม่แรง แต่ใช้การ์ด 4870 จำนวน 3 ตัว ช่วยกันคำนวน
เมื่อก่อนทำคุ้มครับ ปลดรหัสละ 700 - 1000 แล้วแต่เราเรียกราคา (3-4 ปีที่แล้ว)

เดี๋ยวนี้แย่งกันทำ ตัดราคากันจนทำไม่คุ้มละ

ถ้าควอนตัมใช้งานจริงได้ ราคาจับต้องได้ งานถอดรหัสคงเร็วกว่านี้แน่ๆ

คิดง่ายๆ ถ้าเข้ารหัสใช้ 1 clock cycle ซีพียู 1GHz 16 Core ใช้เวลา 2^61/(2^308640016) ~= 1553 วัน = 5 ปีนะครับ

คอมทั่วๆ ไปไม่ใช่แค่วันแน่ๆ แต่ใช้ GPU ช่วยได้นี่ผมไม่ชัวร์นะ แต่ยังไงมันก็ไม่ใช่ 1 clock cycle แน่ๆ ใช้เป็นร้อย