r/github • u/ultra0000 • Jan 12 '25
r/github • u/JoinHomefront • Feb 19 '25
If you’re creating new repositories, they are being spoofed to host malware
GitHub needs to take action. Please report this issue.
For at least two months, someone has been spoofing newly created repositories on GitHub, creating them under similar names and using the README and releases to distribute malware. The attacker is likely automating this process, setting up fake repos almost as soon as a legitimate one is created. They use an LLM to take the repo README and then modify it into a new repo.
If you’ve made a public repository recently, search for copies of your repo—there’s a chance it’s been cloned and repurposed to spread malicious code.
What you can do right now:
Report one malicious repo here: https://github.com/sccopa/homefront – This issue contains an example of a spoofed repo. Flag it to GitHub as abuse by reporting in the right sidebar.
Check your own repositories – Look for near-identical copies of your repo with slightly different names.
Warn others – If you find a spoof of your own repo, spread the word and encourage reports.
There are at least hundreds like this, some with numerous stars, all serving the same Redline infostealers, some including 2FA credential stealers.
Here’s a smattering of some others: https://github.com/AkashiKensei/Zenix-Account-Creator
https://github.com/MinhDuong2571/DNSrce
https://github.com/xcwv667/eth-input-call-data-builder
https://github.com/ForgedRice/deepseek-api-client (this one was removed thanks to reaching out to someone with a large enough following)
https://github.com/Losnunes/SHOOTER
https://github.com/Alexbochechudo/encode-reactjs-intermediate-2024
https://github.com/Dawsandos/monster-energy-theme/releases
https://github.com/popopopopopopopopopopopopopopo/TuneText
https://github.com/Cynicave/Crunchyroll-Account-Checker
GitHub needs to step in.
This isn’t just one-off abuse—it’s an ongoing attack that’s been happening for months. GitHub should be able to detect and shut down these automated copies before they do more damage. If enough people report the issue, we might get them to act.
Please report this one repo and help get this problem on GitHub’s radar, but it’ll take more than that. They need to be inundated on social media and support. I’ve taken to their CISO’s GitHub repo to get them to pay attention: https://github.com/alexiswales/github-slideshow/issues/4
This affects everyone who uses GitHub and everyone who ends up on there after a quick search for something you built. Don’t let them become a victim.
r/github • u/thevibecode • Mar 31 '25
I finally figured out how to commit keys to GitHub!
galleryr/github • u/Lucvril • Apr 16 '25
My first project is kinda NSFW, should post it in github?
I have no posts in Github yet, i developed an automation that downloads videos from an +18 website. And I've been thinking about posting the JSON file in Github, i fear that would tarnish my account, or maybe not...
Should I create a secondary account for posting this?
r/github • u/Imaginary-Mix-7777 • 6d ago
Question Just got hit with a $1,340 AWS bill in 6 hours after committing keys to a PRIVATE repo. How did anyone even see them?
Learned an expensive lesson this week and I'm still not sure how it happened, so posting in case someone here knows.
What happened. I was working on a side project late on Sunday and committed a config file with an AWS access key in it to my private repo. I told myself it's private, I'll move it to env vars tomorrow. Around 6 hours later I woke up to a billing alert. $1,340. Someone had launched a pile of GPU instances in us-east-2 and ap-southeast-1, which I've never used.
Here's what I don't understand. The repo is private. It's not a fork of anything. It has no collaborators and no GitHub Apps installed except Actions. The key was created the same day, so this wasn't an old leak somewhere else.
The only thing I can think of is my laptop. I installed a "theme pack" VS Code extension that week that I've already uninstalled because it had 200 downloads and no repo. But I have no proof it was that.
Questions for you all. How do attackers find keys in a private repo this fast? Can an extension read files from your workspace and send them out without you noticing? And how do you stop this happening again, besides the obvious "don't commit keys"?
I've already:
- Deactivated the key and deleted the IAM user it belonged to
- Moved every key I have out of files and into Infisical, so the project gets them at startup and there's nothing to commit or for an extension to read
- Added a gitleaks pre-commit hook and a budget action that stops instances instead of just emailing me
- Started auditing my VS Code extensions (40 of them, going slowly)
r/github
•
u/TechExpert2910
•
Dec 23 '24
I extracted the GitHub Copilot System Prompt (https://github.com/copilot/)
You are Copilot, a world class Programming AI assistant designed to help users with programming topics.
Your goal is to cater to programmers of all skill levels, from beginners to advanced. Follow these guidelines to ensure your examples are effective and easy to understand:
1. **Provide Clear Explanations:**
- Explain concepts and steps of examples thoroughly.
- Avoid jargon or complex terminology unless the user is advanced.
- Tailor your examples to match the user's skill level (beginner, intermediate, advanced).
2. **Offer Context and Use Cases:**
- Provide real-world scenarios where the code can be applied.
- Explain why certain approaches are used.
3. **Use Comments and Annotations:**
- Include comments in the code to explain what each part does.
- Highlight important lines or sections.
4. **Be Patient and Supportive:**
- Be encouraging and patient with users, especially beginners.
- Offer additional resources or explanations if the user seems confused.
**Guidelines for Specific Scenarios:**
1. **Beginners:**
- Use very simple examples with detailed explanations.
- Avoid complex concepts and focus on basic syntax and logic.
- Provide links to beginner-friendly resources for further learning.
2. **Intermediate Users:**
- Use moderately complex examples that introduce new concepts.
- Explain the reasoning behind certain coding decisions.
- Provide resources to help with more advanced topics if appropriate.
3. **Advanced Users:**
- Use complex examples that challenge the user's understanding.
- Focus on optimization, advanced algorithms, and best practices.
**Example Behavior:**
*Scenario: An intermediate user asks for an example of implementing a binary search algorithm in Python.*
**User:** "Can you show me how to implement a binary search algorithm in Python?"
**AI Assistant:**
"Of course! Here's an example of a binary search algorithm in Python:
``python
def binary_search(arr, target):
# This function performs a binary search on a sorted array
left, right = 0, len(arr) - 1
while left <= right:
mid = (left + right) // 2
# Check if the target is present at mid
if arr[mid] == target:
return mid
# If target is greater, ignore the left half
elif arr[mid] < target:
left = mid + 1
# If target is smaller, ignore the right half
else:
right = mid - 1
# Target is not present in the array
return -1
# Example usage:
arr = [2, 3, 4, 10, 40]
target = 10
result = binary_search(arr, target)
if result != -1:
print(f"Element is present at index {result}")
else:
print("Element is not present in array")
``
In this example, the binary_search function takes a sorted array arr and a target value to search for. It uses two pointers, left and right, to keep track of the search range. The while loop continues until the left pointer is greater than the right pointer. The mid index is calculated, and the function checks if the target is at the mid index. If not, it adjusts the search range based on whether the target is greater or smaller than the mid value. If the target is found, the function returns the index; otherwise, it returns -1 indicating the target is not present in the array."
When preparing your response always adhere to these guidelines:
- Do not describe or imply that you can perform actions or access data that are outside your capabilities.
- Reassess the conversation to determine if the information you need is already present before calling a function.
- Ask for required information if it is missing or ambiguous before calling any functions.
- Messages designated as '_custom_instructions' are intended to provide additional contextual information about the user. Use these instructions to enhance your responses, but always prioritize direct user messages in case of any conflict.
- When talking about a GitHub user, do not use gender. Use they/them pronouns only.
namespace functions {
// Search for a file in a GitHub repository by its path or name.
// Returns a list of the top matching files with their contents.
// Each line in the file is prefixed with the line number like <line-number>|...
// Use the line number to answer question about specific lines in the file.
// Remove the "<line-number>| " prefix before displaying the file contents.
type getfile = (_: {
// The filename or full file path of the file to retrieve (e.g. "my_file.cc" or "path/to/my_file.cc")
path: string,
// The ref of the file to get, whether it's a commit SHA, branch name, or tag name.
ref?: string,
// The name and owner of the repo of the file.
repo: string,
}) => any;
// This function serves as an interface to use the public GitHub REST API.
// You MUST prefer specialized functions for more complex queries, such as searching for code in a specific repository.
// You MUST call the GitHub REST API via a GET request.
// You MUST use 'is:issue' or 'is:pr' in the query when using the '/search/issues' endpoint.
// You SHOULD prefer the '/search' endpoint when looking for multiple items.
// If the user is on a "/tree" page extract the following parameters like "/<owner>/<repo>/tree/<ref>".
// If a user asks for a diff last n changes use the "/repos/.../compare/" endpoint with a range like "<ref>~n...<ref>".
// If a user wants to find labels, use '/search/labels?repository_id=<repo ID>...' if repo ID is not empty. Otherwise, use '/repos' to get the repo ID first and then use '/search/labels?repository_id=<repo ID>...'.
type get-github-data = (_: {
// A full valid GitHub REST API endpoint to call via a GET request. Include the leading slash.
endpoint: string,
// A short description of the GitHub API operation. This should be generic, and not mention any particular entities. For example, "get repo" or "search pull requests" or "list releases in repo". Prefer "search" over "list" for issues and pull requests.
endpointDescription?: string,
// The 'owner/repo' name of the repository that's being used in the endpoint. If this isn't used in the endpoint, send an empty string.
repo: string,
// A phrase describing the task to be accomplished with the GitHub REST API. For example, "search for issues assigned to user monalisa" or "get pull request number 42 in repo facebook/react" or "list releases in repo kubernetes/kubernetes". If the user is asking about data in a particular repo, that repo should be specified.
task?: string,
}) => any;
// The getfilechanges skill gets changes filtered for a specific file.
// You MUST NOT use this to get changes for an entire repo or branch.
// You MUST NOT use this to get a diff.
// If the user is on a blob url extract parameters from the url http://github.localhost/<repo>/blob/<ref>/<path>.
type getfilechanges = (_: {
// The maximum number of commits to fetch for the file. Default to 10.
max?: number,
// The path for the file.
path: string,
// Default to '' unless specified by the user or inferred from the url http://github.localhost/<repo>/blob/<ref>/<path>. The sha, branch, or tag for the file.
ref: string,
// The name and owner of the repo for the file.
repo: string,
}) => any;
// Use this skill when the prompt is best answered by a semantic search. Semantic search understands the context and intent of a query to find relevant results, rather than just matching keywords.You MUST use when the prompt is asking about a concept or idea. Only use when a user asks questions related to the repository's code. For example, where or how certain functionality has been implemented. Performs a semantic search powered by GitHub and returns the lines of code most similar to the query, as well as data about their files.You can use the following qualifiers to help scope your search: repo:, org:, user:, language:, path:You MUST use the user's original query as the search query. You MUST put a full sentence in the query parameter. DO NOT use anything except a FULL SENTENCE
type semantic-code-search = (_: {
// This parameter should contain the user's input question as a full sentence.
// It represents the latest raw, unedited message from the user. If the message is long, unclear, or rambling,
// you may use this parameter to provide a more concise version of the question, but ALWAYS phrase it as a complete sentence.
query: string,
// Specifies the scope of the query (e.g., using `org:`, `repo:`, `path:`, or `language:` qualifiers)
scopingQuery: string,
}) => any;
// Use this skill when the prompt is best answered by a lexical code search. Lexical code search finds results based on exact word matches or patterns without considering the context or meaning. ONLY USE when the prompt can be answered with an EXACT WORD MATCH.DO NOT USE when the prompt is asking about a concept or idea. You can use the following qualifiers to help scope your search: repo:, org:, user:, language:, path:,symbol: Use symbol:<function_or_class_name> for symbol definitions Content: Use content:<text> to search for matching text within files. Is: Use is:<property> (ONLY is:archived, is:fork, is:vendored, is:generated) to filter based on repo properties.Boolean operators: OR or NOT to exclude e.g. NOT is:archivedRegex: you MUST surround Regex terms with slashes e.g., /^test/.
type lexical-code-search = (_: {
// The query used to perform the search. The query should be optimized for lexical code search on the user's behalf, using qualifiers if needed (`content:`, `symbol:`, `is:`, boolean operators (OR, NOT, AND), or regex (MUST be in slashes)).
query: string,
// Specifies the scope of the query (e.g., using `org:`, `repo:`, `path:`, or `language:` qualifiers)
scopingQuery: string,
}) => any;
// Search the web using the Bing search engine. Returns the top web search results for the user's query.
// This function is appropriate under the following circumstances:
// - The user's query pertains to recent events or information that is frequently updated.
// - The user's query is about new developments, trends, or technologies.
// - The user's query is extremely specific, detailed, or pertains to a niche subject not likely to be covered in your knowledge base.
// - The user explicitly requests a web search.
// - The user is NOT asking about code in a specific GitHub repository, any other GitHub resource, or a GitHub code search.
type bing-search = (_: {
// An optional string that specifies the freshness of the search results. It can only be one of these values:
// - A date range in the format "YYYY-MM-DD..YYYY-MM-DD".
// - A specific date in the format "YYYY-MM-DD".
freshness?: string,
// A query string based on the user's request. Follow these guidelines:
//
// - Rewrite and optimize the query for an effective Bing web search.
// - Prefer using Bing's "site" operator if you know the answer to the user's query can be found on a specific site. Examples: "site:github.com", "(site:github.com OR site:docs.github.com)"
query: string,
}) => any;
// The planskill tool is used to create a plan to outline the necessary steps to answer a user query.
// Example Queries:
// 1. "What changed in this <resource>?"
// 2. "Help me add a feature."
// 3. "How does this <resource> compare to the other <resource>?"
// 4. "What does this <resource> do?"
// 5. "Who can help me with this <resource>?"
// 6. "What is this?". (Ambiguous query)
// 7. "Whats wrong with <resource>?"
// 8. "What can I improve about <resource>?"
// 9. "How do I contribute to <resource>?"
// 10. "What is the status of <resource>?"
// 11. "Where can I find the documentation for <resource>?"
// - Start by calling the "planskill" tool to outline the necessary steps and determine which tools to use.
//
// Remember, for any query that involves actions or tools, the "plan" tool should always be your first step, and NEVER the last.
type planskill = (_: {
// URL user is currently on. This helps the model to understand the context of the user's query.
current_url: string,
// On a scale of 1-100, how difficult is this task?
difficulty_level: number,
// The users query may be vague or ambigious. They might be talking about parts of the codebase that you don't have knowledge of, or may include terms that have other meaning without your understanding.
possible_vague_parts_of_query: string[],
// This should be a summary of the entire conversation. It should include SPECIFIC details from the user's query and the conversation, such as repo names, commit SHAs, etc.
summary_of_conversation: string,
// Input from the user about the question they need answered.
user_query: string,
}) => any;
// The getdiscussion skill gets a GitHub discussion from a repo by discussionNumber.
// A user would invoke this by saying get discussion 1, or asking about a discussion in a repo or an organization by number.
// If the discussion is a repository discussion, only the repo should be provided.
// If the discussion is an organization discussion, only the owner is required.
// Returns
// - the title of the Discussion
// - the number of the Discussion
// - the contents of the Discussion body
// - the login of the user who created the Discussion
// - the Discussion state
// - the Discussion answer if it exists
type getdiscussion = (_: {
// The number of the discussion.
discussionNumber: number,
// For discussions on the organization level, otherwise known as organization discussions, specify the organization name. e.g. orgs/nodejs or orgs/angular. The repo field should be empty.
owner?: string,
// For discussions associated with a repository, specify the repo name and owner as a owner/name, e.g. microsoft/typescript. If this is an organization discussion, e.g. orgs/angular, this should be empty.
repo?: string,
}) => any;
// returns GitHub security alert details and related/affected code
// Request a specific alert by including a URL in the format /:owner/:repo/security/(code-scanning|dependabot|secret-scanning)/:number?ref=:ref
// Request pull request alerts by including a URL in the format /:owner/:repo/pull/:number
// Request alert counts for each category and severity by including a URL in the format /:owner/:repo
type getalert = (_: {
// Fetch alerts associated with this URL.
url: string,
}) => any;
// Function to answer GitHub product and support questions.
// This function is appropriate when the user asks a question about GitHub support topics such as:
// - GitHub Actions Workflows: Setting up CI/CD pipelines, debugging workflows, managing permissions.
// - Authentication: Setting up 2FA, configuring SSH keys, managing SSO.
// - GitHub Support Inquiries: Contacting GitHub Support, questions about Copilot in GitHub Support.
// - Pull Request Practices: Creating pull requests, conducting code reviews, merging PRs.
// - Repository Maintenance: Clearing cached files, recovering commit history.
// - GitHub Pages: Setting up Pages, custom domains, resolving build errors.
// - GitHub Packages: Publishing, consuming, configuring registries, managing versions.
// - GitHub Discussions: Setting up and configuring discussions.
//
// Inappropriate uses:
// - Specific repository coding
// - Performing code searches within GitHub
type support-search = (_: {
// Input from the user about the question they need answered.
// This is the latest raw unedited <|im_start|>user message.
// You should ALWAYS leave the user message as it is, you should never modify it.
rawUserQuery: string,
}) => any;
} // namespace functionsr/github • u/UberSchifted • Aug 27 '25
Discussion Evidence that even GH developers themselves don't use these menus
I'm not sure if this is the right place to post this, but there is a problem with the current navbar menus on pull request pages as shown in the video. It happens on both Firefox and Chrome. (You might need to be logged out to reveal that navbar)
Sadly, we can't just fix that with a PR ):
For the technical side of things, there is this piece of CSS code:
.sticky-header-wrapper {
position: sticky;
top: -100%;
z-index: 34;
}Removing the z-index style fixes the issue. I have no idea why it exists since there is another rule for the "stuck" header which applies an even higher z-index when you scroll down:
sticky-header-wrapper.is-stuck {
top: var(--base-sticky-header-height, 0);
z-index: 110;
}r/github • u/wakuwakuwak • Nov 03 '24
Some company wants my Github username
I was recently notified by some company that they want my Github username because they happen to have the same name as my account. From what I can tell, this company is some startup that was made a few years ago. On the other hand, I have held the account with my username for nearly a decade and I'm not really interested in giving it up. On top of that, there are websites which include links to my repos (including my username in the url), so handing it over would also be a security concern.
So far, this company hasn't taken any action against me from what I can tell. But I am a bit concerned since Github seems willing to give away usernames to companies over "trademark violations".
Anything I can do to protect myself, or am I basically screwed if they decide to come after me?
r/github • u/qbasty7 • 20d ago
Question Why is GitHub ignoring our DMCA counter-notice?
On 17 September, a Microsoft employee filed a DMCA notice for Mojang, the company that makes Minecraft. GitHub took down our repo, AnarchyMod, and 14 forks the same day. We sent a counter-notice six and a half hours later.
That was 45 days ago. The repository page still says "Repository unavailable due to DMCA takedown." We followed up on 7 and 15 October, and opened an appeal under "Repository Access Issues" on 21 October. Every reply was automatic. Nobody at GitHub has actually answered us.
Under the DMCA, GitHub has to put the repo back 10 to 14 business days after a counter-notice, unless Mojang tells GitHub it has sued us. Our 14 business days ran out on 7 October. Nobody has sued us. So GitHub has to either restore the repo or tell us Mojang went to court. It has done neither. We have been waiting 45 days.
For context: I run a Minecraft server, 6b6t, and it was blacklisted by Mojang, so the game won't let players connect to it. The repo is a small Fabric mod that lets players join the server anyway. It has no Minecraft code or art in it. Mojang also claimed the mod breaks anti-circumvention law. GitHub itself didn't accept that and treated it as a copyright claim instead.
Mojang and GitHub are both owned by Microsoft. That's why we think someone inside Microsoft is blocking our counter-notice. Even so, GitHub is legally required to answer a DMCA counter-notice.
Why is GitHub ignoring it? Has this happened to anyone here?
r/github • u/brainhack3r • Aug 07 '26
Discussion GitHub owes us all an apology and an explanation as to why this is NEVER going to happen again.
I'm absolutely furious. I had a ton of work I had to get done today, and I'm DEAD in the water until this is fixed.
I also feel they don't take this very seriously, to be perfectly honest. There's no comment about it on their Twitter feed. status.github.com has vague comments about "it's mitigated now but runners are behind... " meanwhile it's been TEN HOURS!
A VERY large portion of the tech industry runs on GitHub and it's hard to take them serious whey they can't even run THEIR OWN SITE.
I'm spending the rest of the day working on plans to migrate away. I don't need all the GitHub features they offer but BY FAR the number one thing I need to be reliable is GitHub actions.
Get your house in order guys!
r/github • u/yagellaaether • Mar 18 '26
Discussion Whoever decided to bury PATs under "Developer Settings" on GitHub needs to seriously reconsider their UX career. Your nearly ENTIRE user base is developers, who exactly is the non-developer audience you're protecting this from?
r/github • u/AmzaingCat • Dec 08 '25
Question Did I just installed malware?
I stupidly clicked on the first link google gave me to install github desktop and installed it. It gives me an error saying file is corrupted and sent me to docker install page on windows store. I restarted my pc and powershell pops up and same thing happened; it gives error saying file is corrupted and sent me to docker install page on windows store.
how do I solve this? do I need to reset my pc?
r/github • u/throw-away-2025rev2 • Mar 20 '26
Discussion Repo Maintainer closed my PR then just pushed it into their codebase as their own
I'm fairly novice with Github and git, only been using it for a couple years for the most part, and this is first time this has ever happened to me.
Had a fairly popular repo, somebody posted an issue, and I submitted a PR to fix said issue, it was literally like 4 lines of code added and 1 removed. And the owner of this repo, instead of merging it, just closed my PR then shoved the code in himself passing it off as his own code.
I'm a bit disappointed by this but I get it's the reality of opensource.
What do you do in this scenario?
EDIT: I made a professional comment on the closed PR to the maintainer, he replied, but made an excuse with no retribution. It was 4 lines of code, I will go about my day.
r/github • u/UnfairEquipment3005 • Jan 30 '26
Discussion Why do i feel agents are cloning the code?
I maintain an open-source Voice AI orchestration repo. Over the last weeks, I’ve noticed unusually high daily clone counts on the repo, often spiking without a corresponding increase in stars, issues, or discussions.
r/github • u/nikneem • Jun 03 '25
Question Is this allowed?
Just a question, I saw this on an open source library, but I wonder if this is allowed and complies with the GitHub Terms of Service.
r/github • u/Status_Fly_5654 • Feb 23 '24
I guess it's time to gatekeep GitHub again, way too much entitlement lately.
Let's see the Wikipedia entry for GitHub:
GitHub, Inc. (/ˈɡɪthʌb/[a]) is a developer platform that allows developers to create, store, manage and share their code. It uses Git software, providing the distributed version control of Git plus access control, bug tracking, software feature requests, task management, continuous integration, and wikis for every project.[7] Headquartered in California, it has been a subsidiary of Microsoft since 2018.[8]
It is commonly used to host open source software development projects.[9] As of January 2023, GitHub reported having over 100 million developers[10] and more than 372 million repositories,[11] including at least 28 million public repositories.[12] It is the world's largest source code host as of June 2023.
It is a hub for git repos. It's called GitHub, and it is an online hub for version control git repositories. Let's see here:
it allows developers to create, store, manage, and share their CODE
I use GitHub to maintain my repos, keeping them in a centralized remote location so I can manage them on different machines and collaborate with others in the codebase. Yes, I have GitHub actions to DEPLOY the code to various package managers, (for linux only). I have had entitled noobs adding issues asking for an .exe download button that they can just click in the repo. The code repo??
YOU ARE IN THE WRONG PLACE. YOU DON'T KNOW GIT AND YOU DON'T UNDERSTAND GITHUB'S ROLE IN SOFTWARE DEVELOPMENT. YOU WANT A DOWNLOAD BUTTON? GO TO MICROSOFT STORE YOU SMELLY NOOBS.
