Skip to content
redactsure
Book a demo

Explore.

Data Report · RedactSure Research
Chris Sowa · Founder, RedactSure
Published
Last updated

Can Devin See the Passwords It Uses to Log In?

Devin handles the database password as a raw value: its documentation says it types the value into the page and binds it as an environment variable for shell commands. Its scopes and encryption govern which credential a session may use, and the documentation does not say what the model receives, so test that part.

A credential reference travels from a browser record through a bounded route to a separate API destination.

A database password is the one value a login step cannot do without. An agent that signs in to a console on a person's behalf has to handle it, and the question is where the value goes after it is typed. Devin's documentation describes that moment plainly: in the browser it types the value directly, and for shell commands it binds credentials as environment variables. What the documentation does not describe is what the model receives while that happens, which is the part a buyer cannot check from the page. A password that reaches a transcript outlives the task that used it, and a scope that limits reuse does not clean the context. A scope answers where a credential lives and who may use it; it does not answer what the page showed the model, and the two answers land in different records. A database password opens a system, and the run that typed it keeps a record of the page it read. Until the vendor answers, the scope is the only part of the path a reviewer can check, so a team should treat the record as part of the exposure and ask in writing whether the model receives the password itself or a substitute.

Key findings

  • For Devin to keep a database password out of the model's context, the value on a rendered login page would have to enter the page outside the model's view, with the real value resolved only at the approved destination and the model working from a placeholder (What Is Least Exposure?).
  • It would also require a named person approving the session that holds the password and a record of what the model received on each page of the run, because a scope decides which credential is available and not what the session saw (Does Devin Keep an Audit Trail of Credential Use?).
  • Cognition's Secrets page puts each credential at organization, personal, repository or session scope, with a session credential "scoped purely to the current session and are not saved for any future sessions," and it says "In the browser, Devin types the value directly" and that for shell commands "it binds secrets as environment variables whenever needed," and does not state what the model receives (Cognition, 2026).
  • Web agents in a measured benchmark are "prone to inadvertent use of unnecessary sensitive information," which is the risk a settings page carries when the agent reads more than the field it was sent to fill (Zharmagambetov et al., 2025).
  • Coder's guidance for running coding agents says not to "give agents full permissions on behalf of a user" and to "use separate identities with limited scope," which is the isolation Devin's scopes provide and the part that does not govern what a page shows (Coder, 2026).

What does Devin read when it types a database password into a login page?

The record is a database connection page in an internal admin console: host, port, user, password. A person asks an agent to add a read-only reporting user and test the connection. Devin opens the page, fills the fields and types the password. Cognition's documentation describes the mechanics in one line: "In the browser, Devin types the value directly" (Cognition, 2026). The value is not a placeholder, and a login step cannot complete with one. Whatever else the run produces, the password is present in the session at the moment the form is submitted.

That is a different arrangement from a credential the agent does not handle. A browser agent that signs in through a password manager can be built so that "the AI agent and underlying LLM never need to see nor handle the credentials," with the value injected only after a person approves the access (Can a Browser Agent See My Password When It Logs In?). Devin's page describes the opposite arrangement: the agent types. A buyer who reads only a summary could miss the difference, because both designs end with a completed login.

The field may render as dots, and dots are not evidence about the model's context. A password input hides the characters from someone looking at the screen. It does not describe what the accessibility tree, the DOM or a screenshot carries to the model, and the vendor page does not say. A team that needs the answer has to run the task and read the transcript.

Reading more than the field is the other exposure. A connection page carries the host, the user list and the recent queries beside the password, and an agent sent to fill one field can read the whole page. The password is the value with the shortest useful life and the widest reach, which is why the silence about the model matters more here than on a page full of records.

Where does the password sit, and what does the scope cover?

