TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Feds: Critical Software Must Drop C/C++ by 2026 or Face Risk

50 点作者 afdbcreid7 个月前

19 条评论

nanolith6 个月前
Leave it to politicians to pit bull a language. Model checked C&#x2F;C++ is memory safe. Had they reached out to a wider set of people for guidance, they&#x27;d have a more balanced report.<p>I will agree that software safety -- not just memory safety -- is critical. Trying to attack this at the language level instead of the development process and assurance level is daft. FIPS certification and aerospace certification both require auditing already. It&#x27;s not much of a stretch to require an audit of critical infrastructure to verify that safety processes are in place.<p>Simply adopting a different language won&#x27;t make software safe. It will make it safer, perhaps, but we can do better. Model checked code -- be it written in Rust, C, or C++ -- is on the same level. Tools exist for each. That is what CISA should focus on, not trying to force organizations to migrate their code bases to some new and shiny language.
评论 #42013966 未加载
评论 #42030903 未加载
Animats7 个月前
<i>“The development of new product lines for use in service of critical infrastructure or [national critical functions] NCFs in a memory-unsafe language (e.g., C or C++) where there are readily available alternative memory-safe languages that could be used is dangerous and significantly elevates risk to national security, national economic security, and national public health and safety.”</i><p>Now that&#x27;s a strong statement.<p>But it&#x27;s real. There are so many state actors doing cyberattacks now that everything needs to be much tougher. Otherwise, someday soon much of the world stops working.
评论 #42013905 未加载
评论 #42013693 未加载
评论 #42013844 未加载
评论 #42015240 未加载
Veserv7 个月前
Cool. Is this going to require phasing out systems written in C&#x2F;C++ with horrible security track records like Linux and Windows? Or are they going to get a &quot;too critical to be improved&quot; exemption?
评论 #42013903 未加载
评论 #42016769 未加载
评论 #42013872 未加载
caseysoftware7 个月前
&gt; <i>&quot;Companies have until January 1, 2026, to create memory safety roadmaps.&quot;</i><p>This doesn&#x27;t bode well for open source software not backed by a &quot;company&quot; that can write these roadmaps and deliver on them.<p>aka Sounds like Microsoft, Oracle, and other&#x27;s lobbying has been effective.
burnt-resistor6 个月前
FOSS, en mass, probably doesn&#x27;t do MISRA or consistent testing, relies on random people, may not sign code or artifacts, and could take a hobby&#x2F;complacency attitude. For software deemed &quot;critical&quot;, the feds are free to donate money and assistance to help critical projects formalize and improve themselves rather than proclaiming unfunded mandates on volunteers.
3eb7988a16637 个月前
Surely there is going to be an enormous list of exemptions submitted and approved immediately.<p>My quick skim did not make this clear: is this for software only or would hardware appliances also count? Routers, modems, PLCs used in gas centrifuges, etc. are just as attractive for exploitation.
评论 #42013620 未加载
评论 #42013697 未加载
gnabgib7 个月前
CISA guidance: <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=41863640">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=41863640</a>
sidewndr467 个月前
How would any software be FIPS compliant? Is there a &quot;memory-safe&quot; implementation of TLS that is also FIPS certified?
评论 #42013821 未加载
pizlonator7 个月前
This misses the point. C&#x2F;C++ are unsafe because that’s how implementations happen to work today.<p>C&#x2F;C++ can be memory safe. Fil-C&#x2F;C++ is a good example. It’s not a new language, just a different way of implementing it.<p>Here’s more info about Fil-C: <a href="https:&#x2F;&#x2F;github.com&#x2F;pizlonator&#x2F;llvm-project-deluge&#x2F;blob&#x2F;deluge&#x2F;Manifesto.md">https:&#x2F;&#x2F;github.com&#x2F;pizlonator&#x2F;llvm-project-deluge&#x2F;blob&#x2F;delug...</a>
FpUser7 个月前
While security is a legitimate concern this article leaves an impression of paid for piece to scare us into paying more money to security consultants and &#x2F; or bend over to big vendors.
synergy207 个月前
that means you have to use rust for system level programming then? there is really no other alternative at system programming as far as memory safe is concerned, that uses no GC or VM.
评论 #42013856 未加载
评论 #42013741 未加载
评论 #42013783 未加载
评论 #42013969 未加载
评论 #42013819 未加载
评论 #42013722 未加载
cryptonector7 个月前
There&#x27;s go to be billions of loc of critical C&#x2F;C++ software left. By 2026? Doesn&#x27;t sound realistic.
评论 #42013839 未加载
aithrowawaycomm6 个月前
This seems somewhat incoherent and is too focused on shallow claims about languages instead of trying to understand why the memory bugs happened in the first place.<p>Are unsafe code blocks in Rust or C# okay? Presumably yes if there are good reasons to do so, sometimes it is necessary. But then as a matter of policy, why is Rust meaningfully different than something like using Valgrind with C++? Of course there are substantive differences from a developer&#x27;s perspective. But just as a stressed or cynical C++ developer might give up on solving the Valgrind error, a similar Rust developer might give up fighting the borrow checker and add &quot;unsafe&quot; to their buggy code. A federal impetus to switch from C++ to Rust would seem to incentivize this laziness further.<p>To be clear this isn&#x27;t a criticism of Rust&#x27;s design or implementation - demarcated blocks of unsafe code is pragmatic and sensible. The problem is how humans build software. In this sense I don&#x27;t think we&#x27;ve really settled whether &quot;rewrite the code in Rust&quot; is actually safer than &quot;redo our technical management to include automated memcheck testing and paired code reviews.&quot; At the very least, I don&#x27;t think the latter is insufficient, and the feds are being too heavy-handed by making this about language recommendations.<p>[If it were up to me I would rewrite it in Rust! Saying &quot;the feds made me&quot; is an excellent excuse :) But I don&#x27;t like the feds making such strong recommendations&#x2F;demands when I feel the facts are still quite murky. There simply haven&#x27;t been enough case studies.]<p>I also think the feds here (along with techies in general) are undervaluing formal specifications and underestimating the risk of undefined behavior.[1] Rust is very stable but it&#x27;s not formally specified and until recently had known bugs in its very design, not merely in the rustc implementation. (I think those bugs finally got fixed this year.) Considering how cutting-edge Rust is I am sure there are other &quot;theory bugs&quot; somewhere. The point is that critical software also needs stability, and it is unwise to chase memory safety without considering the risks of being tied to an old version of a compiler, especially with unsafe code.<p>Again: not saying that Rust is automatically bad because it isn&#x27;t formally specified. But these issues should at least get lip service.<p>[1] E.g. this fairly detailed document doesn&#x27;t discuss this at all: <a href="https:&#x2F;&#x2F;www.cisa.gov&#x2F;sites&#x2F;default&#x2F;files&#x2F;2023-12&#x2F;The-Case-for-Memory-Safe-Roadmaps-508c.pdf" rel="nofollow">https:&#x2F;&#x2F;www.cisa.gov&#x2F;sites&#x2F;default&#x2F;files&#x2F;2023-12&#x2F;The-Case-fo...</a>
评论 #42014103 未加载
评论 #42021777 未加载
ArtixFox6 个月前
YAY!!! are we gonna have more formal verification???? woohoo!!<p>oh its about memory safety.
exabrial7 个月前
So... F35?
akira25017 个月前
I mean.. the last three critical nation wide software failures had nothing to do with memory safety.. but okay. Shouldn&#x27;t we base recommendations on actual experience?<p>All the memory safety in the world can&#x27;t save you from a dumb vendor just screwing millions of computers at once.
lisper7 个月前
Just wait five days and this will all go away.
评论 #42013707 未加载
评论 #42013774 未加载
tetnis7 个月前
CISA is stupid. Logic bugs don&#x27;t go away with Rust.
评论 #42021659 未加载
gigel827 个月前
C++ is only &quot;memory-unsafe&quot; if you are hiring bottom of the barrel talent.<p>Likely the same kind of folks for which we had to change car manuals from including schematics and repair instructions to including warnings about not drinking the coolant...
评论 #42013621 未加载
评论 #42013605 未加载
评论 #42017612 未加载
评论 #42013964 未加载
评论 #42013712 未加载
评论 #42013598 未加载
评论 #42014120 未加载