Security Engineer
SecurityPosted over 2 months agofrom Baseten's own hiring page
- Work type
- RemoteIn the US and Canada
- Experience
- 3+ years
- Pay
- $150k–250k a year
- Posted
- Over 2 months agoOpen 8 months
Skills it mentions
Add your skills to see which ones you have.
About the job
ABOUT BASETEN
Baseten powers mission-critical inference for the world's most dynamic AI companies, like Cursor, Notion, OpenEvidence, Abridge, Clay, Gamma, and Writer. By uniting applied AI research, flexible infrastructure, and seamless developer tooling, we enable companies operating at the frontier of AI to bring cutting-edge models into production. We're growing quickly and recently raised our $3B Series G, led by Sands Capital and Altimeter Capital. Join us and help build the platform engineers turn to ship AI products.
THE ROLE
We are seeking an experienced and proactive Security Engineer to help us build, maintain, and continuously improve the security posture of our rapidly growing ML infrastructure platform. As one of the first dedicated security hires at Baseten, you will work cross-functionally with engineering and operations teams to ensure we’re meeting the highest standards of confidentiality, integrity, and availability. You’ll have an opportunity to shape our security strategy and best practices from the ground up, influencing the way our platform handles sensitive data for both internal and external stakeholders.
RESPONSIBILITIES
Security architecture and design: Collaborate with engineering teams to design and implement secure systems and infrastructure, including cloud (AWS/GCP) environments and container orchestration platforms.
Vulnerability management: Lead proactive vulnerability assessments, pen tests, and remediation efforts to ensure our products and infrastructure remain secure.
Incident response: Develop and maintain incident response processes, including detection, analysis, containment, eradication, and post-incident reviews.
Identity and access management (IAM): Oversee IAM strategies and tools to ensure the right people have the right level of access to our systems and data.
Security compliance and audits: Work closely with operations to ensure compliance with relevant standards (e.g., SOC 2, ISO 27001) and assist with audits, policy creation, and risk assessments.
Employee security training: Develop and deliver security training programs and documentation to keep our team informed about best practices, social engineering threats, and secure coding standards.
DevSecOps integration: Partner with DevOps teams to embed security into the CI/CD pipeline, automating security checks and fostering a culture of “security as code.”
REQUIREMENTS
3+ years of experience in a Security Engineer or similar security-focused role, preferably in a fast-paced startup environment.
Strong knowledge of cloud security (AWS/GCP), container security, and infrastructure-as-code best practices.
Hands-on experience with security tooling (SIEM, IDS/IPS, vulnerability scanners) and scripting languages to automate security tasks.
Familiarity with compliance frameworks such as SOC 2, ISO 27001, and GDPR, and the ability to translate requirements into actionable security controls.
Incident response expertise, including forensic analysis and root cause investigation.
Excellent communication skills and the ability to collaborate with cross-functional teams to promote a security-first culture.
BENEFITS
Competitive salary and meaningful equity
Private medical insurance for you and your dependents
Workplace pension
Enhanced maternity, paternity, and shared parental leave
Apply now to embark on a rewarding journey in shaping the future of AI! If you are a motivated individual with a passion for machine learning and a desire to be part of a collaborative and forward-thinking team, we would love to hear from you.
At Baseten, we are committed to fostering a diverse and inclusive workplace. We welcome applications from everyone and do not discriminate on the basis of age, disability, gender reassignment, marriage or civil partnership, pregnancy or maternity, race, religion or belief, sex, or sexual orientation. If you need any adjustments during the application or interview process, please let us know.
Interested?Security Engineer at Baseten
Apply on company site (opens in a new tab)The job ad ends here
Interview questions for this job6 with answers, on Security, AWS, Google Cloud and 3 more
Interview questions for this job
For the skills the ad mentions: Security, AWS, Google Cloud, Docker, Machine learning and CI/CD.
Are PDO prepared statements sufficient to prevent SQL injection?Security
The short answer is YES, PDO prepares are secure enough if used properly.
I'm adapting this answer to talk about PDO...
The long answer isn't so easy. It's based off an attack demonstrated here.
The Attack
So, let's start off by showing the attack...
$pdo->query('SET NAMES gbk'); $var = "\xbf\x27 OR 1=1 /*"; $query = 'SELECT * FROM test WHERE name = ? LIMIT 1'; $stmt = $pdo->prepare($query); $stmt->execute(array($var));In certain circumstances, that will return more than 1 row. Let's dissect what's going on here:
Selecting a Character Set
$pdo->query('SET NAMES gbk');For this attack to work, we need the encoding that the server's expecting on the connection both to encode
'as in ASCII i.e.0x27and to have some character whose final byte is an ASCII\i.e.0x5c. As it turns out, there are 5 such encodings supported in MySQL 5.6 by default:big5,cp932,gb2312,gbkandsjis. We'll selectgbkhere.Now, it's very important to note the use of
SET NAMEShere. This sets the character set ON THE SERVER. There is another way of doing it, but we'll get there soon enough.The Payload
The payload we're going to use for this injection starts with the byte sequence
0xbf27. Ingbk, that's an invalid multibyte character; inlatin1, it's the string¿'. Note that inlatin1andgbk,0x27on its own is a literal'character.We have chosen this payload because, if we called
addslashes()on it, we'd insert an ASCII\i.e.0x5c, before the'character. So we'd wind up with0xbf5c27, which ingbkis a two character sequence:0xbf5cfollowed by0x27. Or in other words, a valid character followed by an unescaped'. But we're not usingaddslashes(). So on to the next step...$stmt->execute()
The important thing to realize here is that PDO by default does NOT do true prepared statements. It emulates them (for MySQL). Therefore, PDO internally builds the query string, calling
mysql_real_escape_string()(the MySQL C API function) on each bound string value.The C API call to
mysql_real_escape_string()differs fromaddslashes()in that it knows the connection character set. So it can perform the escaping properly for the character set that the server is expecting. However, up to this point, the client thinks that we're still usinglatin1for the connection, because we never told it otherwise. We did tell the server we're usinggbk, but the client still thinks it'slatin1.Therefore the call to
mysql_real_escape_string()inserts the backslash, and we have a free hanging'character in our "escaped" content! In fact, if we were to look at$varin thegbkcharacter set, we'd see:縗' OR 1=1 /*
Which is exactly what the attack requires.
The Query
This part is just a formality, but here's the rendered query:
SELECT * FROM test WHERE name = '縗' OR 1=1 /*' LIMIT 1
Congratulations, you just successfully attacked a program using PDO Prepared Statements...
The Simple Fix
Now, it's worth noting that you can prevent this by disabling emulated prepared statements:
$pdo->setAttribute(PDO::ATTR_EMULATE_PREPARES, false);Read the rest at the sourceFrom Stack Overflow: asked by Mark Biek, answered by ircmaxell (CC BY-SA 4.0)
What are two services of AWS where you could store secrets?AWS
Two AWS services for storing secrets securely are:
-
AWS Secrets Manager: A service specifically designed for managing and rotating sensitive information like database passwords, API keys, and other credentials. It provides encryption, automated rotation, and access control for secrets.
-
AWS Parameter Store: A service that allows you to store and manage configuration data, including secrets, in a hierarchical structure. It's often used for storing application configuration parameters and secrets in a secure manner.
From Tech Vault (Apache 2.0)
-
Google Cloud Bigtable vs Google Cloud DatastoreGoogle Cloud
Based on experience with Datastore and reading the Bigtable docs, the main differences are:
- Bigtable was originally designed for HBase compatibility, but now has client libraries in multiple languages. Datastore was originally more geared towards Python/Java/Go web app developers (originally App Engine)
- Bigtable is 'a bit more IaaS' than Datastore in that it's not 'just there' but requires a cluster to be configured.
- Bigtable supports only one index - the 'row key' (the entity key in Datastore)
- This means queries are on the Key, unlike Datastore's indexed properties
- Bigtable supports atomicity only on a single row - there are no transactions
- Mutations and deletions appear not to be atomic in Bigtable, whereas Datastore provides eventual and strong consistency, depending on the read/query method
- The billing model is very different:
- Datastore charges for read/write operations, storage and bandwidth
- Bigtable charges for 'nodes', storage and bandwidth
From Stack Overflow: asked by Andrei F, answered by tx802 (CC BY-SA 4.0)
Difference between RUN and CMD in a DockerfileDocker
RUN is an image build step, the state of the container after a
RUNcommand will be committed to the container image. A Dockerfile can have manyRUNsteps that layer on top of one another to build the image.CMD is the command the container executes by default when you launch the built image. A Dockerfile will only use the final
CMDdefined. TheCMDcan be overridden when starting a container withdocker run $image $other_command.ENTRYPOINT is also closely related to
CMDand can modify the way aCMDis interpreted when a container is started from an image.From Stack Overflow: asked by TakeSoUp, answered by Matt (CC BY-SA 4.0)
What does model.eval() do in pytorch?Machine learning
model.eval()is a kind of switch for some specific layers/parts of the model that behave differently during training and inference (evaluating) time. For example, Dropouts Layers, BatchNorm Layers etc. You need to turn them off during model evaluation, and.eval()will do it for you. In addition, the common practice for evaluating/validation is usingtorch.no_grad()in pair withmodel.eval()to turn off gradients computation:# evaluate model: model.eval() with torch.no_grad(): ... out_data = model(data) ...BUT, don't forget to turn back to
trainingmode after eval step:# training step ... model.train() ...From Stack Overflow: asked by Gulzar, answered by tarasio (CC BY-SA 4.0)
Can you tell us about a personal achievement at work?Behavioural
Employers usually base questions on jobs you have done in the past. This gives you the chance to talk about your experience. For instance, they might ask:
- when have you faced a challenging situation?
- can you tell us about a personal achievement at work?
- have you ever taken the initiative?
- have you ever failed at a task?
Your answers should reflect the skills the employer wants. Be positive and tailor your examples to the job description.
If you don't have much work history, you can use examples from outside of work. You can also use examples from volunteering experience.
Use the STAR method to help structure your answers.From National Careers Service: interview advice (Open Government Licence v3.0)
Similar jobs
- Offensive Hardware Security Engineer, Platform SecurityAnthropic, New York, San Francisco Bay Area +1, on-siteYesterday
- Power Engineer — SoC Physical DesignTenstorrent, San Francisco Bay Area, on-siteYesterday
- Cybersecurity InternElectric Power Engineers, Remote in the USToday
- Senior Physical Security Project ManagerZBeta Consulting, Remote in the USToday
More like this: Cyber security jobs in New York (140), Jobs in New York (6,234), Cyber security jobs in the USA (894) and Remote Cyber security jobs in the USA (458)