Cognition's documentation gives four scopes, and a session credential is "scoped purely to the current session and are not saved for any future sessions"; the same page says "All secrets are encrypted at rest" and that for shell commands "it binds secrets as environment variables whenever needed" (Cognition, 2026). That is a rule about availability and lifetime: it decides which sessions can use the value and when the value stops existing, not what a session reads once the page is open.

Encryption at rest protects the stored copy. It does not change the value the browser types or the environment variable a shell command receives, and it does not describe what the model sees while either happens. Read together, the statements describe a custody control: the credential is held, scoped and encrypted, then released to the process that uses it.

For shell commands the release is explicit, and an environment variable is available to the process and to anything that can read the process environment. An identity with a narrow scope narrows what the credential can reach. It does not narrow what the screen renders.

A proxy or a credential store can keep a value out of a command's environment, and the documented pattern is a sentinel the process sees with the real value attached on the host side, where "the real credential stays on the host when proxy management is active" (Can Credentials Stay Outside the Sandbox and Still Be Used Inside It?). Devin's page does not describe that pattern for browser typing. It describes the agent typing the value, which places the value in the session rather than behind a sentinel.

What do the vendors themselves say?

Two vendor pages bear on the question. Cognition's Secrets guide is the one that describes how Devin handles a credential. Coder's guidance describes the boundary a buyer should expect around a coding agent, which is the context Devin's shell commands run in.

Cognition's page states that "In the browser, Devin types the value directly," which places the raw value in the run rather than behind a placeholder (Cognition, 2026). The scope model is the strongest part of the design: a session credential is not saved for a future session, so a task that ends badly does not leave a reusable value behind. The browser line is the part that matters here, because it is the opposite of a design in which a password manager injects the value after a person approves the access.

Dimension Cognition, per its documentation What a buyer should verify
Where the value is used "In the browser, Devin types the value directly"; for shell commands "it binds secrets as environment variables whenever needed" Whether the field is filled by the agent or by a component outside its view
Scope Organization, personal, repository and session; session values are "scoped purely to the current session and are not saved for any future sessions" Which scope holds the production password, and who can attach it to a session
Storage "All secrets are encrypted at rest." Whether the key is held by the customer or by the vendor
What the model receives Not stated on the page What the transcript and the page context hold after the value is typed
Who approves Not stated on the page Whether a person approves a session that holds a production credential
Record Not stated on the page Whether the session record names the credential and what the model read

Coder's guidance addresses the boundary around the agent rather than the password. It warns that "LLMs and agents can be dangerous if not run with proper boundaries" and tells operators to use "separate identities with limited scope whenever interacting autonomously" (Coder, 2026). That is the right control for what a compromised session can reach, and it leaves the page-level question open: an identity with a narrow scope still reads every field the page renders.

What does Devin's documentation not say about the model?

The Secrets page answers where a value is stored, which scope holds it and how it reaches a browser or a shell. It does not answer what the model receives. Whether the model sees the value is not described in the pages reviewed, and the same is true for who approves a session that holds a production password and what record the session leaves. Those are the three questions a buyer who cares about the model's context has to answer by testing.

Silence on that point is not a small omission, because a model that receives a value can repeat it. Work on information flow in LLM systems found that "poisoned data retrieved from one component can change the model's behavior and compromise the entire system, including coercing the model to spread confidential data to untrusted components" (Siddiqui et al., 2025). The password only has to be in the context when the next instruction arrives.

Guidance for managing AI systems lists seven risk categories, among them Sensitive Data Exposure and Context and Memory Leakage (Harvard University Information Security and Data Privacy, 2026). Prompt defenses do not settle it: adaptive attacks bypassed 12 published defenses with an "attack success rate above 90% for most," many of which had reported near-zero rates (Nasr et al., 2025), and the paper tested jailbreak and prompt-injection defenses together, so the finding is about the class and not a rate for Devin.

