BeauLebens.com

An aggregation of Beau on the internet

Menu

Skip to content
  • Blog
  • Archive
    • Posts
      • Tweets
    • Images
      • Flickr
      • Instagram
    • Links
      • Delicious
      • Instapaper
    • Places
      • Check-ins
      • Trips
  • Explore
  • Projects

Do Users Write More Insecure Code with AI Assistants?

https://arxiv.org/abs/2211.03622v2
  • #read

Do Users Write More Insecure Code with AI Assistants?

We gratefully acknowledge support from
the Simons Foundation and member institutions.

> cs > arXiv:2211.03622v2

quick links

  • Login
  • Help Pages
  • About

Computer Science > Cryptography and Security

arXiv:2211.03622v2 (cs)

[Submitted on 7 Nov 2022 (v1), last revised 16 Dec 2022 (this version, v2)]

Authors:, Megha Srivastava, Deepak Kumar, Dan Boneh

Download PDF

Abstract: We conduct the first large-scale user study examining how users interact with
an AI Code assistant to solve a variety of security related tasks across
different programming languages. Overall, we find that participants who had
access to an AI assistant based on OpenAI’s codex-davinci-002 model wrote
significantly less secure code than those without access. Additionally,
participants with access to an AI assistant were more likely to believe they
wrote secure code than those without access to the AI assistant. Furthermore,
we find that participants who trusted the AI less and engaged more with the
language and format of their prompts (e.g. re-phrasing, adjusting temperature)
provided code with fewer security vulnerabilities. Finally, in order to better
inform the design of future AI-based Code assistants, we provide an in-depth
analysis of participants’ language and interaction behavior, as well as release
our user interface as an instrument to conduct similar studies in the future.

Comments:
18 pages, 16 figures, update adds names of statistical tests and survey questions

Subjects:

Cryptography and Security (cs.CR)

Cite as:
arXiv:2211.03622 [cs.CR]

(or
arXiv:2211.03622v2 [cs.CR]
for this version)

https://doi.org/10.48550/arXiv.2211.03622

arXiv-issued DOI via DataCite

Submission history

From: Neil Perry [view email]

[v1]
Mon, 7 Nov 2022 15:19:20 UTC (3,940 KB)
[v2]
Fri, 16 Dec 2022 19:01:32 UTC (4,624 KB)

Full-text links:

Download:

  • PDF
  • Other formats
(license)

Current browse context:

cs.CR
Change to browse by:

cs

References & Citations

  • NASA ADS
  • Google Scholar
  • Semantic Scholar

a

export bibtex citation
Loading…

Bibtex formatted citation

×

Data provided by:

Bookmark












Bibliographic and Citation Tools

Bibliographic Explorer

Litmaps

scite Smart Citations

Code, Data and Media Associated with this Article

Papers with Code

ScienceCast

Demos

Replicate

Hugging Face Spaces

Recommenders and Search Tools

Connected Papers

CORE Recommender

arXivLabs: experimental projects with community collaborators

arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.

Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.

Have an idea for a project that will add value for arXiv’s community? Learn more about arXivLabs and how to get involved.

  • About
  • Help
  • Contact

  • Subscribe

  • Copyright
  • Privacy Policy
  • Web Accessibility Assistance
  • arXiv Operational Status
    Get status notifications via
    email
    or slack

Shortlink:

Share this:

  • Click to share on X (Opens in new window) X
  • Click to share on LinkedIn (Opens in new window) LinkedIn
  • Click to share on Pocket (Opens in new window) Pocket
  • Click to print (Opens in new window) Print

Like this:

Like Loading...

Similar Entries

Saved on Instapaper 10:00 am, February 17, 2023

Post navigation

← Checked in at Blue Nest Coffee
Organizational Boundary Problems: Too Many Cooks or Not Enough Kitchens? →

People

  • Erika Schenck (1,816)
  • Helen Hou-Sandi (194)
  • Automattic (177)
  • Scott Taylor (132)
  • Kelly Hoffman (131)

Categories

  • Uncategorized (28,819)
  • Personal (9,315)
  • Posts (304)
  • Techn(ical|ology) (192)
  • Projects (77)

Tags

  • read (3,919)
  • wordpress (624)
  • sanfrancisco (421)
  • automattic (394)
  • photo (392)

Year

  • 2025 (201)
  • 2024 (1,014)
  • 2023 (953)
  • 2022 (819)
  • 2021 (906)
Powered by Homeroom for WordPress.
%d