Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin' into Other-Severity-Label-for-A…
Browse files Browse the repository at this point in the history
…ll-Vulns-CRASM-822
  • Loading branch information
hawkishpolicy committed Nov 13, 2024
2 parents b4cd7b5 + c30afa4 commit dbcd84d
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 5 deletions.
2 changes: 1 addition & 1 deletion backend/Dockerfile.pe
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ RUN ./aws/install
# Sync the latest from cf-staging branch
RUN git clone -b crossfeed-SQS https://github.com/cisagov/ATC-Framework.git && \
cd ATC-Framework && \
git checkout 6b5a8753ad5bcdb4426b5ba24ceffd77f901c228 && \
git checkout 22c3de519337e577775f2580ba09c7ba51c08904 && \
pip install .

RUN python -m spacy download en_core_web_lg
Expand Down
7 changes: 7 additions & 0 deletions backend/serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,13 @@ resources:
VisibilityTimeout: 18000 # 5 hours
MaximumMessageSize: 262144 # 256 KB
MessageRetentionPeriod: 604800 # 7 days
ASMQueue:
Type: AWS::SQS::Queue
Properties:
QueueName: ${self:provider.stage}-asm-queue
VisibilityTimeout: 18000 # 5 hours
MaximumMessageSize: 262144 # 256 KB
MessageRetentionPeriod: 604800 # 7 days

functions:
- ${file(./src/tasks/functions.yml)}
Expand Down
11 changes: 9 additions & 2 deletions backend/src/tasks/scanExecution.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,14 @@ import { integer } from 'aws-sdk/clients/cloudfront';
const ecs = new AWS.ECS();
let docker: any;
const QUEUE_URL = process.env.QUEUE_URL!;
const SCAN_LIST = ['dnstwist', 'intelx', 'cybersixgill', 'shodan', 'xpanse'];
const SCAN_LIST = [
'dnstwist',
'intelx',
'cybersixgill',
'shodan',
'xpanse',
'asmSync'
];

if (process.env.IS_LOCAL) {
const Docker = require('dockerode');
Expand Down Expand Up @@ -215,7 +222,7 @@ export const handler: Handler = async (event) => {
await startDesiredTasks(scanType, desiredCount);
} else {
console.log(
'Shodan, DNSTwist, IntelX, Xpanse, and Cybersixgill are the only script types available right now. Must be all lowercase.'
'Shodan, ASMSync, DNSTwist, IntelX, Xpanse, and Cybersixgill are the only script types available right now. Must be all lowercase.'
);
}
} catch (error) {
Expand Down
2 changes: 2 additions & 0 deletions backend/worker/pe-worker-entry.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ while true; do
COMMAND="pe-source cybersixgill --org=$ORG --soc_med_included"
elif [[ "$SERVICE_TYPE" = *"xpanse"* ]]; then
COMMAND="pe-source xpanse --org='$ORG'"
elif [[ "$SERVICE_TYPE" = *"asmSync"* ]]; then
COMMAND="pe-asm-sync asm-sqs --org='$ORG'"
else
echo "Unsupported SERVICE_TYPE: $SERVICE_TYPE"
break
Expand Down
2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -155,5 +155,5 @@
"test": "react-scripts test",
"typecheck": "tsc --noEmit"
},
"version": "0.1.0"
"version": "0.3.11"
}
3 changes: 2 additions & 1 deletion frontend/src/components/Footer/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@ import { useAuthContext } from 'context';
import logo from '../../assets/cyhydashboard.svg';
import * as FooterStyles from './styleFooter';
import { Stack } from '@mui/system';
import packageJson from '../../../package.json';

export const CrossfeedFooter: React.FC = (props) => {
const { logout, user } = useAuthContext();
const FooterRoot = FooterStyles.FooterRoot;
const footerClasses = FooterStyles.footerClasses;
const versionNumber = process.env.REACT_APP_VERSION_NUMBER;
const versionNumber = packageJson.version;

return (
<FooterRoot>
Expand Down

0 comments on commit dbcd84d

Please sign in to comment.