Slide 11
Slide 11 text
11
CONFIDENTIAL - © 2022 CoDMON Inc. 11
スキャン対象 / スキャン結果の違い
├── Dockerfile
├── index.ts
├── node_modules
├── package-lock.json
├── package.json
└── tsconfig.json
FROM node:20.18.0-bookworm-slim
WORKDIR /app
COPY package*.json ./
COPY tsconfig.json ./
COPY *.ts ./
RUN npm ci && npm run build
USER node
CMD ["node", "dist/index.js"]
{
"name": "vulnerable-app-demo",
…,
"dependencies": {
"lodash": "4.17.15",
"axios": "0.21.0",
"express": "4.16.0",
"minimist": "1.2.0",
"kind-of": "6.0.2",
"serialize-javascript": "2.1.0",
"handlebars": "4.5.0",
"ua-parser-js": "0.7.20",
"node-forge": "0.9.0",
"moment": "2.24.0"
},
"devDependencies": {
"typescript": "4.5.5",
"@types/node": "16.11.21",
"@types/express": "4.17.13",
"@types/lodash": "4.14.178",
"@types/minimist": "1.2.2",
"@types/serialize-javascript": "5.0.2",
"@types/ua-parser-js": "0.7.36",
"ts-node": "10.4.0"
}
}
Dockerfile package.json