A colleague builds a CRM over a few afternoons: it records customers, tracks quotes and sends reminders. The manager is pleased, the team starts using it, and IT may not even know it exists. Vibe coding—AI-assisted development based on natural-language instructions—can indeed shorten the time needed to create a prototype. But a working interface does not prove that the application is secure, legally usable or sustainable in the long term.
A vibe coding security audit therefore involves more than simply finding bugs in source code. Access permissions, data handling, operations and usage rights must also be examined. In this instalment of “The 10 biggest risks of vibe coding,” we explore what to check before going live and what happens when the employee who built the company's new system as a side project leaves.
1. First, identify what is operating outside IT's visibility
Shadow IT does not necessarily stem from bad intentions. It is often a quick response to a genuine business need: there is no suitable tool, the development backlog is long, so someone creates their own solution. Problems begin when an experiment becomes a business-critical application without approval, documentation or a designated owner.
The first step in an audit is therefore a systems inventory. Asking where the code is stored is not enough: all related services and data flows must be mapped.
Where does the application run? On corporate infrastructure, in a personal cloud account or in a development platform's free environment?
What data does it handle? Customer data, employee information, contracts or trade secrets?
What does it connect to? Email, invoicing software, a document repository or a central customer master database?
Who controls access? Who owns the hosting account, domain, code repository and subscription?
Who takes responsibility for operations? Is there a business owner, a technical lead and a deputy?
If these questions have no answers, the risk is already significant before we examine a single line of code. However, discovery should not aim to punish colleagues: a concealed system is more dangerous than a documented and monitored experiment.
2. Access control: a hidden button is not protection
For AI-generated applications, it is particularly important to check whether authorization is actually handled on the server. Just because a user cannot see the “Delete” button does not mean they cannot call the underlying endpoint directly. And logging in does not, in itself, authorize access to every customer record.
What should we test during the audit?
Can a standard user access the administrative API?
Can changing a record ID expose another colleague's or customer's data?
In a system serving multiple organizations, does every operation enforce organizational isolation?
How long do a disabled employee's previously issued sessions and tokens remain usable?
Are exports, attachments and bulk updates also protected?
Every sensitive operation requires server-side authorization checks. For testing, create a role–action matrix, then attempt not only permitted actions but prohibited ones as well. Tests that “must not succeed” are essential here.
3. Secrets, personal data and dangerous data flows
A common security flaw is an API key, database password or service token ending up in source code. A secret stored in code delivered to the browser will not remain secret, even if its variable name says “private.” A password subsequently deleted from a repository may also persist in version history, logs or earlier build packages.
The audit should cover the entire code history, configurations, deployment processes and logs. Leaked credentials must be revoked or rotated; simply deleting them from a file is not enough. The application should use only service accounts with the permissions necessary for its operation.
An equally important question is what data was shared with the AI service used to assist development. Were actual customer lists, contracts or debugging logs pasted into it? The provider's terms, data retention and access controls must be reviewed, along with safeguards for data transfers to third countries where applicable.
For personal data, GDPR roles, legal basis, privacy notices, retention periods and, where necessary, a data processing agreement must also be addressed. A data protection impact assessment is not mandatory for every CRM, but may be required for high-risk processing. Use synthetic data for testing wherever possible.
4. Dependencies and code flaws: check more than whether it starts
A package suggested by AI may have an incorrect name, an outdated version or an untrustworthy source. Before installation, verify the package's exact identity, origin, maintenance status and known vulnerabilities. Transitive dependencies matter just as much as directly selected libraries.
Dependency review: maintain a component inventory, pin versions and run recurring vulnerability checks.
License review: clarify obligations regarding use, distribution and any requirements to provide source code.
Input handling: does user data enter SQL queries or system commands directly? For file access, does the code exclude paths outside the permitted directory? For uploads, does it check file type and size on the server side and prevent uploaded files from being executed as code? Examine these issues not only in the interface but also in the server-side code that processes the input.
Output handling: verify that content displayed in the browser is handled appropriately to prevent script injection.
Business logic: changing client-side fields must not allow users to alter discounts, permissions or approval status.
If the application itself uses AI, separately examine prompt injection and the permissions of tools the AI can invoke. The content of an imported document must not automatically become a trusted instruction. Controlled execution and human approval where warranted are particularly important for financial operations or operations that destroy data.
5. Base deployment decisions on evidence, not intuition
Static code analysis, secret scanning and dependency scanning are good starting points, but none replaces manual review. Identifying authorization and business logic flaws also requires an understanding of the process. Conduct tests in an authorized, isolated environment.
The minimum pre-deployment package should include documented access tests, risk-proportionate attack simulations, and an actual backup and restore test. Check logging as well: can you reconstruct who modified a customer record without passwords or unnecessary personal data appearing in the logs?
Each finding should have a severity rating, an owner, a remediation deadline and a verification step. Define in advance which flaws block deployment: examples should include unauthorized access to another customer's data or a leaked access key that is still valid. Verify fixes through retesting; the designated decision-maker should document any decision to accept residual risks. Repeat the relevant checks whenever a new feature, dependency or integration is introduced.
6. Who owns the CRM if the employee who built it resigns?
Secure code alone does not guarantee that the company remains entitled to use and modify the system after its creator leaves. The legal conditions for continued operation must therefore also be clarified before deployment. For example, if an administrative employee built a CRM whose development was not included in their job description, this does not automatically mean either that all rights belong to the employee or that the system necessarily belongs to the employer.
Under the general rule in Section 30 of the Hungarian Copyright Act, Act LXXVI of 1999, unless otherwise agreed, the employer acquires the economic rights upon delivery of the work if creating it was part of the author's employment duties. This assessment depends not only on the job description: task assignments, agreements and the specific circumstances also matter.
If development was not part of the employee's employment duties and no appropriate legal agreement exists, disputes over use or remuneration may arise. For AI-generated code, however, it is first necessary to assess which parts qualify as copyright-protected human creations. The provider's terms and the licenses of incorporated components may impose further restrictions.
Rights relating to the code are not the same as control over customer data or trade secrets. A legal dispute does not automatically authorize anyone to take databases, delete systems or arbitrarily revoke access. Nor does termination of employment in itself settle or reverse any previous acquisition of rights.
To prevent disputes, set out the development assignment, the conditions for acquiring rights or using the software, documentation and handover in writing. The code repository, hosting and administration should remain under company control. When an employee leaves, revoke access, rotate keys as necessary and document the knowledge transfer. Specific cases require review by employment law and copyright specialists.
7. Summary: rapid development still requires enterprise controls
A vibe coding security audit is complete only when it checks permissions, data flows, dependencies, operational responsibilities and legal conditions alongside the code. The goal is not to stop innovation, but to prevent a useful prototype from becoming an uncontrolled business dependency.
Planning to deploy an internal application built with AI? Start by creating a system inventory, assigning business and technical owners, and defining deployment-blocking flaws and how fixes will be verified. If you need support in establishing controlled processes for the related business operations, contact the Click On team about xFLOWer and xFLOWer.ai.
xFLOWer.ai
Design the process behind this article – for free!
AI reads the processes hidden in this article; open any of them in xFLOWer.ai with one click.
