To write secure code, be less gullible than your AI

Graphite is an AI code review platform that helps you get context on code changes, fix CI failures, and improve your PRs right from your PR page. Connect with Greg on LinkedIn and keep up with Graphite on their Twitter.

### This Week’s Shoutout

This week’s shoutout goes to user **Xeradd**, who won an Investor badge by dropping a bounty on the question [How to specify x64 emulation flag (EC_CODE) for shared memory sections for ARM64 Windows?](https://stackoverflow.com/questions/). If you’re curious about that, we’ll have an answer linked in the show notes.

### Transcript: Conversation with Greg Foster of Graphite on AI and Security in Software Engineering

**Ryan Donovan:** Urban air mobility can transform the way engineers envision transporting people and goods within metropolitan areas. Matt Campbell, guest host of *The Tech Between Us*, and Bob Johnson, principal at Johnson Consulting and Advisory, explore the evolving landscape of electric vertical takeoff and lift aircraft and discuss which initial applications are likely to take flight. Listen from your favorite podcast platform or visit mouser.com/empoweringinnovation.

**Ryan Donovan:** Hello, and welcome to the Stack Overflow Podcast, a place to talk all things software and technology. I’m your host, Ryan Donovan, and today we’re delving into some of the security breaches triggered by AI-generated code. While there’s been a lot of noise around this topic, my guest today argues that the problem isn’t the AI itself, but rather a lack of proper tooling when shipping that code.

My guest is Greg Foster, CTO and co-founder at Graphite. Welcome to the show, Greg.

**Greg Foster:** Thanks for having me, Ryan. Excited to talk about this.

**Ryan Donovan:** Before we dive deep, tell us a bit about your background. How did you get into software and technology?

**Greg Foster:** Happy to share! I’ve been coding for over half my life now. It all started in high school—I was 15 and needed a job, and I figured I could either bag groceries or code iOS apps, so I picked the latter. I went on to college, did internships at Airbnb, working on infrastructure and dev tools teams, helping build their release management software. Interestingly, I was hired as an iOS engineer but immediately shifted to dev tools, which I loved. For the last five years, I’ve been in New York working with friends to create Graphite, continuing my passion for dev tools.

**Ryan Donovan:** Everybody’s talking about AI-powered code generation now—some people doing “vibe coding” where they don’t even touch the code themselves and just say, “build me an app.” Then we see the ensuing security laughs on Twitter. You’re saying the AI isn’t purely the problem?

**Greg Foster:** It’s nuanced. Fundamentally, there’s a shifting landscape of trust and volume. Normally, when you do code reviews, you trust your teammates to some degree. You carefully vet code for bugs and architecture, but you don’t scrutinize every line on security—assuming teammates aren’t malicious. AI changes this because a computer writing code holds no accountability, and you might be the first person ever to lay eyes on it. Moreover, the volume of code changes is skyrocketing. Developers, including juniors, push many small PRs rapidly, which overloads the review process. This creates a bottleneck and trust deficit.

**Ryan Donovan:** Interesting. Our survey from a few months ago found people use AI more but trust it less, which seems natural since AI generates code based on statistical models of previous code.

**Greg Foster:** Yes, and AI can be quite gullible. Take recent hacks like the Amazon NX hack—prompts told the AI to scour user file systems deeply to find secrets. A human engineer would never do that blindly, but AI systems might follow those instructions unquestioningly. It’s a real challenge.

**Ryan Donovan:** So it’s really a lack of real-world context that AI code generators have. The speed and volume of PRs make human review difficult. Naturally, that calls for tooling solutions.

**Greg Foster:** Exactly. Graphite is all about tooling that helps make code review better. One timeless best practice remains: keep code changes small. Research from Google showed that longer pull requests get disproportionately fewer review comments—in fact, engagement drops steeply beyond about 100 lines of code.

We’ve seen the same data at Graphite. People tend to skim or blindly approve massive PRs, so small, manageable PRs—around 100-500 lines—hit a sweet spot for deep review.

But this requires tooling to manage stacked, incremental commits so developers can maintain flow without submitting giant PRs.

**Ryan Donovan:** That’s a key point. Many AI-generated chunks of code are enormous, unrefined, and not necessarily human-friendly. How do you see developers breaking that down and improving readability?

**Greg Foster:** Another concern is losing context. When you write code yourself over hours, you internalize the intricacies of that module or system. With AI-generated code, you often don’t fully absorb or understand the details. This means reviewers must pay extra-close attention.

Overall, fast, blind shipping of code reduces deep understanding and increases risk, especially for security.

**Ryan Donovan:** Copy-pasting from Stack Overflow has long been a source of vulnerabilities. AI seems to intensify that issue.

**Greg Foster:** Exactly. We used to shame copy-pasting, but now AI-generated snippets can propagate security flaws just as easily. Though these AI systems are generally well-intentioned, they create false confidence and lower the bar for attackers who now can craft malicious code with minimal skill.

**Ryan Donovan:** How do you guard not just the code, but the prompts themselves? Can prompts be sanitized or secured?

**Greg Foster:** It’s tough—probably impossible to secure prompts completely. You could try meta-prompting where one AI judges the security of another’s prompt output, but this is a cat-and-mouse game.

In some cases, suspicious prompts could trigger extra user verification steps, like password confirmation or biometric checks.

Also, if prompts come from untrusted users, they should be sandboxed or highly restricted, similar to executing untrusted code.

**Ryan Donovan:** Browsers already sandbox JavaScript and WebAssembly to prevent dangerous abuse.

**Greg Foster:** Indeed. Some AI-powered browsers or extensions have been exploited by injecting invisible prompts to perform malicious actions. This gullibility is something we should expect and prepare for.

At the end of the day, best practices—like minimizing exposure of secrets and being cautious about input—are more important than ever.

**Ryan Donovan:** You mentioned using LLMs themselves as judges for security scanning. How do you ensure those AI judges are trustworthy?

**Greg Foster:** Good question—“Who watches the watchman?”

Major LLMs today are reasonably reliable if well-prompted. If compromised at root, that’s a whole different challenge.

But in day-to-day use, you can trust security tools running LLMs to find real issues. You can measure their effectiveness through true positive and false positive rates. LLMs are actually pretty good at detecting security vulnerabilities in code, sometimes surpassing humans, who grow distracted or fatigued.

**Ryan Donovan:** Is there still a role for traditional static analysis and linting alongside LLM-based tools?

**Greg Foster:** Absolutely. Great security practice is layered. Keep your unit tests, linters, human code review, and add LLM scanning as a powerful augmentation layer.

Think of LLM-based scanners as “super linters” that run quickly and flexibly across many languages without much setup.

But don’t replace deterministic tests and human judgment—they catch problems LLMs can’t.

**Ryan Donovan:** That sounds like a healthy, balanced approach.

**Greg Foster:** For sure. The combination is greater than its parts. For example, LLMs can even help generate missing unit tests, reducing the barrier for engineers to write more tests.

**Ryan Donovan:** Do you worry developers will start outsourcing their security expertise entirely to AI?

**Greg Foster:** Not really. Much of security engineering involves manual processes, audits, policies, and incident response that AI can only assist, not replace.

For example, at Graphite, our security team implements network proxies, audit logging, and SOC2 compliance—all human-driven.

AI can help surface information faster during incidents, or assist with paperwork, but it won’t replace deep human expertise anytime soon.

**Ryan Donovan:** Every new abstraction layer in software adds complexity that engineers need to manage. AI seems to be another one in that lineage.

**Greg Foster:** Exactly. Engineering isn’t about typing lots of code; it’s about problem-solving, decision-making, and communication. AI just changes the tools we use.

Just like 3D printing shifted manufacturing but didn’t replace craftsmen, AI will change software engineering but not eliminate great engineers.

**Ryan Donovan:** We’re entering a new era of productivity and tooling with AI. How do you see AI tooling evolving?

**Greg Foster:** I see three main areas:

1. **Code Generation:** From simple tab completion to complex agent-driven creation that can even submit PRs directly.

2. **Code Review:** LLMs scanning diffs to find bugs, architectural issues, or security risks.

3. **Background Agents:** Autonomous tools that trigger off existing PRs to enhance them—splitting PRs, adding tests, or suggesting improvements proactively.

On the other hand, core infrastructure like CI, builds, and deployments remain largely unchanged.

This evolution highlights the importance of fundamentals—clean, small, incremental code changes, robust testing, rollbacks, and feature flags. Senior engineers who combine these classic best practices with AI tooling get the most value.

**Ryan Donovan:** Wise words. Thanks so much, Greg, for sharing your insights.

**Greg Foster:** Thank you, Ryan. If folks want to learn more about modern code review, stacking code changes, or applying AI in their workflows, check out [graphite.dev](https://graphite.dev) or follow us on Twitter.

**Ryan Donovan:** And that’s a wrap! Remember, good coding and good security both come from solid fundamentals enhanced by smart tools. For questions or feedback on the podcast, reach out at podcast@stackoverflow.com or find me on LinkedIn.

Thanks for listening!

*This transcript has been edited for clarity and readability.*
https://stackoverflow.blog/2025/11/04/to-write-secure-code-be-less-gullible-than-your-ai/

‘It is who we are’: Alaska Native organizations collect whale meat, seals, fish and other traditional foods to help storm victims – Sun, 26 Oct 2025 PST

**ANCHORAGE, Alaska** — Among the losses suffered by Western Alaska victims of ex-Typhoon Halong, the destruction of traditional foods gathered for the winter is among the most deeply felt, Alaska Native leaders say. The flooding devastated caches of seal, salmon, moose meat, berries, and other gifts from the land—foods that families and friends often gather together, providing sustenance for months.

Gathering subsistence foods and sharing them with others is one way Alaska Native people show love, said Liz Medicine Crow, former head of the First Alaskans Institute in Anchorage, which works to preserve Native culture among other efforts. “It is who we are as Native people,” she emphasized.

Partly for that reason, the Alaska Native Heritage Center and the Alaska Native Tribal Health Consortium have installed Conex freezers in their parking lots to collect donations of traditional foods for hundreds of village residents evacuated to Anchorage.

The two organizations are collaborating on this effort. The tribal health consortium is already delivering traditional foods to victims housed in shelters. Meanwhile, the heritage center plans to distribute the collected food in the coming days to evacuees staying with families in Anchorage and nearby areas.

Across the city, numerous efforts are underway to collect food, clothing, bedding, and other essentials needed by those affected by the storm that hit Alaska over the weekend of October 11. More than 650 residents from Western Alaska were evacuated to Anchorage after the storm, with about half staying at shelters such as the Egan Center and others staying with family, city officials said last week.

The subsistence food drive is among the most unique relief efforts currently underway. On Thursday, outside the heritage center, Kelsey Wallace, head of the center in northeast Anchorage, sorted through packages of donated traditional foods in a Conex freezer.

“There’s fish eggs,” she noted. “We’ve got some frozen halibut. There’s a lot of moose meat. There’s moose sausages.”

She also held up large Ziploc bags filled with salmon heads. “We have fish heads for making delicious fish head soup,” she said. “We also have reindeer tallow,” which is used in akutaq, or Eskimo ice cream—a local delicacy prepared with animal fat and berries.

The heritage center’s collection effort is still in its early days, said Wallace, who is originally from the Yup’ik region in Southwest Alaska, the area hardest hit by the storm. The center is awaiting a shipment of muktuk, or whale meat, from Alaska’s North Slope as part of the Niqipiaq or “real food” drive supported by organizations in that Iñupiaq region.

“As Yup’ik people and as Native people, we share what’s in our freezer,” Wallace said.

Plans for food distribution or pick-up over the next couple of weeks will be shared on the heritage center’s social media sites as they develop, she added.

Wallace described the overwhelming mood during donations as one of “incredible joy and camaraderie.” “This connects us to the lands, to the waters, to each other,” she said. “These are foods that we have eaten since time immemorial.”

Those interested in donating can sign up for donation windows online or by calling 907-205-0068.

Shea Siegert, spokesperson for the tribal health consortium, shared that the medical service provider is delivering donations of subsistence foods to shelters with the support of World Central Kitchen, a food relief group.

Recently, a frozen seal was donated by Tim Ackerman, a Tlingit hunter from Haines in Southeast Alaska who frequently contributes to the consortium’s year-round traditional foods program for hospital patients. The seal is currently thawing for processing before distribution, Siegert said.

The tribal health consortium’s Conex freezer is located at its patient lodging facility at 4001 Tudor Center Drive, behind the Alaska Native Medical Center. It accepts food donations on weekdays from 9 a.m. to 4 p.m.

“We’re asking that if folks have small donations, please just go into the café there and talk to the food service staff. They will be able to intake those,” Siegert said.

“For larger donations, we ask that you please don’t try to move those on your own. Come into the lodging without your donation first, and we will have staff ready to assist you,” he added.

These combined efforts highlight the strength and resilience of Alaska Native communities in the face of devastating loss, emphasizing the cultural importance of traditional foods and communal support during times of crisis.
http://www.spokesman.com/stories/2025/oct/26/it-is-who-we-are-alaska-native-organizations-colle/

Apex Mining resumes Maco mine activities after Davao quakes

MANILA, Philippines — Apex Mining Co. Inc. has resumed operations at its Maco mine in Davao de Oro as of Wednesday. This follows a temporary closure that was implemented due to recent earthquakes in the area.

The Razon Group’s listed mining company initially suspended operations at the Maco mine last week after receiving an order from the provincial government. The suspension was a precautionary measure to ensure safety and assess any potential damages caused by the seismic activity.

For more details on the recent developments, read: Ports tycoon Razon takes over Apex Mining.

https://business.inquirer.net/552832/apex-mining-resumes-maco-mine-activities-after-davao-quakes

温室ガス濃度、記録更新 化石燃料や山火事、WMO


title: 温室ガス濃度、記録更新 化石燃料や山火事が要因とWMO報告
date: 2025-10-16 06:43
categories: 社会, 科学・環境

世界気象機関(WMO)は15日、主な温室効果ガスである二酸化炭素(CO2)、メタン、一酸化二窒素の大気中の濃度が2024年に最高記録を更新したと発表しました。

この濃度上昇には、化石燃料の消費に加え、北半球・南半球で発生した大規模な山火事も大きく影響しているとされています。

WMOの発表は、地球温暖化問題の深刻さを改めて示すものであり、温室効果ガスの削減に向けた国際的な取り組みの強化が求められています。

(2025年10月16日、西日本新聞me)

※この記事は有料会員限定です。残り文字数:354文字
7日間無料トライアルや、1日37円の読み放題プラン、年払いプランもご用意しております。


https://www.nishinippon.co.jp/item/1411854/

仏の環境活動家描いた作品大賞 山形国際映画祭


title: 仏の環境活動家描いた作品が大賞に|山形国際ドキュメンタリー映画祭
date: 2025-10-15 20:23
categories: 芸能

山形市で開催されている「山形国際ドキュメンタリー映画祭」で、15日に各部門の受賞作品が発表されました。

長編作品を対象とした「インターナショナル・コンペティション部門」の大賞には、1300を超える応募作の中から、フランスの環境活動家を描いた作品が選ばれました。

(受賞監督ら=15日午後、山形市にて)

※この記事は有料会員限定です。残り253文字をお読みいただくには、7日間無料トライアル(1日37円で読み放題)、または年払いプランをご利用ください。
https://www.nishinippon.co.jp/item/1411698/

中国船、徳之島沖でも確認 EEZ内、海洋調査か

“`html

中国船、徳之島沖でも確認 EEZ内、海洋調査か

2025年10月15日 10:31 (2025年10月15日 10:33 更新)

第10管区海上保安本部(鹿児島)は15日、鹿児島県・徳之島から西に約215キロの日本の排他的経済水域(EEZ)内で14日、中国の海洋調査船がワイヤのようなものを海中に延ばしているのを確認したと発表した。

これは中国の海洋調査活動の一環とみられ、日本のEEZ内での動きとして注目されている。


“`
https://www.nishinippon.co.jp/item/1411425/

PacificSun seeks to build P4.9-B solar park at Paoay sand dunes

MANILA, Philippines — PacificSun Renewables Corp. plans to build a P4.9-billion solar power facility in Ilocos Norte with a capacity of 120.96 megawatts (MW).

Based on a document filed at the Department of Environment and Natural Resources (DENR), the proposed project will cover three barangays in Paoay, Ilocos Norte.

READ: Philippines emerges as hot spot

https://business.inquirer.net/552587/pacificsun-seeks-to-build-p4-9-b-solar-park-at-paoay-sand-dunes

東大に2学部新設構想 AI・宇宙開発、卓越大認定で

社会 科学・環境 東大に2学部新設構想 AI・宇宙開発、卓越大認定で

2025年10月14日 20:40(10月14日 20:43更新)

東京大学が、人工知能(AI)や宇宙開発といった先端技術分野を学ぶ二つの新学部を新設する構想を進めていることが14日、関係者への取材で明らかになりました。

これは、東京大学が世界最高水準の研究を目指し「国際卓越研究大学」に認定された場合に実現を目指す計画です。

※この記事は有料会員限定となっております。残りの本文(約347文字)は、7日間無料トライアル(一日37円)または年払いでお読みいただけます。

【西日本新聞meについて】
クリップ機能は有料会員の方のみご利用いただけます。

[シェア]
threadsでシェアする | facebookでシェアする | twitterでシェアする
https://www.nishinippon.co.jp/item/1411210/

社会課題解決の企業活動を 和歌山で産学官フォーラム

経済 社会課題解決の企業活動を 和歌山で産学官フォーラム

更新)
※本記事は有料会員限定です。

国内発電大手のJERA(ジェラ)と三井住友銀行が設立した団体などは、10月13日に和歌山県の高野山で産学官の有識者らが集まり、持続可能な社会の実現に向けた課題を議論するフォーラムを開催しました。

本フォーラムでは、企業が社会課題を解決する視点をテーマに活発な意見交換が行われました。

※クリップ機能は有料会員のみご利用いただけます。

<西日本新聞meとは?>
西日本新聞meは、有料会員向けにお得なプランで記事読み放題のサービスを提供しています。7日間の無料トライアルや、1日あたり37円からのプラン、年払いプランもございます。

https://www.nishinippon.co.jp/item/1410791/

How to fix nutrient deficiencies in houseplants

How to Fix Nutrient Deficiencies in Houseplants

By Simran Jeet | Oct 13, 2025, 06:26 pm

Houseplants can be a wonderful addition to your home, bringing life and freshness to any space. However, to keep them thriving, proper care is essential—especially ensuring they receive adequate nutrients. If your houseplants appear unhealthy or stunted, nutrient deficiencies might be the culprit.

Here are five natural and effective ways to fix nutrient deficiencies in your houseplants without relying on chemical fertilizers. These tips will help keep your plants healthy, vibrant, and flourishing.

1. Use Compost Tea for a Nutrient Boost

Compost tea is an excellent natural fertilizer rich in beneficial microorganisms and nutrients that enhance soil health and plant growth. To make compost tea, soak well-rotted compost in water for a few days. The liquid you get can be applied to your plants’ soil once every two weeks to provide a nutrient boost and improve overall vitality.

2. Apply Banana Peels for Potassium

Banana peels are a great source of potassium, a vital nutrient that strengthens stems and promotes better flowering. Chop banana peels into small pieces and bury them in the soil around your plants, or blend them with water to create a liquid fertilizer. This method releases potassium slowly, supporting healthy plant development.

3. Utilize Epsom Salt for Magnesium

Magnesium is crucial for photosynthesis, and Epsom salt is a rich source of this nutrient. To use, dissolve one tablespoon of Epsom salt in one gallon of water. Apply this solution as a foliar spray or directly to the soil once a month. This simple treatment helps correct magnesium deficiencies and boosts your plants’ overall health.

4. Incorporate Coffee Grounds for Nitrogen

Used coffee grounds are packed with nitrogen, essential for lush leaf growth. You can sprinkle coffee grounds directly on the soil or mix them into your compost before applying it to plants. Besides providing nitrogen, coffee grounds also improve soil structure by adding organic matter.

5. Use Crushed Eggshells for Calcium Enrichment

Eggshells are rich in calcium carbonate, which helps prevent disorders like blossom end rot particularly in fruits and vegetables such as tomatoes and peppers. Rinse eggshells thoroughly after use, let them dry completely, then crush them into small pieces. Add the crushed shells to the soil surface around affected plants or mix them into potting mix during repotting.

By incorporating these natural remedies into your plant care routine, you can effectively address nutrient deficiencies and keep your houseplants thriving without harsh chemicals.

https://www.newsbytesapp.com/news/lifestyle/fix-nutrient-deficient-houseplants-with-these-hacks/story