Devin's documented control works on stored data and on the command boundary: encryption at rest, four scopes, and an environment variable bound to a shell command. It does not work on what the rendered page carries to the model. A reader who wants the page-level control can compare it with masking, where a sentinel reaches a sandboxed command and the real value is attached on the host (Can a Coding Agent Use a Credential It Cannot Read?). Utility is a separate question: replacing identifiers with consistent pseudonyms and restoring them after the model has done its work reduces semantic utility errors by a factor of five compared with baseline techniques (Does Masking Data on Screen Break Browser Agents?).

What should a security team ask for in writing?

A short list of questions separates a custody control from a page control. Ask which scope holds the production password and whether a session can use it without a person. Ask whether the browser types the value or a component outside the model's view fills the field. Ask what the model receives from the rendered login page, and ask for the transcript line that shows it. Ask who approves a session that holds a production credential. Ask what record names the credential and the pages the session read, and where that record is exported.

Devin's page answers the scope and the typing; it does not answer the model, the approver or the record. A team that asks only whether the value is encrypted gets a yes and learns nothing about the context.

Regulator and industry guidance set the program level, not the page level. DFS guidance tells covered entities to consider "authentication factors that can withstand AI-manipulated deepfakes" (New York State Department of Financial Services, 2024), a control at the login step that does not describe what an agent's model reads after the password is accepted. OWASP's agentic Top 10 was released in December 2025, and its co-chair described it as reflecting "incredible collaboration between AI security leaders and practitioners across the industry" (OWASP GenAI Security Project, 2025); a shared list of risk categories is not a statement about one product's context. Accenture's case studies say reinvention "demands a strong and secure digital core, safe and responsible AI use" (Accenture, 2026), which is a program commitment rather than an answer about a database password.

An audit trail is its own question. A token's scope narrows what the credential reaches without recording which reads happened, and the same limit applies to a password: the scope record says which session held it, not what the model read on the page. Ask for the transcript, the approval and the record as three separate artifacts, because a vendor that has one may not have the others.

What does a governed environment change?

A governed environment is a control class that acts where the screen is rendered, before any model reads it. Values chosen by policy are replaced with consistent tokens for the whole run, so the model works with a placeholder such as DB_PASS_01. Real values resolve only at the approved destination, at the moment of an approved action. A named person approves each consequential action, and every screen and approval lands in a record that exports to the organization's own monitoring.

For this page's question the change is where the password stops. Devin's documented control releases the value to the agent that types it; the scope and the encryption at rest decide which sessions can use it and when it is discarded. Under render-layer substitution the value stays out of the model's context, and the login form receives the real password at the moment the action is approved. The record then shows the page as DB_PASS_01 and the approval beside it.

Its scope is the rendered page. It does not govern the terminal, the IDE, the local filesystem, direct API calls or MCP, so a password exported to a shell variable stays with the sandbox and the credential store a team configures for its coding agent, which is the territory Devin's shell binding and Coder's guidance describe.

The comparison page for this vendor sets the two designs side by side, from the scope a session holds to the page the model reads (RedactSure vs Devin: 2026 Comparison & Alternative).

What the record shows

Scoping decides which credential a session may use, and encryption at rest protects the stored copy; neither governs what a rendered page carries to the model. Devin's documentation shows an agent that types the password itself and binds session credentials to shell commands, with four scopes and encryption at rest, and it does not state what the model receives at either step. That is a custody design, and its reach is the stored value and the process that uses it. The page-level question is separate, and the answer a team needs is in its own transcript. A team can settle it with one test: create a throwaway database user with a password that appears nowhere else, ask the agent to add it in the console, then read the session transcript for the characters and compare what the model saw with what the page rendered. Repeat the same task through a shell to see whether the value arrives as an environment variable. Keep both transcripts; they record what the model read at each step, which the vendor page does not.

Methodology and limitations

This page rests on Cognition's Secrets guide, Coder's guidance for running coding agents, three research papers on information flow and adaptive attacks, guidance from DFS, OWASP and Harvard, an Accenture case-study page, and existing RedactSure research pages. Vendor pages were read between October 14, 2026 and October 21, 2026, and each Sources line carries the date for its page. Public documentation read in full gives a sound view of where a product applies its control, and the quotations are cited to the pages that state them.

