Secure AI use in Python coding and development

Secure AI use in Python coding and development

Developer write code on pc

What distinguishes code that works from code that is safe? Learn secure AI usage in Python development, from prompt to deploy.

Developer write code on pc

Signup

Secure AI use in Python coding and development

AI assistants have become a natural part of many developers' everyday work. They can speed up Python development, but they can also introduce vulnerabilities, incorrect dependencies, and insecure patterns that look convincing on first review.

In this course, you will learn how to use AI as development support in a controlled and secure manner. The course connects Python development with secure coding, verification of AI-generated code and specific security mechanisms for you who use tools such as GitHub Copilot, Cursor, Claude Code or similar. You will also get a basic introduction to some relevant concepts within ICT security.

The focus is not to replace the developer's professional judgment, but to make it stronger: better prompts, clearer requirements, more systematic testing, more secure handling of dependencies and secrets, and a workflow that makes it easier to trust the code before it is taken further.

What you will learn on the course

  • Use AI assistants in Python development in a way that ensures security, privacy, and control over source code
  • Recognize typical vulnerabilities in AI-generated Python code, including hard-coded secrets, vulnerable dependencies,  and hallucinated packages
  • Setting better requirements for AI tools through precise prompts, context documents and clear acceptance criteria
  • Verify AI output with code review, tests, and automated security tools
  • Setting up convenient security mechanisms including .gitignore, pre-commit hooks, and access control for remote connections
  • Assess when AI-assisted development is appropriate, when the risk becomes too high, and how the risk can be communicated to teams and management

Course completion

The course is set up as a combination of short professional reviews, live demos, practical exercises and discussion. Participants work with realistic Python examples where AI is used as a development assistant, and learn to investigate, test, improve and assess when the code is safe enough to be used.

Emphasis is placed on a practical workflow that participants can bring back to their own working day: from the first prompt and context description, via development and code review, to testing, dependency control and handling of secrets.

Practical information

  • Course time: Both course days begin at 09:00 and end at 15:30. The course will be held physically, in central Oslo. You will be sent an address in advance of the course.
  • Prerequisites: You must have basic Python knowledge and should be able to read and write simple Python scripts, use the command line, and have some basic experience with Git and version control. You do not need security expertise from before, but must be motivated for practical work with code and tools.
  • Equipment and preparation for the course: You must bring your own laptop on the course days. You must be able to handle packages and settings in Python (version 3.11 or later), use Git and a code editor (VS Code, Cursor or equivalent), and have access to an AI assistant that you can use during the course. Installation instructions and any preparations are sent out in advance.
  • Cancellation: If you cancel one of our professional courses or conferences after the registration deadline, a fee of 20 percent of the course or conference price will be charged. In case of cancellation later than three working days before the event, or in case of no-show, the full course fee will be invoiced. To unsubscribe from a course, send an email to 

Kristian Botnen

The course is held by Kristian Botnen, senior engineer at the University of Bergen, where he has worked with IT for over ten years. He has extensive experience in simplifying and automating work tasks using Python, and is known for making complicated topics understandable and practically applicable. Kristian has held Python courses for NITO for several years, with very good feedback from the participants.

Do you have any questions?