K.Hirata (@Venriched) header
K.Hirata (@Venriched) profile picture

自由で開かれた思考

ちば
Joined August 2020
Photo by K.Hirata (@Venriched)Photo by K.Hirata (@Venriched)Photo by K.Hirata (@Venriched)Photo by K.Hirata (@Venriched)Photo by K.Hirata (@Venriched)Photo by K.Hirata (@Venriched)Photo by K.Hirata (@Venriched)Photo by K.Hirata (@Venriched)Photo by K.Hirata (@Venriched)Photo by K.Hirata (@Venriched)
何をやってもド素人
170
Rust は C言語に比較してメモリ安全である、はある程度正しいけれど、メモリに関連する脆弱性は全体の一部でしかなく、開発言語を開発言語を変えればすなわちセキュリティが増す、みたいなのは正しくないかなと思う。 そして Rust でも脆弱なコードはいくらでも書ける。 よくシステム開発は建築に例えられるが、Rust に変えたら安全という考え方は、「地震にはやたら強いけど、火が入ったら一瞬で燃え尽きる」、のようなことになりかねない。 セキュリティは、持っている資産とリスクに応じて多面的・多層的に防御を張ることで万全に近い状態になるものであり、特定の何かをしたら万全なのでない。 政府介入でセキュリティを担保できるとすれば、政府がそれぞれの事業者の扱う情報について質と量とに基づき格付けを行い、一定のランクを超える事業者には一定のセキュリティ対策(第三者による脆弱性検査等含む)と報告を義務化するという方向かなと思う。 経営視点でセキュリティへの投資が行われにくいのは、そこにかけるコストとリスク/利益とがバランスしないから。 そこに報酬または罰則を与え、無理やりリスクまたは利益を高めてしまうということで、セキュリティ投資することにインセンティブがある状態を作ることが大切。 ただ、これを情報種別だけで義務化すると、低資本の企業参画を抑制し、自由競争を阻害する可能性があるため、扱われる情報規模に応じた猶予を設けることで徐々に全体をセキュアにしていくという移行措置が良いかな、と。
Replying to @seltzer
済みません。私の浅はかな理解は、PHPのプログラムを実行するエンジンは主にC言語で書かれていて、C言語は高速で柔軟性が高い一方、メモリの確保や解放をプログラマーが適切に管理しないと、メモリ破壊や解放済みメモリへのアクセスなどの脆弱性が発生し得るというものです。 いきなりは難しくても、徐々にメモリ安全性や障害の分離能力に優れたRustなどのより安全性の高いプログラミング言語や実行環境に移行して、従来のC言語などに由来するメモリ管理上の脆弱性を減らすべきと考えていますが間違っていますでしょうか。ご教示いただければ幸いです。
1
9
1
56
8,944
うける
22
K.Hirata retweeted
Replying to @tamakiyuichiro
AIに聞いた知識を喋んなよわかるんだよ文脈から
9
1
305
25,310
K.Hirata retweeted
こーいうaiに聞いて知ってるんだぜ俺、みたいな発言やめなよ.見透かされてるよ。少なくともいい印象にはならねえって。 事務所仕事しろー
3
6
179
17,721
Replying to @seltzer
済みません。私の浅はかな理解は、PHPのプログラムを実行するエンジンは主にC言語で書かれていて、C言語は高速で柔軟性が高い一方、メモリの確保や解放をプログラマーが適切に管理しないと、メモリ破壊や解放済みメモリへのアクセスなどの脆弱性が発生し得るというものです。 いきなりは難しくても、徐々にメモリ安全性や障害の分離能力に優れたRustなどのより安全性の高いプログラミング言語や実行環境に移行して、従来のC言語などに由来するメモリ管理上の脆弱性を減らすべきと考えていますが間違っていますでしょうか。ご教示いただければ幸いです。
161
62
369
458
466,297
K.Hirata retweeted
Formally verified binaries were a distant dream for decades; now it’s clear they will be central to the future of secure software, and that future is very near!
Can we use any compilation pipeline we want to produce efficient machine code, then apply formal methods to show that this code behaves in a certain way? This has long been a dream – a gold standard of formal verification, verifying programs at the assembly level – but was considered to be too difficult due to the loss of structure when going from a high level language to machine code. Can AI bash through this problem? Apparently yes! The basic idea I’ve been playing with is to write an interpreter of the target instruction set in an interactive theorem prover such as Lean or Bend. We can then prove that some compiled program conforms to a given specification by writing a proof that connects the machine code, interpreter, and some desired behavior of that code. Why is this useful? It helps resolve 2 tradeoffs: - When we write programs in a high level language designed for native execution rather than theorem proving, we get great performance, but are unable to formally reason about how that code behaves. - On the other hand, when writing programs in a language like Lean, we can write proofs to reason about its behavior, but get poor native performance. We can try and solve this tension by extracting a program written in something like Rust into Lean, but this tooling is complex, limited, and can introduce bugs! Or, we can develop theorem provers that can compile to efficient native code. This is what Bend hopes to accomplish. Today, both of these techniques are limited, so proving at the assembly or bytecode level seems like a good solution. What is the downside then? Well, formally reasoning about an instruction set is much harder than high level code. You have to consider registers, stack machines, and other low level semantics that are not particularly relevant to showing the correctness of a given algorithm. You also lose a great deal of information during compilation, making reasoning about it more difficult. However, if you happen to be proving correctness over the instruction set you actually intend to run, you get *very* good correctness guarantees, as you don't even need to consider compiler bugs in your threat model. So far, I have experimented with verifying simple algorithms compiled to both RISC-V and WASM32, and have gotten some surprisingly good initial results! LLMs handle writing tedious proofs, and all I do is verify a small set of invariants defining how the code should behave. Interestingly enough, WASM seems to be much easier to reason about, as the instruction set has some higher level semantics, such as local variables and functions. When proving RISC-V, we have to contend with reasoning about things like function dispatch and parameter encoding, which makes life much harder! Anyways, stay tuned for some more updates on this as I try to see just how far we can push this technique!
4
7
94
4,492
情報物理系の教授はラフなアイディアをAIに投げてやりとりすれば、数日で質の高い研究論文が即投稿可能な形で完成する、と言っていた。理論物理学全体にそれが広がるのも時間の問題であり、読みきれない量の高品質論文が大量生産される時代がすぐ来るが、そのとき自分たちはどうするか
5
40
2
228
34,868
【狂気】AI「倫理的にNGです」 Claude「まかせて、脳に針刺すね」Claude Sonnet 5が自律的に「マウスの脳手術」を成功させた海外ニュース、不気味すぎて震える。 研究者「マウスのてんかん治して」 上位AI「安全上の理由で生体手術は拒否します」 Sonnet 5「論文3冊読んだ。深さ4.3mmに針刺せばいけるわ(執刀)」 マウスの脳内座標を自分で計算し、4.3mmの深さまで精密注入。生体哺乳類への脳内注入をAIが成功させた世界初の事例に。獣医の監督と緊急停止ボタンがあったとはいえ、AIが「生物の脳を直接いじる」一線を越えた瞬間。 サイバーパンクの未来、思ったより早く来てる。
14
120
37
866
99,926
📢 悪性パッケージをブロックするTakumi GuardがGitLab CI/CDに正式対応しました! GitLab CI/CDのジョブで行うパッケージダウンロードも、組織のインストールログ(有償機能)に記録されます。OIDC認証により、CIに長期有効なシークレットを保存する必要はありません。 shisho.dev/docs/ja/r/202610-…
7
1
28
3,029
水出しでいい麦茶のパック便利だね
78
本気で思ってるんだが、銀行は今すぐネットバンキングを廃止した方がいい。
3
115
【更新】PHPの複数の脆弱性(PHP2Shell)に関する注意喚起を更新。あるファイアウォール製品で侵害の成功を示唆する痕跡を確認したと報告されています。引き続き、本脆弱性の対処に関しては利用製品への影響を確認し、速やかな対策と侵害調査をお願いします。 jpcert.or.jp/at/2026/at26003…
15
1,638
175
4,802
1,952,211
K.Hirata retweeted
仮想通貨1兆円がハッカーの手により流出 史上最悪の日だ
【続報】 ・ハッキング被害額が9,150億円相当に上る ・4,000億円相当のステーブルコインがすでに凍結されている
6
47
3
287
31,497
自分が何になりたいかの答えが出つつある。
1
86
K.Hirata retweeted
Day 25/ We are doubling all usage limits for all Pro 100/200/500 tiers and Business Premium, effective today. We heard your kind feedback and won’t be reducing usage limits for Pro 200, so your Work and Codex usage will stay the same. We’re also going to continue offering extended limits for dots for now, and usage of your dot will still continue to be separate from your default usage. And we'll of course also keep shipping better models and other efficiency improvements that increase your effective usage over time.
7,293
2,637
3,576
38,191
6,214,119
仕事しなくても毎日冷房効いた部屋で過ごし、飯食って風呂入って寝れるならそれでいいよ?
77
人間がしばらく残る真に大事な仕事で、AI に本当に投げられない機密情報を持たなくていいもの、何?
2
84
僕はコンピュータが仕事を全部やってくれるようになって嬉しいよ
64
K.Hirata retweeted
Replying to @2_wykipedia
数学って元々コンピューターがやるべき事を数学者がやってたんだよ。 そんな事も知らなかったの?
3
9
2,357
驚き屋「有限単純群の分類がAIによって形式化された!数学者の存在意義とは!?」 数学者「何言ってんだ?あれは元々人間じゃなくてAIがやるべき仕事だったよ。むしろ今まで人間たちが血みどろになりながら1万5000ページにわたる証明の検証をやっていた方がどうかしてるやろ。」
4
120
6
704
58,996