No product named on this page was tested hands-on for this page, including Devin; the description rests on documentation, and "not described" means the pages reviewed. Vendor features change, and the page carries its date, so a release after that date is unreviewed until the test is repeated. RedactSure is deploying now with enterprise and government customers. The example describes a record type, a database connection page, and not an organization. Determinations about whether a credential design meets a contractual or regulatory requirement belong to counsel, assessors and the organization's own security and compliance officers, and nothing here replaces a pilot of one workflow on the organization's own screens.

Frequently asked questions

Can Devin read the database password it types?

Yes, the documentation describes Devin handling the raw value: in the browser it types the value directly, and for shell commands it binds the credential as an environment variable. Whether the model receives that value is a separate question, and the page does not answer it. The agent's action and the model's context are different places, and a buyer should ask about both. Test the run and read the transcript before assuming either.

Does a session scope keep the password away from the model?

No. A session scope limits where the credential can be used and when it stops existing; the documentation says a session credential is "scoped purely to the current session and are not saved for any future sessions." That is a rule about storage and reuse, not about what the page carries to the model. The value still has to reach the login form or the shell command, and the same page does not describe the model's view.

Is encryption at rest enough?

Only for the stored copy. "All secrets are encrypted at rest" says the credential is protected where it sits, and it says nothing about the value in use or the model's context. Encryption at rest is a sound control against a database or backup exposure, and it is not a control on the rendered page. A backup exposure and a rendered page are different failures, and only one of them is covered here. A team should treat it as one layer and ask separately what the model receives.

Where would a password enter the model's context?

Anywhere the page or the command output is passed to the model. A browser agent may receive the accessibility tree, the DOM or a screenshot, and a shell agent may receive command output; whether a password field is masked in that representation is a property of the page and the tool, and Devin's page does not describe it. That is why the transcript is the evidence to collect.

Who approves a session that holds a production password?

Devin's Secrets page does not name an approver. The scopes decide where a credential can be used, and the page does not describe a step in which a named person approves the session or the login. A team that needs that control has to add it outside the credential store, or ask for it in writing and test the answer. Ask who can attach the credential, who can watch the session and who signs off before the login runs. A scope is not an approval.

What record shows what the model read?

Not the credential scope. A scope record can show which session held a credential and when it expired; it does not show what the page rendered or what the model received. For that, a team needs a record of the screen as tokens, the actions taken and the approval, which is a different control from storage. Ask for the transcript and keep it with the test.

About the author

Chris Sowa is a founder of RedactSure and a former CEO of an AI company; he started it years before ChatGPT existed. He previously led AI at Accenture, served as Global VP of Strategy & Innovation at Schneider Electric, was CCO of Sovos, and spent more than a decade at Oracle, with earlier roles at SAP and IBM.

How RedactSure Keeps a Typed Database Password Out of the Model

A database password typed into a login page lives in the session, so scoping and encryption at rest cannot answer what the model read.

The environment that enforces this is built by RedactSure, an AI agent controls, governance and data protection company.

Before, Devin types the raw password and the page does not say what the model received. Inside the environment the page renders DB_PASS_01, the agent fills the form with the token, and the real value resolves only at the approved destination when a named person approves the test. For each task, RedactSure's Policy Planner proposes what the agent may see and what it may do, where a Devin scope is a standing rule.

RedactSure is deploying now with enterprise and government customers. A session scope limits reuse, not what the page shows.

Everyone else controls where data can go. RedactSure controls what the AI can see.

See it on your own workflow

A password that is typed once lives in the session for the rest of the run. Bring a login task and see, with test values, what the model receives on the page, who approves the connection and what the record shows. Book a demo

Book a demo

Book a demo

Having trouble? Open the booking page or email us.