TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: Private Repository on GitHub Leaked?

1 点作者 dsgrillo超过 4 年前
I had 2 accounts compromised last week:<p>1. AWS account 2. Gmail account<p>Both keys (account secrets for AWS and user&#x2F;pw for gmail) were only used in a single repository hosted on Github, private, with only me as a collaborator. Both accounts were accessed within the same week, thus this .env is likely the source of leakage.<p>For this project, I only work from the same PC. If my PC was compromised, I would expect other accounts to be compromised as well.<p>The application server (in DigitalOcean), that also reads from this repository, has no signal of intrusion.<p>I know that it&#x27;s a bad practice of keeping production keys on the repo, but was confident that if I was careful, it would not be easily leaked.<p>Am I missing something else?

1 comment

stevekemp超过 4 年前
Go to the &quot;insights&quot; tab on your repository, and you should be able to see the number of recent-clones. If that number is bigger than zero it might be that somebody else has fetched it.<p>But really we can&#x27;t tell; there&#x27;s been nothing in the news about a mass compromise, or mass leaking. So it is possible you&#x27;ve had a PC compromise by a slow &amp; stealthy user, or something entirely different.