<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: K.Chandini Subudhi</title>
    <description>The latest articles on DEV Community by K.Chandini Subudhi (@k_chandini_subudhi_).</description>
    <link>https://dev.to/k_chandini_subudhi_</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4151239%2F4301c8ee-bed0-4c85-88c5-9e472cd1d89c.png</url>
      <title>DEV Community: K.Chandini Subudhi</title>
      <link>https://dev.to/k_chandini_subudhi_</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/k_chandini_subudhi_"/>
    <language>en</language>
    <item>
      <title>We already had a security scanner</title>
      <dc:creator>K.Chandini Subudhi</dc:creator>
      <pubDate>Wed, 30 Sep 2026 13:14:09 +0000</pubDate>
      <link>https://dev.to/k_chandini_subudhi_/we-already-had-a-security-scanner-3a8g</link>
      <guid>https://dev.to/k_chandini_subudhi_/we-already-had-a-security-scanner-3a8g</guid>
      <description>&lt;p&gt;The bigger question was:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What happens if it remembers?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;While building SecurePush for HackWith Hyderabad 3.0, we started with a pretty straightforward idea.&lt;/p&gt;

&lt;p&gt;A developer runs &lt;code&gt;git push&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Before the code reaches the remote repository, SecurePush checks the changes for security problems.&lt;/p&gt;

&lt;p&gt;If something is wrong, it explains the issue and suggests a fix.&lt;/p&gt;

&lt;p&gt;The developer decides whether to accept it.&lt;/p&gt;

&lt;p&gt;The fix gets applied, the code is verified, and the push is either allowed or blocked.&lt;/p&gt;

&lt;p&gt;That part was fairly straightforward.&lt;/p&gt;

&lt;p&gt;Then came Hindsight.&lt;/p&gt;

&lt;h2&gt;
  
  
  Adding memory changed the workflow
&lt;/h2&gt;

&lt;p&gt;We didn't want Hindsight to just be something we connected to the project because the hackathon required it.&lt;/p&gt;

&lt;p&gt;We wanted there to be an actual reason for SecurePush to remember things.&lt;/p&gt;

&lt;p&gt;Think about what happens during a normal security review.&lt;/p&gt;

&lt;p&gt;A vulnerability is found.&lt;/p&gt;

&lt;p&gt;A fix is suggested.&lt;/p&gt;

&lt;p&gt;The developer accepts or rejects it.&lt;/p&gt;

&lt;p&gt;Maybe the fix works.&lt;/p&gt;

&lt;p&gt;Maybe it doesn't.&lt;/p&gt;

&lt;p&gt;Maybe the same kind of issue appears again a few days later.&lt;/p&gt;

&lt;p&gt;Usually, that history is gone from the perspective of the next review.&lt;/p&gt;

&lt;p&gt;We wanted to change that.&lt;/p&gt;

&lt;h2&gt;
  
  
  So what does SecurePush actually remember?
&lt;/h2&gt;

&lt;p&gt;Not the entire codebase.&lt;/p&gt;

&lt;p&gt;Not every line of code.&lt;/p&gt;

&lt;p&gt;And definitely not the actual passwords, API keys, or credentials it finds.&lt;/p&gt;

&lt;p&gt;SecurePush remembers the useful parts of a security review.&lt;/p&gt;

&lt;p&gt;Things like:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;What security issue was found&lt;/li&gt;
&lt;li&gt;Which file it was found in&lt;/li&gt;
&lt;li&gt;The severity of the issue&lt;/li&gt;
&lt;li&gt;What fix was suggested&lt;/li&gt;
&lt;li&gt;Whether the developer accepted or rejected the fix&lt;/li&gt;
&lt;li&gt;Whether the verification passed or failed&lt;/li&gt;
&lt;li&gt;Whether the push was ultimately allowed or blocked&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For example, imagine SecurePush finds a hardcoded credential in &lt;code&gt;src/config.ts&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;It suggests moving the credential into an environment variable.&lt;/p&gt;

