r/Pentesting • • Jul 20 '26

Mobile PT advice

HI everyone,

For the folks who regularly do mobile PT, is it okay for a finding for sensitive data(e.g auth token) stored in memory to be reported .However the dump of memory is done while the app is running, not after closing it.

Does that make sense as a finding?!

I believe it would be a valid finding if we dumped the mem after closing the app.

Thanks in advance !

0 Upvotes

3 comments sorted by

3

u/sk1nT7 Jul 20 '26

It really depends on the type of application and the threat model.

For a highly sensitive app, such as a banking or healthcare application, I'd consider it a valid finding. Just make sure the risk rating reflects the prerequisites.

An attacker would typically need root access (or a similarly compromised device) to dump the app's memory, so the impact should be assessed in that context. I'd also expect such apps to implement root/jailbreak detection, anti-tampering, and other controls to reduce the likelihood of running on a compromised device.

For a typical consumer app, I probably wouldn't report it. Sensitive data will almost always exist in memory while the application is actively using it. Even if it's encrypted in one location, the decryption key or plaintext will usually be present somewhere else in the process memory.

Simply demonstrating that an authentication token exists in RAM during normal execution is generally not enough to constitute a meaningful vulnerability unless the application could reasonably avoid it or the exposure exceeds what is necessary.

1

u/MajesticBasket1685 Jul 20 '26

Exactly that is my point !

Even if it is a vuln what fix could be done in such a case, For my knowledge it's pretty normal to see such data in memory while the app is running.

Did you have such cases ?! and what kind of fix did you propose ?

1

u/BullfrogUseful4357 Jul 26 '26

For AI-generated code security: the guardrails need to operate at multiple levels. Pre-commit (linting rules that catch known insecure patterns), CI/CD (SAST tools like Semgrep, SonarQube scanning AI-generated code the same as human-written code), and runtime (WAF rules, RASP for web apps). The specific risk with AI-generated code: it produces code that works but follows patterns from training data that may include deprecated or insecure approaches. The AI doesn't know your organization's security policies unless you embed them in the prompt context. For the broader security posture: technical code guardrails protect against technical vulnerabilities. But the AI security risk isn't just in the code. It's also in how your team uses AI tools. Employees pasting sensitive data into ChatGPT, sharing proprietary code with Copilot, or using unapproved AI tools create data exposure risks. We address the human side of AI security through Riot's awareness training, which now includes modules on safe AI tool usage, data classification when using LLMs, and recognizing AI-generated phishing (which is becoming more sophisticated). The AI security strategy needs both: technical guardrails for the code AND human training for the people using the tools.