Txoj kev ceev tshaj: qhib lub repository hauv GitHub, mus rau Settings → Security and quality → Advanced Security, thiab qhib Dependency graph yog tsim nyog, ces qhib ib qho zuj zus Dependabot alerts thiab Dependabot malware alerts. Tam sim no malware alerts feature txhawb Composer, Go, Maven, npm, NuGet, pip, RubyGems thiab Rust (raws li docs.github.com).
Tsab xov xwm no yog rau cov neeg tshiab uas muaj cai tswj repository lossis muaj cai sib npaug. Qhov yuav tsum ua tiav tsis yog “tsis muaj ceeb toom”, tiam sis yog kom peb lub khawm qhib tag nrho, dependency graph txheeb tau cov ntaub ntawv dependency kom raug, thiab pab pawg paub yuav teb li cas yog muaj ceeb toom tshwm. Dependabot tsis kuaj pom txhua yam malware tshiab: yuav tsum muaj cov ntaub ntawv advisory uas GitHub tau sau tseg los txuas rau package, thiab yuav tsum txheeb tau manifest lossis lockfile.
Cais peb yam feature ua ntej qhib
Dependabot alerts qhia ceeb toom txog dependency uas muaj qhov tsis muaj kev nyab xeeb uas twb paub lawm. Dependabot malware alerts tsom rau package lossis version uas tau txheeb pom tias muaj malware, xws li package uas raug nyiag txoj cai tshaj tawm lossis muaj tus cwj pwm txaus ntshai.
Dependabot security updates yog lwm yam feature uas tej zaum yuav tawm tswv yim lossis tsim pull request kom hloov dependency los kho qhov ceeb toom. Kev qhib security updates tsis hloov chaw rau kev qhib Dependabot alerts thiab malware alerts.
Ob hom Dependabot ceeb toom puav leej vam khom rau dependency graph thiab GitHub Advisory Database. Lub database no yuav txais malware advisory los ntawm tej chaw xws li pab pawg npm security thiab lub repository OpenSSF Malicious Packages (raws li docs.github.com). Yog li, qhov no tsis yog ib qho malware scanner uas koj yuav tsum nruab rau hauv koj lub computer.
Kuaj cov xwm txheej thiab thaj tsam txhawb
- Koj muaj cai tswj repository lossis muaj cai uas GitHub txoj cai ntawm lub koom haum tso cai rau hloov cov security feature.
- Repository yuav tsum muaj tsawg kawg ib qho manifest lossis lockfile uas nyob hauv ib qho ecosystem txhawb.
- Default branch yuav tsum muaj cov dependency tiag uas yuav tsum tau taug qab.
- Rau repository ntiag tug lossis repository sab hauv, lub koom haum yuav siv policy lossis GitHub license uas hloov tau qhov muaj ntawm feature. Yog koj tsis pom lub pob qhib, kuaj koj cov cai thiab policy ntawm lub koom haum, tsis txhob tsim YAML configuration tshiab.
Dependabot malware alerts txhawb cov pawg ntaub ntawv nquag siv hauv qab no. Cov no yog piv txwv kom koj paub tias yuav nrhiav dab tsi hauv repository; kev txheeb pom kuj tseem nyob ntawm tus qauv project thiab hom dependency.
| Ecosystem | Cov ntaub ntawv uas nquag pom | Tool lossis lus programming uas cuam tshuam |
|---|---|---|
| Composer | composer.json, composer.lock | PHP |
| Go | go.mod | Go modules |
| Maven | pom.xml | Java, Scala |
| npm | package.json, package-lock.json | JavaScript, Node.js |
| NuGet | .csproj, packages.config | .NET |
| pip | requirements.txt, Pipfile.lock | Python, PyPI |
| RubyGems | Gemfile, Gemfile.lock | Ruby |
| Rust | Cargo.toml, Cargo.lock | Cargo, crates.io |
Piv txwv li, ib lub repository Node.js feem ntau yuav tsum muaj package.json thiab tej zaum yuav muaj package-lock.json Ib lub repository Python kuj yuav siv requirements.txt lossis Pipfile.lock. Qhib Dependency graph tom qab qhib lawm kom paub tseeb tias GitHub tau txheeb pom cov ntaub ntawv tiag tiag, tsis yog tsuas kwv yees raws li lub npe lus programming xwb.
Qhib cov lus ceeb toom hauv repository lub interface
1. Qhib Advanced Security
- Nkag mus rau GitHub thiab qhib lub repository uas koj xav tiv thaiv.
- Xaiv lub tab Settings. Yog lub tab tsis tshwm, qhib lub menu xaiv uas nyob ib sab ntawm lub npe repository, ces xaiv Settings.
- Hauv sab navigation, xaiv Security and quality, ces qhib Advanced Security.
Yog koj tsis pom Settings lossis Advanced Security, tej zaum koj tsis muaj cai txaus, nyob hauv lub repository tsis yog, lossis lub koom haum txoj cai tsis pub hloov cov security feature. Hloov chaw uas tsis tsim nyog mus kho cov ntaub ntawv configuration, thov kom tus repository administrator kuaj xyuas.
2. Qhib Dependency graph
- Nrhiav ntu Dependency graph.
- Yog tam sim no raug kaw, xaiv Enable.
- Tos kom GitHub tsim lossis hloov kho dependency graph ua ntej koj tshuaj xyuas qhov tshwm sim.
Dependency graph yog cov ntaub ntawv uas GitHub siv los txheeb xyuas cov dependency ncaj qha thiab tsis ncaj qha los ntawm manifest lossis lockfile. Yog ntu no twb qhib lawm, tsis tas yuav kaw thiab qhib dua. Yog graph tseem tsis muaj qee cov ntaub ntawv tom qab ntawd, xyuas seb cov ntaub ntawv puas nyob hauv default branch, puas tau commit lawm, thiab puas yog hom ntaub ntawv uas GitHub txhawb.
3. Qhib Dependabot alerts
- Ntawm kab Dependabot alerts, xaiv Enable.
- Tos kom qhov xwm txheej hloov mus ua qhib thiab kom dependency graph hloov kho tiav.
- Qhib ntu dependency graph kom xyuas seb manifest lossis lockfile uas xav tau puas tshwm lawm.
Dependabot malware alerts yuav tsum muaj Dependabot alerts qhib ua ntej. Yog kab malware alerts tseem tsis tshwm, ua kom tiav kauj ruam no, ces rov thauj nplooj ntawv thiab kuaj dua (raws li docs.github.com).
4. Qhib Dependabot malware alerts
- Nyob rau tib nplooj ntawv Advanced Security, nrhiav kab Dependabot malware alerts.
- Xaiv Qhib thiab tos kom lub interface lees paub tias tau qhib lawm.
- Rov qhib seem security ntawm repository kom kuaj qhov Dependabot.
Tsis tas yuav tsim .github/dependabot.yml tsuas yog qhib malware alerts xwb. Cov ntaub ntawv no feem ntau yog siv los teeb tsa version updates, xws li lub sijhawm kuaj thiab tsim pull request rau kev hloov version. Tsuas ntxiv cov ntaub ntawv no thaum koj xav teeb tsa dependency updates tiag tiag; tsis txhob suav tias yog ib kauj ruam yuav tsum muaj rau malware alerts.
Kuaj xyuas yam tsis muab package uas xav tias muaj teeb meem tso rau hauv qhov project