&lt;p&gt;The developer accepts the fix.&lt;/p&gt;

&lt;p&gt;The change is applied.&lt;/p&gt;

&lt;p&gt;Tests pass.&lt;/p&gt;

&lt;p&gt;The push is allowed.&lt;/p&gt;

&lt;p&gt;Hindsight can remember that interaction.&lt;/p&gt;

&lt;p&gt;Something along the lines of:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;A hardcoded credential was found in &lt;code&gt;src/config.ts&lt;/code&gt;. The developer accepted the environment-variable remediation. Verification passed and the push was allowed.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The actual credential is not what we want to remember.&lt;/p&gt;

&lt;p&gt;We want to remember the &lt;strong&gt;security event and its outcome&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Then comes the next review
&lt;/h2&gt;

&lt;p&gt;This is where the memory becomes useful.&lt;/p&gt;

&lt;p&gt;A developer makes another change later.&lt;/p&gt;

&lt;p&gt;Before reviewing the new code, SecurePush can ask Hindsight:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;"Have we seen anything relevant to this change before?"&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Hindsight searches the repository's previous security memory and returns relevant context.&lt;/p&gt;

&lt;p&gt;Maybe it finds that the same file had a hardcoded credential before.&lt;/p&gt;

&lt;p&gt;Maybe it finds that the developer previously accepted a particular remediation.&lt;/p&gt;

&lt;p&gt;That information is then passed into the security review.&lt;/p&gt;

&lt;p&gt;So the new review isn't completely isolated from what happened before.&lt;/p&gt;

&lt;h2&gt;
  
  
  But memory doesn't replace the security check
&lt;/h2&gt;

&lt;p&gt;This was an important part of the implementation.&lt;/p&gt;

&lt;p&gt;Just because Hindsight remembers that something happened before doesn't mean SecurePush assumes the same issue exists now.&lt;/p&gt;

&lt;p&gt;The current code is still checked.&lt;/p&gt;

&lt;p&gt;The recalled information is treated as historical context.&lt;/p&gt;

&lt;p&gt;So if Hindsight says:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;A hardcoded credential was previously found in &lt;code&gt;src/config.ts&lt;/code&gt;.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;SecurePush still needs to look at the current diff and determine whether there is actually a credential problem now.&lt;/p&gt;

&lt;p&gt;The memory helps the agent understand the history.&lt;/p&gt;

&lt;p&gt;It doesn't make the decision for it.&lt;/p&gt;

&lt;h2&gt;
  
  
  The complete flow
&lt;/h2&gt;

&lt;p&gt;The final workflow looks like this:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Developer changes code&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;↓&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;code&gt;git push&lt;/code&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;↓&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;SecurePush checks the changed code&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;↓&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Hindsight recalls relevant security history&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;↓&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Security review happens with that context&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;↓&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A problem is found&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;↓&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Developer accepts or rejects the proposed fix&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;↓&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;SecurePush applies and verifies the change&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;↓&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Push is allowed or blocked&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;↓&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The review outcome is remembered&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;And the cycle starts again.&lt;/p&gt;

&lt;p&gt;The next review now has access to the history of previous reviews.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why we made the memory visible
&lt;/h2&gt;

&lt;p&gt;We also didn't want Hindsight to be something that only existed somewhere in the backend.&lt;/p&gt;

&lt;p&gt;So we added a Memory section to SecurePush.&lt;/p&gt;

&lt;p&gt;The idea is simple.&lt;/p&gt;

&lt;p&gt;If SecurePush says it remembers something, you should be able to see what it remembers.&lt;/p&gt;

&lt;p&gt;The memory can show the security issue, the file involved, the decision made by the developer, the remediation, and the result of verification.&lt;/p&gt;

&lt;p&gt;It makes the whole process easier to understand.&lt;/p&gt;

&lt;p&gt;You can see the difference between:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What happened&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;and&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What SecurePush remembered from it.&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  There was another problem
&lt;/h2&gt;

&lt;p&gt;A security tool that finds secrets has to be careful about what it stores.&lt;/p&gt;