Tsis tsim nyog txhob txwm nruab ib package uas xav tias muaj malware tsuas yog sim qhov kev ceeb toom. Hloov chaw ntawd, kuaj xyuas raws li cov cim uas pom tau hauv qab no:
- Qhib Settings → Security and quality → Advanced Security thiab lees paub tias Dependency graph, Dependabot alerts thiab Dependabot malware alerts puav leej nyob rau hauv qhov xwm txheej qhib.
- Qhib seem security ntawm repository, mus rau Dependabot thiab nrhiav lub lim lossis seem Malware. Tej zaum yuav tsis muaj ntaub ntawv teev tseg yog GitHub tseem tsis tau sau tseg ib qho package muaj malware hauv graph tam sim no.
- Qhib Dependency graph thiab muab piv rau cov ntaub ntawv uas muaj tiag, xws li
package-lock.json,requirements.txt,pom.xmllossisGemfile.lock. - Kuaj xyuas tus neeg saib xyuas cov kev teeb tsa kev ceeb toom. Tus neeg txais yuav tsum muaj txoj cai tsim nyog, tab tom follow repository, thiab tau qhib cov kev ceeb toom txog security raws li txoj cai ntawm tus account lossis lub koom haum.
Yog seem Malware tsis muaj kev ceeb toom, qhov txiaj ntsig raug yuav tsum to taub tias “tam sim no tsis muaj advisory uas phim hauv dependency graph”, tsis yog tias “txhua dependency muaj kev nyab xeeb”.
Txheej txheem ua thaum muaj malware alert
1. Sau tseg thaj tsam uas raug cuam tshuam
Qhib qhov kev ceeb toom thiab sau tseg lub npe package, ecosystem, version, manifest lossis lockfile uas cuam tshuam, seb yog dependency ncaj qha lossis dependency txuas mus los, thiab version kho teeb meem yog GitHub muab. Khaws cov commit, workflow thiab build log uas cuam tshuam cia kom pab tshawb xyuas.
Tsis txhob saib tsuas yog cov ntaub ntawv qhia ncaj qha xwb. Package muaj malware tej zaum yuav yog dependency txuas mus los uas raug lock rau hauv lockfile, hos manifest tsuas qhia lub package qib siab dua xwb.
2. Cais tawm ua ntej mam rov tsim dua
- Ncua ib ntus lub pipeline lossis build uas tab tom nruab lossis siv version uas raug cuam tshuam.
- Tsis txhob rov khiav qhov lus txib nruab dependency los ntawm lockfile uas raug cuam tshuam kom txog thaum muaj ib txoj kev daws teeb meem uas tau tshuaj xyuas lawm.
- Tsis txhob muab log uas muaj token, key lossis cov ntaub ntawv rhiab siab tso rau hauv qhov issue pej xeem.
- Yog package ntawd tau khiav dhau los ntawm lub computer tsim kho, lub tshuab build lossis server uas muaj secret, yuav tsum tam sim ntawd ntsuas seb secret puas tau raug nyeem; rho tawm thiab tsim secret tshiab rau cov secret cuam tshuam raws li lub koom haum txoj txheej txheem.
Dependabot muab cov ntaub ntawv txog dependency thiab txoj kev kho teeb meem, tab sis nws tsis hloov chaw rau txheej txheem teb rau xwm txheej. Seb puas yuav tsum tshawb xyuas log, cais lub tshuab tawm lossis ceeb toom txog xwm txheej, nyob ntawm cov cai uas package ntawd tau muaj thiab cov ntaub ntawv hauv ib puag ncig.
3. Hloov kho, hloov chaw thiab kuaj xyuas
- Yog muaj version uas nyab xeeb, hloov kho manifest thiab lockfile; tshuaj xyuas qhov txawv hauv diff ua ntej merge.
- Yog tseem tsis muaj version kho teeb meem, tshem package tawm, hloov nws nrog lwm dependency lossis kaw txheej txheem build kom tsis txhob rov rub version uas raug cuam tshuam ntxiv.
- Rau dependency txuas mus los, hloov kho package qib siab dua lossis siv lub tshuab override/resolution ntawm ecosystem tom qab kuaj xyuas compatibility.
- Khiav application tests hauv ib puag ncig huv, rov tshuaj xyuas log thiab qhib dependency graph dua kom paub tseeb tias version uas raug cuam tshuam tau ploj lawm.
Tsis tsim nyog dismiss qhov kev ceeb toom tsuas yog vim package nyob hauv development dependency. Development dependency tseem yuav khiav tau ntawm tus developer lub tshuab lossis hauv CI thiab tej zaum yuav nkag tau rau token.
Cov kev txwv thiab txoj kev thim rov qab kom nyab xeeb
- Nws tsis kuaj pom tau txhua package uas muaj malware: malware tshiab tej zaum tseem tsis tau muaj advisory hauv GitHub Advisory Database.
- Nws vam khom cov ntaub ntawv dependency: yog manifest lossis lockfile ploj lawm, qub dhau lawm lossis tsis raug txheeb xyuas, dependency graph yuav tsis tiav.
- Tej zaum yuav tsum tshawb xyuas ntxiv: package sab hauv uas muaj tib lub npe thiab version li package pej xeem, tej zaum yuav tsim ib qho kev ceeb toom uas yuav tsum tau kuaj xyuas.
- Nws tsis yog kev tshuaj xyuas tus cwj pwm kom tiav: malware alerts tsis hloov chaw rau code review, kev tiv thaiv secret, kev tswj registry, sandbox lossis kev tshuaj xyuas dependency hloov pauv.
- Tej zaum yuav muaj kev qeeb: qhov kev ceeb toom tsis tas yuav tshwm sim tam sim ntawd thaum package raug txheeb pom lossis thaum advisory raug hloov kho.
Yog tsuas xav tso tseg kev ceeb toom xwb, tus thawj tswj hwm tuaj yeem tua Dependabot malware alerts hauv Advanced Security; qhov no yuav tshem tawm txheej txheem soj ntsuam, tabsis tsis kho lub package uas raug cuam tshuam. Tsis txhob rho lub lockfile tawm kom zais qhov kev ceeb toom. Yog koj tau hloov dependency, khaws cia cov commit thiab diff kom thiaj rov qab tau mus rau version yav dhau los hauv ib ceg lossis ib commit cais tom qab tshuaj xyuas qhov cuam tshuam. Yog lub package twb tau khiav nrog secret lawm, yuav tsum xub thim rov qab thiab tsim secret tshiab ua ntej rov qhib pipeline.
Daim ntawv txheeb xyuas ua tiav
- Dependency graph tau qhib lawm.
- Dependabot alerts tau qhib lawm.
- Dependabot malware alerts tau qhib lawm.
- Manifest lossis lockfile ntawm qhov project tau tshwm hauv Dependency graph.
- Tus neeg saib xyuas tau tshuaj xyuas thiab qhib cov kev ceeb toom kev ruaj ntseg uas tsim nyog.
- Pab neeg paub txoj hauv kev qhib ntu Dependabot → Malware.
- Cov txheej txheem cais dependency, hloov kho lockfile thiab hloov secret tshiab tau sau tseg lawm.
Cov ntaub ntawv siv
- Dependabot malware alerts — GitHub Docs.
- Configuring Dependabot malware alerts — GitHub Docs.
- Global security advisories — GitHub Docs.
- Dependency graph supported package ecosystems — GitHub Docs.
- Managing Dependabot malware alerts — GitHub Docs.