&lt;p&gt;If SecurePush finds:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;API_KEY = "actual-secret"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;we obviously don't want the actual secret ending up in the memory system.&lt;/p&gt;

&lt;p&gt;So sensitive values are sanitized before they are retained.&lt;/p&gt;

&lt;p&gt;The memory should say:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;A hardcoded credential was detected and the developer accepted moving it to an environment variable.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;It should never need to contain the actual credential.&lt;/p&gt;

&lt;p&gt;This was one of the things we had to think about while connecting the security workflow with persistent memory.&lt;/p&gt;

&lt;h2&gt;
  
  
  What we liked about the idea
&lt;/h2&gt;

&lt;p&gt;The interesting part of SecurePush isn't just that an AI can find a security issue.&lt;/p&gt;

&lt;p&gt;There are already tools that can scan code.&lt;/p&gt;

&lt;p&gt;The interesting part is what happens when the security tool doesn't forget every review.&lt;/p&gt;

&lt;p&gt;A repository has history.&lt;/p&gt;

&lt;p&gt;It has previous vulnerabilities.&lt;/p&gt;

&lt;p&gt;It has fixes that worked.&lt;/p&gt;

&lt;p&gt;It has decisions that developers made.&lt;/p&gt;

&lt;p&gt;It has problems that may come back.&lt;/p&gt;

&lt;p&gt;Normally, a lot of that context is spread across commits, issues, documentation, chats, and people's memory.&lt;/p&gt;

&lt;p&gt;With Hindsight, SecurePush can keep some of that security context and use it during future reviews.&lt;/p&gt;

&lt;p&gt;That doesn't mean the system automatically knows everything about the repository.&lt;/p&gt;

&lt;p&gt;It just means every review doesn't have to start completely from zero.&lt;/p&gt;

&lt;h2&gt;
  
  
  Building SecurePush
&lt;/h2&gt;

&lt;p&gt;For us, the project ended up being more than just connecting an AI model to a Git hook.&lt;/p&gt;

&lt;p&gt;We had to think about the complete flow.&lt;/p&gt;

&lt;p&gt;How do we detect the changed code?&lt;/p&gt;

&lt;p&gt;How do we decide what needs to be reviewed?&lt;/p&gt;

&lt;p&gt;How do we explain a security issue?&lt;/p&gt;

&lt;p&gt;How do we let the developer stay in control of the fix?&lt;/p&gt;

&lt;p&gt;How do we verify the change?&lt;/p&gt;

&lt;p&gt;How do we remember the outcome?&lt;/p&gt;

&lt;p&gt;And most importantly:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What information is actually worth remembering?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;That last question became one of the most interesting parts of the project.&lt;/p&gt;

&lt;p&gt;Because memory isn't useful just because you have a lot of it.&lt;/p&gt;

&lt;p&gt;It is useful when the right information comes back at the right time.&lt;/p&gt;

&lt;h2&gt;
  
  
  What SecurePush became
&lt;/h2&gt;

&lt;p&gt;We started with a simple idea:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Check code before it gets pushed.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Then we added another idea:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Remember what happened during the check.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Put those together and SecurePush became something a little different from a normal security scanner.&lt;/p&gt;

&lt;p&gt;It doesn't just look at the current push.&lt;/p&gt;

&lt;p&gt;It can also look back at the security history of the repository.&lt;/p&gt;

&lt;p&gt;The current code still matters most.&lt;/p&gt;

&lt;p&gt;But now the review has context.&lt;/p&gt;

&lt;p&gt;That's what we wanted to explore with Hindsight.&lt;/p&gt;

&lt;p&gt;Not just an AI that can find a problem.&lt;/p&gt;

&lt;p&gt;An AI security agent that can &lt;strong&gt;remember the problems, decisions and outcomes that came before.&lt;/strong&gt;&lt;/p&gt;

</description>
      <category>automation</category>
      <category>git</category>
      <category>security</category>
      <category>software</category>
    </item>
  </channel>
</rss>
